Tusyumi > 2025-01-24 01:00
Jean Lalonde > 2025-01-24 08:26
Tusyumi > 2025-01-24 11:07
Xavier > 2025-01-24 15:04
$MButton:: ;; COMMENT
WinGetTitle, winTitle, A
WinGetClass, winClass, A
ControlGetFocus, ActiveControl, ahk_exe FILLINvarHERE
KeyWait MButton, T0.15
if ErrorLevel
{
YOURACTIONHERE ; long press\hold
}
else
{
KeyWait MButton, D T0.15
if ErrorLevel
{
sendinput, {MButton} ; One Press
}
else
{
YOURACTIONHERE ; Double Press
}
}
KeyWait MButton
return
insert3actionskey:
InputBox, keyname,,Enter the KeyName you want to add 3 actions to...
if errorlevel
return
backupclipboard()
sleep 100
clipboard := ""
sleep 100
clipboard =
(
$%keyname%:: ;; COMMENT
WinGetTitle, winTitle, A
WinGetClass, winClass, A
ControlGetFocus, ActiveControl, ahk_exe FILLINvarHERE
KeyWait %keyname%, T0.15
if ErrorLevel
{
YOURACTIONHERE ; long press\hold
}
else
{
KeyWait %keyname%, D T0.15
if ErrorLevel
{
sendinput, {%keyname%} ; One Press
}
else
{
YOURACTIONHERE ; Double Press
}
}
KeyWait %keyname%
return
)
sleep 500
sendinput, ^v
sleep 300
restoreclipboard()
sleep 800
return