I have searched the forum to and found to add "~" if front of hotkey. So I add ~ infront of Right, Left, Up, Down, but it doesn't work.
Below is my code
Code: Select all
#IfWinActive, WindowA
Right::
Left::
Up::
Down::
CurrentDir1 := A_ThisHotkey
return
#If
Delete::
if (HitToggle1 := !HitToggle1){
SetTimer, Hit1, 250
GoSub, Hit1
} else {
SetTimer, Hit1, Off
}
return
Hit1:
if (IsSpace1 := !IsSpace1)
key1 := "Space"
else
key1 := CurrentDir1
ControlSend, ahk_parent, % "{" key1 "}", WindowA
return