Suspend hotkey not working in game

Ask gaming related questions (AHK v1.1 and older)
incangreen
Posts: 1
Joined: 24 Feb 2018, 02:07

Suspend hotkey not working in game

24 Feb 2018, 02:16

Whichever hotkey I use to suspend my script, it doesn't seem to work while I'm in game, however, it works just fine when I'm on my desktop. How do I fix this?

Thanks in advance!

Here's my Script:

Ins::Suspend

~RButton::

Send, {Shift down}
Send, 0
MouseClick, right
Send, {Shift up}
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Suspend hotkey not working in game

24 Feb 2018, 02:35

Huh? I'm not sure about that. Some games do prevent hotkeys and hotstrings so maybe it's that. Maybe this can help
From the FAQ page:
Some games use DirectInput exclusively. As a side-effect, they might ignore all simulated keystrokes and mouse clicks. To work around this, try one of the following (or a combination): •Use SendPlay via: 1) the SendPlay command; 2) using SendMode Play; and/or 3) the hotstring option SP.
•Increase SetKeyDelay. For example:
•SetKeyDelay, 0, 50
•SetKeyDelay, 150, 150, Play
•Try ControlSend, which might work in cases where the other Send modes fail.


Anyways you're missing a 'return' after 'Send, {Shift up}' and you probably want to add ', Toggle' beside 'suspend' (it's a parameter) for toggling suspend.
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: jameswrightesq and 133 guests