Simple script help

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Sebastian
Newbie
Posts: 6
Joined: Wed Aug 27, 2008 8:14 am

Simple script help

Post by Sebastian » Wed Aug 27, 2008 8:19 am

Hi guys,

Can someone please tell me what's wrong with this script?
I get a message "Line: 10 Invalid Numberic Value for MouseMove command
I've tried displaying %x% by using mdl > %x% but the message displays "%x" instead of a numeric value

setfocus>Siebel*
GetScreenRes>sX,sY
ScreenCapture>0,0,sX,sY,d:\macro\screen.bmp
FindImagePos>D:\macro\query.bmp,d:\macro\screen.bmp,20,1,XPos,YPos,imgs

Wait>1
Let> x = XPos_0 + 50
If>imgs>0
Mousemove> %x% ,YPos_0
EndIf


Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Aug 27, 2008 9:18 am

Remove the spaces. Or if you want them use the IGNORESPACES directive. See IGNORESPACES in the help file.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Sebastian
Newbie
Posts: 6
Joined: Wed Aug 27, 2008 8:14 am

Thankyou

Post by Sebastian » Wed Aug 27, 2008 9:36 am

After removing all spaces, it's working ok.
Thanks mtettmar

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