Wait for message, press key, wait, etc.. Topic is solved
Posted: 15 Jun 2018, 19:00
So basically I'm wondering how I can go about this.
Here's what I want to be able to do,
When message in chat box ingame receive I want to press and hold key F2, then after next message from pressing F2 is received I want F3 to be pressed. Then on to F4,F5 etc..
Right now I've got this basic script to just press down keys on a time delay, but it is misfiring my spells as they require the previous to be active before being used.
Here's what I want to be able to do,
When message in chat box ingame receive I want to press and hold key F2, then after next message from pressing F2 is received I want F3 to be pressed. Then on to F4,F5 etc..
Right now I've got this basic script to just press down keys on a time delay, but it is misfiring my spells as they require the previous to be active before being used.
Code: Select all
q::
Loop
{
IfWinExist, Client
WinActivate
SendInput {F1}
Sleep, 2000
SendInput {F2}
Sleep, 2000
SendInput {F3}
Sleep, 2000
SendInput {F4}
Sleep, 2000
}
Tab:: Reload