Code: Select all
^+Right::Run, Firefox.exe https://github.com/yt-dlp/yt-dlp
Sleep, 3000
Send, !d
Sleep, 500
Send, {end}
SendInput, #installation{Enter}
Code: Select all
^+Right::Run, Firefox.exe https://github.com/yt-dlp/yt-dlp
Sleep, 3000
Send, !d
Sleep, 500
Send, {end}
SendInput, #installation{Enter}
Code: Select all
SendInput, {#}installation{Enter}
Next:If a hotkey needs to execute only a single line, that line can be listed to the right of the double-colon. In other words, the return is implicit.
How to find out, in two steps.Should I use SendRaw instead?
Code: Select all
^+Right::Run, Firefox.exe https://github.com/yt-dlp/yt-dlp
Sleep, 3000
Send, !d
Sleep, 500
Send, {end}
SendInput, {#}installation{Enter}
Return
That was easier to understand for beginners.To have more than one command executed by a hotkey, put the first line beneath the hotkey definition and make the last line a return.
For example:
...
and
Without a Return or other control flow, the script will proceed to the next statement.
Users browsing this forum: balawi28, Chunjee, moltenchees and 278 guests