or:
Code: Select all
:B0C*:Mr ::{Bs}{U+A0}
Code: Select all
:B0C*:Mr ::{Bs}{U+A0}
Code: Select all
#Persistent
#InstallMouseHook
SetTimer, double_clicking, 200
double_clicking:
If GetKeyState("XButton1","P") And GetKeyState("XButton2","P")
Click 2
Return
Code: Select all
Send Athens, Greece
Code: Select all
Send {Text}Athens, Greece
Code: Select all
#Requires AutoHotkey v2.0
; instructs AHK to only do these conversions
; when an Notpad window is active
#HotIf WinActive("ahk_exe notepad.exe")
Numpad1::Alt
NumpadEnd::Alt
Numpad2::MButton
NumpadDown::MButton
#HotIf
Code: Select all
x::
N:=0, Keys:=["w Down","a Up","d Down"
,"w Up","s Down","d Up","a Down","s Up"]
While, GetKeyState("x","P") {
SendEvent,% "{" Keys[++N:=Mod(N, 8)] "}"
Sleep, 50
}
SendEvent, {a Up}{w Up}{d Up}{s Up}
Return
Code: Select all
#Requires AutoHotkey v2.0
$Up::Send(Keywait("Up", "T.5")?"{Up}":"q"), Keywait("Up")
$Down::Send(Keywait("Down", "T.5")?"{Down}":"w"), Keywait("Down")