I want to achieve this
- press "a" > output "a"
- press "a" again > output "b"
- press "a" again > output "a"
- press "a" again > output "b"
- keep repeating these...
Below script does what I want, but with little issue.
When I press and hold "a", it output "abababab"......
But I need it to act like keep outputing the current character until I release the key and activate the toggling.
i.e. press and hold "a" > output "aaaaaaaa"... > release "a" > stop outputing and toggle to "b"
Anyone know how can I achieve that? Thanks in advance!
Toggle:=0
$a::
Toggle:=!Toggle
if(Toggle=1) {
send, a
} else {
send, b
}
return
No comments:
Post a Comment