Send a command to YouTube in the background Topic is solved
Send a command to YouTube in the background
I want to send command 0 on youtube which makes the video rewind from another application with just one press of a shortcut and without the need to focus the browser, or at least it recovers the focus to the window I was using
-
- Posts: 35
- Joined: 17 Nov 2021, 10:53
Re: Send a command to YouTube in the background
ControlSend will almost certainly not work, but it depends on the program. Chromium-based browsers will not work with it, and neither will Firefox. I'm not sure what that leaves you with to use.
Threads to see:
viewtopic.php?f=76&t=67985&p=292422#p292422
viewtopic.php?p=299603#p299603
viewtopic.php?t=96785
Threads to see:
viewtopic.php?f=76&t=67985&p=292422#p292422
viewtopic.php?p=299603#p299603
viewtopic.php?t=96785
Re: Send a command to YouTube in the background
To accomplish this:
Code: Select all
F3:: ; change to desired hotkey
WinGet, ActiveID, ID, A
WinActivate, ahk_exe chrome.exe ; use the process name of your browser
Send, 0
WinActivate, ahk_id %ActiveID%
return
Re: Send a command to YouTube in the background Topic is solved
Just what i wanted to do, thanksboiler wrote: ↑08 Dec 2021, 08:57To accomplish this:Code: Select all
F3:: ; change to desired hotkey WinGet, ActiveID, ID, A WinActivate, ahk_exe chrome.exe ; use the process name of your browser Send, 0 WinActivate, ahk_id %ActiveID% return