The line "messagemodal>error" only was used to debug , it is not part of the code. When i run the script in my pc i never see the message, therefore i thought the problem was in "waitcursorchanged".
The question is that this script (without "message") run fine in all my computers with the exception the one(really same computer, different partion) and i dont know why. it uses the same s.o.
I am so confused... Any idea is wellcome.
Thanks.
P.S. About reinterations you say:
This is really my code:
Code: Select all
OnEvent>KEY_DOWN,VK65,3,generica,65,jointable
label>loop
Wait>0.1
goto>loop
srt>generica
Let>flags={1 OR 2}
LibFunc>user32.dll,keybd_event,r,generica_var_1,0,flags,0
Release ALT
gosub>generica_var_2
end>generica
srt>jointable
Blockinput>1
GetCursorPos>Xpos,Ypos
MouseMoveRel>594,545
WaitCursorChanged>1.5
IF>WCC_RESULT=TRUE
....[HERE ONLY THERE ARE CURSOR MOVES AND CLIKS]
ELSE
LibFunc>kernel32,beep,r,200,50
ENDIF
MouseMove>Xpos,Ypos
Blockinput>0
end>jointable
gdyvig wrote:
For some reason OnEvent is not recognizing that the key was released.
The reason is "blockinput" and is the reason i use subroutine "generica" to avoid Onevent continually retriggered