First code-
Code: Select all
P::
{
KeyDown2 := !KeyDown2
If KeyDown2
Send {shift down}
Else
Send {shift up}
Return
}
{::
Code: Select all
[::
{
KeyDown2 := !KeyDown2
If KeyDown2
Send {w down}
Else
Send {w up}
Return
}
q::
Code: Select all
P::
{
KeyDown2 := !KeyDown2
If KeyDown2
Send {shift down}
Else
Send {shift up}
Return
}
{::
Code: Select all
[::
{
KeyDown2 := !KeyDown2
If KeyDown2
Send {w down}
Else
Send {w up}
Return
}
q::
Code: Select all
OnExit, ExitSub
*p::
ShiftDown := !ShiftDown
If ShiftDown
Send {shift down}
Else
Send {shift up}
Return
*[::
WDown := !WDown
If WDown
Send {w down}
Else
Send {w up}
Return
ExitSub:
Send {shift up}{w up}
ExitApp
Code: Select all
OnExit, ExitSub
*p::
P := !P
If P
Send {shift down}{w down}
Else
Send {shift up}{w up}
Return
ExitSub:
Send {shift up}{w up}
ExitApp
Users browsing this forum: No registered users and 208 guests