user1758879
user1758879

Reputation: 13

Autohotkey - Key loop making shift key combos not work

I made a script meant to be spammed on button down , its working but when I wanto use another key combo with [Shift] while holding down the key [Xbutton2] it doesnt work e.g If I wanto press Shift+q it only sends q and its the same for any other keys.

I have been using this script forever but since the Software updated it doesnt seem to work as intended anymore.

#ifWinActive ***********

CoordMode,pixel,screen


XButton2::
  Loop  
  {    
SetKeyDelay, 20
if not GetKeyState("XButton2", "P")
  break
 Send  3456789

 sleep +q
 sleep +e
 sleep +f
 sleep +r
 sleep +c
 sleep +q
}
return

I just dont understand why any key combo with Shift doesnt work. I tried adding sleep on the shift keys that I use but it made no diffarence.

Upvotes: 1

Views: 2012

Answers (1)

Elliot DeNolf
Elliot DeNolf

Reputation: 2999

Adding an asterisk to the front of a hotkey makes it ignore modifier keys (Ctrl, Alt, Shift).

*XButton2::
    ;do stuff
    return

Upvotes: 0

Related Questions