Lass das ganze if WinActive weg.
Machs so, einfach aber er funktioniert.
Quote:
Hotkeyset ( "{F11}" , "Start" )
Hotkeyset ( "{F5}" , "Ende" )
While (1)
Sleep(20)
Wend
Func Start ()
While (1)
send ("y" , 1 )
Sleep (20)
WEnd
EndFunc
Func Ende ()
Exit
Endfunc
|