Jump to content
Sign in to follow this  
maniack

send key, each has different delay

Recommended Posts

maniack

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
Valik

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.