I need a hotkey that makes the alt key toggle the Lshift and Lctrl
I need a hotkey that makes the alt key toggle the Lshift and Lctrl
I really would appreciate it if it was toggleable but its fine if it isn't
Re: I need a hotkey that makes the alt key toggle the Lshift and Lctrl
Code: Select all
*Alt::Send % (toggle := !toggle) ? "{Shift Down}{Ctrl Down}" : "{Shift Up}{Ctrl Up}"
-
- Posts: 4
- Joined: 14 Aug 2017, 15:12
Re: I need a hotkey that makes the alt key toggle the Lshift and Lctrl
So if I want the app to "hold down" the "w" key persistently, would this work?
-----code-----
*^!w::Send % (toggle := !toggle) ? "{W Down}" : "{W Up}" ; Ctrl+Alt+W toggles the W state between down and up
----end code-----
runs without errors, but it doesn't spew out a string of W letters on my note pad like I expected. Want to use it with Empyrion Galactic Survival so I don't have to hold down "W" to move forward!
-----code-----
*^!w::Send % (toggle := !toggle) ? "{W Down}" : "{W Up}" ; Ctrl+Alt+W toggles the W state between down and up
----end code-----
runs without errors, but it doesn't spew out a string of W letters on my note pad like I expected. Want to use it with Empyrion Galactic Survival so I don't have to hold down "W" to move forward!
Re: I need a hotkey that makes the alt key toggle the Lshift and Lctrl
Diche_Bach wrote:So if I want the app to "hold down" the "w" key persistently, would this work?
-----code-----
*^!w::Send % (toggle := !toggle) ? "{W Down}" : "{W Up}" ; Ctrl+Alt+W toggles the W state between down and up
----end code-----
runs without errors, but it doesn't spew out a string of W letters on my note pad like I expected. Want to use it with Empyrion Galactic Survival so I don't have to hold down "W" to move forward!
Code: Select all
#NoEnv
*^!$w::SetTimer, SpamKey, % (toggle := !toggle) ? 50 : "Off" ; Change 50 to increase or decrease insterval speed
SpamKey:
Send, w
return
-
- Posts: 4
- Joined: 14 Aug 2017, 15:12
Re: I need a hotkey that makes the alt key toggle the Lshift and Lctrl
Whoo hoo! Works!
Also, assigned the in-game "Primary Action" hotkey (e.g., shooting a firearm or a mining laser) to "/" and then used:
------end code------
*^/::Send % (toggle := !toggle) ? "{/ Down}" : "{/ Up}"
------end code------
So I don't have to hold down my left mouse button for long periods of mining!
Also, assigned the in-game "Primary Action" hotkey (e.g., shooting a firearm or a mining laser) to "/" and then used:
------end code------
*^/::Send % (toggle := !toggle) ? "{/ Down}" : "{/ Up}"
------end code------
So I don't have to hold down my left mouse button for long periods of mining!
-
- Posts: 4
- Joined: 14 Aug 2017, 15:12
Re: I need a hotkey that makes the alt key toggle the Lshift and Lctrl
Ah thanks Xtra. Actually though the previous one works in game.Xtra wrote:Diche_Bach wrote:So if I want the app to "hold down" the "w" key persistently, would this work?
-----code-----
*^!w::Send % (toggle := !toggle) ? "{W Down}" : "{W Up}" ; Ctrl+Alt+W toggles the W state between down and up
----end code-----
runs without errors, but it doesn't spew out a string of W letters on my note pad like I expected. Want to use it with Empyrion Galactic Survival so I don't have to hold down "W" to move forward!Code: Select all
#NoEnv *^!$w::SetTimer, SpamKey, % (toggle := !toggle) ? 50 : "Off" ; Change 50 to increase or decrease insterval speed SpamKey: Send, w return