I'm trying to change the Ctrl+Shift modifier to Space, using autohotkey:
Code: Select all
~Space & 5::
Sendinput, ^+5
return
Code: Select all
Space & 5::
Sendinput, ^+5
return
Code: Select all
~Space & 5::
Sendinput, ^+5
return
Code: Select all
Space & 5::
Sendinput, ^+5
return
Code: Select all
#Requires AutoHotkey v1.1.33
F4::KeyHistory
Space & 5::
Send +5
Return
Code: Select all
#Requires AutoHotkey v1.1.33
F4::KeyHistory
^+5::Send y
Space & 5::
Send ^+5
Return
mikeyww wrote: ↑26 Jan 2023, 17:30Try something similar.
You can also then examine the KeyHistory.Code: Select all
#Requires AutoHotkey v1.1.33 F4::KeyHistory Space & 5:: Send +5 Return
Code: Select all
#Requires AutoHotkey v1.1.33 F4::KeyHistory ^+5::Send y Space & 5:: Send ^+5 Return
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
59 015 i d 0.00 y
59 015 i u 0.00 y
35 006 s u 0.08 5
35 006 h d 0.13 5
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
59 015 i d 0.00 y
59 015 i u 0.00 y
35 006 s u 0.09 5
35 006 h d 0.06 5
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
59 015 i d 0.00 y
59 015 i u 0.00 y
20 039 u 0.13 Space
35 006 s u 0.00 5
73 03E d 0.25 F4
It looks the same?A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 u 0.08 5
35 006 d 0.20 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
59 015 i d 0.00 y
59 015 i u 0.00 y
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 u 0.08 5
35 006 d 0.14 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
59 015 i d 0.00 y
59 015 i u 0.00 y
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 u 0.06 5
35 006 d 0.08 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
59 015 i d 0.00 y
59 015 i u 0.00 y
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 u 0.09 5
A2 01D u 0.05 LControl
A0 02A u 0.02 LShift
73 03E d 0.20 F4
Code: Select all
#Requires AutoHotkey v1.1.33
F4::KeyHistory
^+5::Send y
Space & 5::
Send ^+5
Return
Yes, it works, but actually, please ignore my previous post. I have just discovered the cause of the problem -- I just don't know the solution.mikeyww wrote: ↑26 Jan 2023, 19:58So that second script seems to work, right?
Code: Select all
#Requires AutoHotkey v1.1.33 F4::KeyHistory ^+5::Send y Space & 5:: Send ^+5 Return
Code: Select all
F4::KeyHistory
~Space & 5::
Send ^+5
Return
However, when I hold SPACE and tap 5, it looks like this:A2 01D d 2.48 LControl
A0 02A d 0.05 LShift
35 006 d 0.03 5
35 006 u 0.06 5
35 006 d 0.09 5
35 006 d 0.06 5
35 006 u 0.08 5
35 006 d 0.05 5
35 006 u 0.09 5
A2 01D u 0.06 LControl
A0 02A u 0.00 LShift
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
35 006 s u 0.06 5
35 006 h d 0.06 5
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
35 006 s u 0.05 5
35 006 h d 0.05 5
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
35 006 s u 0.08 5
Code: Select all
#Requires AutoHotkey v1.1.33
Space::Space
Space & 5::
SetKeyDelay,, 25
Send ^+5
Return
Sorry, I misinterpreted what you meant by "works" (for some silly reason I thought you meant "does the script run?"). None of the solutions work, regardless of whether I use tilde or not, because the resulting behavior of SPACE+5 5 5 5 5 still differs slightly from CTRL+SHIFT+5 5 5 5 5.mikeyww wrote: ↑26 Jan 2023, 20:59Since my script works, then perhaps the answer is to use it? Just guessing here!
My script is the same as yours but has no tilde in the hotkey.
Alternative:
If the script works in Notepad but not in the game, then it means that the issue is the game. viewtopic.php?f=7&t=11084Code: Select all
#Requires AutoHotkey v1.1.33 Space::Space Space & 5:: SetKeyDelay,, 25 Send ^+5 Return
It's outputting this:A2 01D d 2.48 LControl
A0 02A d 0.05 LShift
35 006 d 0.03 5
35 006 u 0.06 5
35 006 d 0.09 5
35 006 d 0.06 5
35 006 u 0.08 5
35 006 d 0.05 5
35 006 u 0.09 5
A2 01D u 0.06 LControl
A0 02A u 0.00 LShift
This different behavior is like this whether in-game or in Notepad, and it's like this regardess of whether I'm doing Space & 5, or ~Space & 5.A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
35 006 s u 0.06 5
35 006 h d 0.06 5
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
35 006 s u 0.05 5
35 006 h d 0.05 5
A2 01D i d 0.00 LControl
A0 02A i d 0.00 LShift
35 006 i d 0.00 5
35 006 i u 0.00 5
A2 01D i u 0.00 LControl
A0 02A i u 0.00 LShift
35 006 s u 0.08 5
Code: Select all
~5::
if GetKeyState("Space", "P")
{
;Msgbox x
Send {LControl down}{LShift down}
Sleep, 20
Sendinput, {5 up}
Sleep, 20
Sendinput, {5 down}
Sleep, 20
Keywait, space
Send {LControl up}{LShift up}
}
else
{
;Sendinput, 5
}
return
Code: Select all
SetKeyDelay, 20
~5::
if GetKeyState("Space", "P"){
Send {LControl down}{LShift down}55{LControl up}{LShift up}
}
return