Skip to content

Instantly share code, notes, and snippets.

@CanYouJustWorkPlease
Last active November 30, 2020 11:43
Show Gist options
  • Select an option

  • Save CanYouJustWorkPlease/a1816ca7ee44ba44a42f129980908c7b to your computer and use it in GitHub Desktop.

Select an option

Save CanYouJustWorkPlease/a1816ca7ee44ba44a42f129980908c7b to your computer and use it in GitHub Desktop.

Revisions

  1. CanYouJustWorkPlease revised this gist Nov 30, 2020. No changes.
  2. CanYouJustWorkPlease created this gist Nov 30, 2020.
    49 changes: 49 additions & 0 deletions Control buttons naturalreaders.ahk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    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