Maybe it's simple, shift N moves to next song in google chrome youtube playlists, but I want to do when not in window, bettertouchtool send to application shift N doesn't work, maybe it can be done easier through KM?
There's no way I know of to send a keystroke to a specific video in a specific tab of an application in the background.
yeah I think it would be complex, I'm dumb though, beardedspice is a mac app that does that, can send media keys to various players, forgot about that, and then I route that through btt and it works, so it's good. thanks for the reply.
what the heck, that was a nice challenge.
Youtube Next.kmmacros (2.2 KB)
I have a particular interest in getting inside the workings of web video players. I hope this works for you. It will prompt a user confirmation to allow KM to control Chrome.
the macro just contains this appleScript:
thanks avialan, the people on KM forum are the smartest nicest applescripters
for other controls:
the key is in that 'secret sauce' i mentioned above - a unique identifier for the various buttons. One could create a different function for each, cloned off the 'YouTubeNext' function above with just the button code changed. Here are some other button codes I see, names seem pretty self-explanatory.
ytp-play-button (i think this doubles as pause)
cool, thanks for those.