Jump to content

send key, each has different delay


Recommended Posts

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

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...