Dont send if X before Y

Get help with using AutoHotkey and its commands and hotkeys
Wispa
Posts: 1
Joined: 25 Sep 2018, 11:53

Dont send if X before Y

Post by Wispa » 25 Sep 2018, 11:59

Massive AHK Noob here, Im using AHK as a keybinder for gaming.

I have my binds set to my number pad, however this means I cant use my number pad for IG typing as it send the binds
I need some code that, When I press T to bring up the text box IG, Will ignore any numpad input until i Either press enter or esc. So it will ignore my Sendinputs while the text box in on screen.

I hope this makes sense, Any help would be great.
MannyKSoSo
Posts: 243
Joined: 28 Apr 2018, 21:59

Re: Dont send if X before Y

Post by MannyKSoSo » 25 Sep 2018, 13:17

You could do something like this

Code: Select all

Toggle := True

Escape::
Enter:: 
Toggle := False
return

T:: Toggle := True
Then to the rest of your code where you have commands just add the following just after the hotkey activates

Code: Select all

1::
If (Toggle = True)
   return
Post Reply

Return to “Ask For Help”