Skip to content

Instantly share code, notes, and snippets.

@CanYouJustWorkPlease
Last active November 30, 2020 11:43
Show Gist options
  • Save CanYouJustWorkPlease/a1816ca7ee44ba44a42f129980908c7b to your computer and use it in GitHub Desktop.
Save CanYouJustWorkPlease/a1816ca7ee44ba44a42f129980908c7b to your computer and use it in GitHub Desktop.
Take control of the media buttons on naturalreaders.com by using Q, W, E and Enter(numpad) keys for MS Edge
SetTitleMatchMode, 2
#IfWinActive, Free Text to ahk_exe msedge.exe
;~ Makes the text label under Play, Forward and Backward buttons disappear by moving the mouse just a little.
;~ You have to tweak the values to make it work for yourself. Make use of Windows Spy feature of AutoHotkey to
;~ find out the coordinates.
;~ Use Q, W, E and Enter(numpad) keys to use the media buttons on naturalreaders.com
mm() {
MouseGetPos, CoordXRec, CoordYRec
MouseMove, CoordXRec+1, CoordYRec+1
Sleep, 50
MouseMove, CoordXRec-1, CoordYRec-1
}
~q::
ControlClick, x315 y145, Free Text to,, Left, 1,D
KeyWait, q
ControlClick, x315 y145, Free Text to,, Left, 1,U
mm()
return
~NumpadEnter::
ControlClick, x315 y145, Free Text to,, Left, 1,D
KeyWait, NumpadEnter
ControlClick, x315 y145, Free Text to,, Left, 1,U
mm()
return
~w::
ControlClick, x374 y146, Free Text to,, Left, 1,D
KeyWait, w
ControlClick, x374 y146, Free Text to,, Left, 1,U
mm()
return
~e::
ControlClick, x418 y145, Free Text to,, Left, 1,D
KeyWait, q
ControlClick, x418 y145, Free Text to,, Left, 1,U
mm()
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment