Skip to content

Instantly share code, notes, and snippets.

@RaptorX
Created February 17, 2023 15:26
Show Gist options
  • Select an option

  • Save RaptorX/3792effdbe8b0a3f9ff7465af81010f2 to your computer and use it in GitHub Desktop.

Select an option

Save RaptorX/3792effdbe8b0a3f9ff7465af81010f2 to your computer and use it in GitHub Desktop.

Revisions

  1. RaptorX created this gist Feb 17, 2023.
    15 changes: 15 additions & 0 deletions editmodedetect.ahk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    settimer displayCursor, 10
    return
    displayCursor()
    {
    if a_cursor = 'IBeam'
    {
    MouseGetPos ,,, &OutputVarControl, 2
    hwnd := ControlGetFocus('A')

    if (OutputVarControl = hwnd)
    tooltip a_cursor ' is in edit mode'
    else
    tooltip a_cursor ' is NOT in edit mode'
    }
    }