auto disable/enable when chatting

Ask gaming related questions (AHK v1.1 and older)
kentpachi
Posts: 152
Joined: 15 May 2016, 01:23

auto disable/enable when chatting

22 Jan 2017, 13:59

hello AHKer's

i have made a hotkey that press multiple keys at once and im using it in a game but my PROBLEM is when i chat the hotkey is still actively of course then mess up my message.

how do you automatically disable the script when im chatting?

here's my simple code

Code: Select all

#IfWinActive A_ONLINE_GAME

*MButton::buffs()
*3::potz()
*e::pots()
f4::pause
f6::suspend
   



potz()
{

Send {4}{2}{3}{5}{1}

}

buffs()
{
BlockInput On
Send {MButton}
sleep, 500
Send {R}{R}
BlockInput Off
return
}

pots()
{
BlockInput On
Send {w}
sleep, 400
Send {e}
BlockInput Off

}


return
i want to make the script automatically disable when i chat and enable it back after im done chatting
luciga
Posts: 30
Joined: 01 Dec 2016, 08:52

Re: auto disable/enable when chatting

23 Jan 2017, 09:32

Hi there,
I think this is impossible. But here is some few ideas:

Press esc to stop everything, type what you want and press esc again to active:

Code: Select all

Esc::
Suspend
Return
If you have to use "Enter" to open chat, typing your message and press enter again to send the message, you can try this one, basically, when you press the first enter, the script will turn off, than you can press whatever key you want, press enter again to send your message and the script will turn on again.

Code: Select all

Enter::
Suspend
Return
Hope it helps you.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Moongoose and 62 guests