Sign in to follow this  
Followers 0
heero

{Enter} randomly working

2 posts in this topic

I'm in the process of automating the debugging of a program (meka0.72 in debug mode), but the thing is the program accepts automated letter and {space} presses just fine, but not Send("{enter}") or even Send("{ASC 012}{ASC 010}"). When I manually press enter in the program it works as intended. When I run the script and press the hotkey with notepad in the foreground it 'works' as intended (sends the keystrokes including enter). Any ideas? I've also tried with differing versions of the program/auto-it to see if that was the problem but to no avail.

Opt("SendKeyDelay",5)
HotKeySet("+!s", "Start")  ;Shift-Alt-s

; Wait until hotkey pressed
While 1
    Sleep(100)
WEnd

Func Start()
    Sleep(1000)
    Send("m d3a8 0xc")
    Sleep(1000)
    Send("{enter}")
;    Send("{ASC 012}{ASC 010}")
    Sleep(1000)
    Send("c")
    Sleep(1000)
    Send("{Enter}")
EndFunc

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0