passing data via clipboard

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jay

passing data via clipboard

Post by jay » Wed Dec 01, 2004 8:10 am

I am trying to pass my macro data via the clipboard... i copy a value into the clipboard before i run the macro... in the macro i do:

GetClipBoard>revision
Send>revision

nothing is placed in revision... and when i do the Send the word "revision" is sent...

help!

jay

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Dec 01, 2004 8:47 am

I expect you have a space or control char at the end of your GetClipBoard line so you are actually placing the contents of the clipboard into a variable called 'revision ' and then referencing a literal called 'revision'.

A quicker way to suss out errors like these is to simply open the script up in the editor, choose Debug/Show Watch List and then step through from the top of the script using F8.

You will see the values of the variables in the watch list. If you ever get a case like this where something you *think* is a variable has no value and is returned as a literal of itself then you can be 99.99% certain it isn't a variable at all and there must be a mismatch between the two.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts