Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get cursor position in text (caret) #11

Open
JakubKoralewski opened this issue Dec 19, 2019 · 0 comments
Open

Get cursor position in text (caret) #11

JakubKoralewski opened this issue Dec 19, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed obs-script

Comments

@JakubKoralewski
Copy link
Owner

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-
@JakubKoralewski JakubKoralewski added enhancement New feature or request help wanted Extra attention is needed obs-script labels Dec 19, 2019
@JakubKoralewski JakubKoralewski pinned this issue Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed obs-script
Projects
None yet
Development

No branches or pull requests

1 participant