GetPixelColor and MouseMove errors

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Guest

GetPixelColor and MouseMove errors

Post by Guest » Thu Apr 15, 2004 12:25 am

when i run this example from the help file:

GetPixelColor>652,355,PC
Message>Pixel Color is : %PC%

the message pops up and actually says "Pixel Color is : %PC%"


when i try to use a MouseMove statement the following error pops up:

"Invalid Numeric Value for MouseMove command."


both of these functions are important for the script i am giong to create but i can't even get the basics to work.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Apr 15, 2004 4:51 am

Variables and Labels may not function correctly to you because the space is considered a real character by the compiler. Be careful of spaces at end of lines, on either side of the "=" character.

Make sure that there is no space character at the end of the GetPixelColor line. On the Editor menu, click on Edit, Show All Chars to see the space characters.


Actually remove all extra spaces on all lines. In the Editor, click on Edit, Remove Trailing Spaces.

Also remember that variables and Labels are also Case Sensitive.

I suspect that your MouseMove> commands may have spaces in the listing of the coordinates, or if the coordinates are variables, then they may have spaces at the end of their lines also.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Guest

Post by Guest » Thu Apr 15, 2004 11:16 pm

thanks it works now

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