Sign in to follow this  
Followers 0
maniack

send key, each has different delay

2 posts in this topic

I'm making an auto skill for an online game

i have the current working but the current project basically wont have any delay after each key pressed

i'm making a new one and the idea is to press numbers of key after a certain delay, but having problem for the delay each key.

some of the code

While 1
skill()
sleep(100)
WEnd

Func skill()
If GUICtrlRead($Status) = "RUNNING" Then
_SendMessage($HANDLE, 256, KEYCODE("F1"))
sleep(100)
_SendMessage($HANDLE, 256, KEYCODE("F2"))
sleep(100)
EndIf
EndFunc

For example i want the key to be pressed each 5 sec, and if i put at the delay, it will totally delay the whole program itself

how to let the key to have their own timer/delay without affecting the main program? thanks in advance

Share this post


Link to post
Share on other sites



Thread locked. Read the rules.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0