Ok this is my first post so im not sure exactly where to put this but heres my script
WinWaitActive("LaTale Client")
#include<misc.au3> ;needed to capture keystrokes
While 1
If _IsPressed("11") And _IsPressed("31") Then;This is what I press to start the loop
Send ("{LCTRL down}")
Sleep(18000); I want it to hold down for 18secs
Send ("{LCTRL up}");I want it to lift off the key
Sleep(8000);and hold for 8secs
EndIf
If _IsPressed("11") And _IsPressed("32") Then
ExitLoop;I use this to exit
EndIf
Wend
When i run the script in my game it holds down the ctrl button, but it does it longer than 18secs and it doesnt lift up afterwards. It just goes until the input key time passes. I would like to know how to use the "UP" function properly and also how to loop it back to where i started to repeat the process.
Thanks
WinWaitActive("LaTale Client")
#include<misc.au3> ;needed to capture keystrokes
While 1
If _IsPressed("11") And _IsPressed("31") Then;This is what I press to start the loop
Send ("{LCTRL down}")
Sleep(18000); I want it to hold down for 18secs
Send ("{LCTRL up}");I want it to lift off the key
Sleep(8000);and hold for 8secs
EndIf
If _IsPressed("11") And _IsPressed("32") Then
ExitLoop;I use this to exit
EndIf
Wend
When i run the script in my game it holds down the ctrl button, but it does it longer than 18secs and it doesnt lift up afterwards. It just goes until the input key time passes. I would like to know how to use the "UP" function properly and also how to loop it back to where i started to repeat the process.
Thanks