check if utube video is playing

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
braunbaer
Posts: 483
Joined: 22 Feb 2016, 10:49

check if utube video is playing

25 May 2024, 17:21

Hi!

Is it possible for a script to know whether a youtube video (or maybe any video) is currently running on the computer? I would like to perform some tasks when the computer is idle, but I don't want AHK to interrupt when I am watching a video (in that case, mouse and keyboard may be idle for an extended period of time, so only checking A_timeidle is not enough).
User avatar
CoffeeChaton
Posts: 44
Joined: 11 May 2024, 10:50

Re: check if utube video is playing

25 May 2024, 21:33

A less elegant but straightforward solution
search img to find youtube icon and trumpet pattern of chrome.
braunbaer
Posts: 483
Joined: 22 Feb 2016, 10:49

Re: check if utube video is playing

26 May 2024, 06:07

....
Last edited by braunbaer on 26 May 2024, 06:10, edited 1 time in total.
braunbaer
Posts: 483
Joined: 22 Feb 2016, 10:49

Re: check if utube video is playing

26 May 2024, 06:10

CoffeeChaton wrote:
25 May 2024, 21:33
A less elegant but straightforward solution
search img to find youtube icon and trumpet pattern of chrome.
Thank you for this suggestion.
It won't work exactly this way, because often I leave the computer after pausing a video that remains on the screen, but i can capture a part of the screen where videos normally play and check a second later if the screen has changed.
If nobody comes up with a better solution, I will try it this way.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: balawi28, Bing [Bot], MrHue, Rohwedder, RussF, Smile_ and 125 guests