I want to scroll down with 11 down arrow key presses and then left click a specific location on the site to play the media and then once the media starts I would like to pause and wait until fully loaded. And I would also like to be able to press !p while in the open tab which is a hotkey I setup on firefox for a addon to start.
So here is what I have so far:
Code: Select all
+P::
Send {Down 11}
Sleep 200
Click 335, 465
Sleep 200
Click 335, 465
Sleep 200
Send !p
Return
So I want to go down 11 and click on the video player until it starts to load and then once it has loaded which sometimes takes a few seconds I will then pause the video and press a hotkey which is alt+p which activates the addon. alt+p works fine on its own but wont work in the script. I just tried it on the window media player and if I double click really fast with the mouse the full screen media player opens every time. So I just want to click it and then leave the window.
I might not need the sleeps but I don't know how else to click twice while waiting for the video to start loading. So I just used sleep so down works but click opens full screen media player maybe its clicking to fast I'm not sure.
I have also changed the code to this to try and close the full screen
Code: Select all
+P::
Send {Down 11}
Sleep 200
Click 335, 465
Sleep 200
Click 335, 465
Sleep 200
Send {ESC}
Sleep 150
Send !p
Return