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}
Suspend hotkey not working in game
-
- Posts: 1
- Joined: 24 Feb 2018, 02:07
Re: Suspend hotkey not working in game
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.
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.
Who is online
Users browsing this forum: slowwd and 143 guests