Is there a way to make certain keys act like switches? Very much like CapsLock, except that the keys sensitive to the switching could be specified.
For example:
If I press "z" once (with no holding involved), then pressing "a" will output "1" and pressing "b" will output "2".
However, if I press "z" again (with no holding involved), then "a" will simply output "a", and "b" will simply output "b".
On/Off Key Switches?
Re: On/Off Key Switches?
Bump.
-
- Posts: 202
- Joined: 14 Aug 2016, 04:08
Re: On/Off Key Switches?
Code: Select all
...
toggle := false
::z
toggle := ! toggle
return
::a
if(toggle)
Send, 1
else
Send, a
return
Re: On/Off Key Switches?
That didn't quite work, but I did get it to work with this:icuurd12b42 wrote:you'll need to figure out if you want to send A or a is caps or shift is down...Code: Select all
... toggle := false ::z toggle := ! toggle return ::a if(toggle) Send, 1 else Send, a return
Code: Select all
z::
toggle := ! toggle
return
a::
if(toggle)
send b
else
send c
-
- Posts: 202
- Joined: 14 Aug 2016, 04:08
Re: On/Off Key Switches?
odd that you don't need toggle to be defined and initialized... cool
Who is online
Users browsing this forum: No registered users and 128 guests