HotKey run fails - Run Now run suceeds

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jalbt51
Junior Coder
Posts: 31
Joined: Sat Mar 06, 2004 4:40 pm

HotKey run fails - Run Now run suceeds

Post by jalbt51 » Mon Apr 12, 2004 6:57 am

When I run this program by hotkey(assigned to F10), the last few lines (190 and on...) are not executed. The last mouse move never happens, and the window, which was an Active Window, goes to an Inactive Window. But when I run the program via Run Now on the control panel it works fine, and the window ends up in Active Mode as intended.
Any clues here would be apreciated.
Find script below jalbt51


//copy a rectangular bitmap onto the clipboard first(258x194 or smaller)
Let>WW_TIMEOUT=10
CapsOff
ExecuteFile>C:\Program Files\IrfanView\i_view32.exe
WaitWindowOpen>IrfanView*
SetFocus>IrfanView*
wait>0.10

Press CTRL
Send>v,r
wait>0.15
Release CTRL
SetFocus>Resize/Resample image*
wait>0.07
Press CTRL
Send>c
Release CTRL
wait>0.10
GetClipBoard>d
wait>0.10
Press Tab
Wait>0.13
Press CTRL
Send>c
Wait>0.13
Release CTRL
Wait>0.13
GetClipBoard>e
Wait>0.13
Press Tab*8
Wait>0.13
Press Enter
Wait>0.13
Press CTRL
Send>c
Release CTRL
CloseWindow>Clipboard01 - IrfanView*
WaitWindowClosed>Clipboard01 - IrfanView*

ExecuteFile>C:\My Documents\0000 My Pictures\1024x768 cntr pnt My Pctrs.bmp
WaitWindowOpen>1024x768 cntr pnt My Pctrs - Paint
SetFocus>1024x768 cntr pnt My Pctrs - Paint
WindowAction>1,1024x768 cntr pnt My Pctrs - Paint
Wait>0.08

Press CTRL
Send>v
Wait>0.07
Release CTRL
MouseMove>62,43
Wait>0.07
LDown
MouseMove>573,426
Wait>0.07
LUp
Wait>0.07
Press ALT
Send>e,a
Wait>0.07
Release ALT
Wait>0.07
Press CTRL
Wait>0.07
LDown
Wait>0.07
LUp
Release CTRL
Wait>0.07
MouseMove>30,300
Wait>0.07
LClick
Wait>0.07
Press CTRL
Send>r
Wait>0.07
Release CTRL
Wait>0.07
PushButton>Flip and Rotate*,OK
Wait>0.07
MouseMove>573,426
Wait>0.07
LDown
Wait>0.07
MouseMove>572,426
Wait>0.07
LUp
Wait>0.07
Press ALT
Send>e,a
Wait>0.07
Release ALT
Wait>0.07
Press CTRL
Wait>0.07
LDown
Wait>0.07
LUp
Wait>0.07
Send>r
Wait>0.07
Press Down
Wait>0.07
Release CTRL
Wait>0.07
PushButton>Flip and Rotate*,OK
Wait>0.07
MouseMove>572,426
Wait>0.07
LDown
Wait>0.07
MouseMove>572,425
Wait>0.07
LUp
Wait>0.07
Press ALT
Send>e,a
Wait>0.07
Release ALT
Wait>0.07
Let>f=d+571
Let>g=e+424
Wait>0.07
LDown
MouseMove>f,g
Wait>0.17
LUp
Wait>0.17
MouseMove>40,60
LClick
Wait>0.10
MouseMove>573,426
Wait>0.07
Press ALT
Send>e,a
Wait>0.07
Release ALT
Wait>0.07
Press CTRL
Wait>0.07
LDown
Wait>0.07
LUp
Release CTRL
Wait>0.07
Press CTRL
Send>r
Wait>0.07
Release CTRL
Wait>0.07
PushButton>Flip and Rotate*,OK
Wait>0.07
MouseMove>573,426
Wait>0.07
LDown
Wait>0.07
MouseMove>572,426
Wait>0.07
LUp
Wait>0.07
Press ALT
Send>e,a
Wait>0.07
Release ALT
Wait>0.07
Press CTRL
Wait>0.07
LDown
Wait>0.07
LUp
Wait>0.07
Send>r
Wait>0.07
Press Down
Wait>0.07
Release CTRL
Wait>0.07
PushButton>Flip and Rotate*,OK
Wait>0.07
MouseMove>571,426
Wait>0.07
LDown
Wait>0.07
MouseMove>571,425
Wait>0.07
LUp
Wait>0.07
Press ALT
Send>e,a
Release ALT
Wait>0.17
MouseMove>40,60
Wait>0.10
LClick
Wait>0.10

Guest

Post by Guest » Mon Apr 12, 2004 5:32 pm

Have you tried a more unique hot key?

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