Page 1 of 1

Wait for message, press key, wait, etc..  Topic is solved

Posted: 15 Jun 2018, 19:00
by Guest
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.

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

Re: Wait for message, press key, wait, etc..

Posted: 15 Jun 2018, 21:24
by swagfag
figure out how youre gonna detect when the game is sending you a message in chat

are u gonna pixel search for it?
image search?
read process memory?
some other mechanism?