Code: Select all
*LCtrl::
send {f9 down}
sleep 100
send {F9 up}
While GetKeyState("LCtrl","p")
{
click
}
return
Code: Select all
*LCtrl::
send {f9 down}
sleep 100
send {F9 up}
While GetKeyState("LCtrl","p")
{
click
}
return
Code: Select all
#Requires AutoHotkey v1.1.33
*LCtrl::
Send {F9 down}
SetTimer done, -100
ToolTip F9 down
While GetKeyState("LCtrl", "P")
Click
Return
done() {
Send {F9 up}
ToolTip
}
sir can you help me convert this to latest version 2mikeyww wrote: ↑27 May 2023, 06:02Welcome to this AutoHotkey forum!
If you are new to AHK, you might consider working with version 2 instead of this older version.Code: Select all
#Requires AutoHotkey v1.1.33 *LCtrl:: Send {F9 down} SetTimer done, -100 ToolTip F9 down While GetKeyState("LCtrl", "P") Click Return done() { Send {F9 up} ToolTip }
Code: Select all
#Requires AutoHotkey v2.0
*LCtrl:: {
Send '{F9 down}'
SetTimer () => Send('{F9 up}'), -100
While GetKeyState('LCtrl', 'P')
Click
}