JakubKoralewski / cursor-recorder

Records mouse movement to a file. Use with OBS Studio as an external Python script or using the standalone Python script. Use the After Effects script to import the generated cursor movement data.
https://obsproject.com/forum/resources/obs-cursor-recorder.789/
Mozilla Public License 2.0
16 stars 0 forks source link

Get cursor position in text (caret) #11

Open JakubKoralewski opened 4 years ago

JakubKoralewski commented 4 years ago

Possible on Windows with Python using the win32api.

  1. How to install pywin32(SO)
  2. Get caret position in Python inside text(SO) but you have to know what window
  3. Get active window in Python just once(SO)
  4. Get notified when active window changes:
    1. In Linux with XLib and Python3(SO) (same on GitHub) or:
    2. In Windows with C++ using callback functions(SO) or this(SO)
    3. Possibly PyGetWindow package
    4. pyGTK, XLib(SO)
    5. on Mac OS X(SO)

Cannot support VSCode with extensions:

  1. No DOM Access(SO)
  2. No API nor is it intended ever(SO)

IntelliJ plugin:

  1. Does it work without one?
  2. https://intellij-support.jetbrains.com/hc/en-us/community/posts/206794335-How-to-get-cursor-position-in-the-current-editor-