I don't want to use hotkeys because it disables the users key input so yeah :Q
Code: Select all
CurrentKey = a
while GetKeyState("d", "P")
{
Send, d
CurrentKey = d
}
return
while GetKeyState("a", "P")
{
Send, a
CurrentKey = a
}
return
Code: Select all
CurrentKey = a
while GetKeyState("d", "P")
{
Send, d
CurrentKey = d
}
return
while GetKeyState("a", "P")
{
Send, a
CurrentKey = a
}
return
Code: Select all
~^c:: ; Copy
MsgBox, Something was copied!
return
Code: Select all
~a::
currentKey = a
return
~d::
currentKey = d
return
F1::
MsgBox, %currentKey%
return
Scr1pter wrote:I have no idea what you're talking about, sorry.
But it's not true that hotkeys disable user key input.
This is why there is ~.
If you use this script, Ctrl+C would still copy:You do know when and why to use variables?Code: Select all
~^c:: ; Copy MsgBox, Something was copied! return
If you want to assign a variable to a key, you could simply do:RegardsCode: Select all
~a:: currentKey = a return ~d:: currentKey = d return F1:: MsgBox, %currentKey% return
Users browsing this forum: filipemb and 380 guests