Help with stalled sctript

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
gchichester
Pro Scripter
Posts: 132
Joined: Mon Dec 22, 2008 4:56 pm
Location: St Augustine FL

Help with stalled sctript

Post by gchichester » Mon Oct 31, 2011 6:08 pm

Both the "GetRectCheckSum" & "MouseMove" works as expected, Adding the "Alt R"
but script will not execute it. what am i missing?

[code]
WaitWindowOpen>Export Manager - [E0HSEG: House/Master Common Information]
SetFocus>Export Manager - [E0HSEG: House/Master Common Information]
Label>waitforupdate
Wait>sw
GetRectCheckSum>428,318,653,331,cs
If>cs=22394858,Done
Else
Press ALT
Send>R
Release ALT
Wait>sw
Goto>waitforupdate
EndIf

Label>Done
FindImagePos>C:\CP_Macros\JohnW\AesOkBtn.bmp,SCREEN,20,1,xPos,yPos,imgs
Wait>sw
If>imgs=0
MouseMove>xPos_0,yPos_0
Wait>sw
Lclick
EndIf
[/code]

Thanks
Gil
Thank you in advance for all your help
Gil

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon Oct 31, 2011 6:48 pm

If>cs=22394858,Done
Else
Press ALT
Send>R
Release ALT
Wait>sw
Goto>waitforupdate
EndIf
The problem may lie in mixing the "If" syntax
Try changing the "If" to this:

Code: Select all

  If>cs=22394858
    Goto>Done
  Else
    Press ALT
    Send>R
    Release ALT
    Wait>sw
    Goto>waitforupdate
  EndIf

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