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