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

Ask gaming related questions
Guest

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

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.

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
swagfag
Posts: 1559
Joined: 11 Jan 2017, 17:59

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

15 Jun 2018, 21:24

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?

Return to “Gaming”

Who is online

Users browsing this forum: Gonzalo94 and 18 guests