Detect if cursor is in an input field?
Detect if cursor is in an input field?
I spend a lot of time reading PDFs and I've tried implementing Vim-style keybindings for scrolling, etc. while in my PDF reader. The problem is that when I go to type in a comment or search box, I need to remember to suspend my script. Is there a way AHK can detect whether the cursor is in a text input field or not, so that I can tell AHK not to apply the new keybindings when I'm entering text? I looked around in the forums and the documentation but didn't see anything like this.
Re: Detect if cursor is in an input field?
You/the script has to be able to detect the control that is currently active in real-time (SetTimer) to decide if to toggle your keybindings.
Use AHK's winSpy (or whatever equivalent to identify those controls IDs). Good luck
Use AHK's winSpy (or whatever equivalent to identify those controls IDs). Good luck
Who is online
Users browsing this forum: Black_dog, Google [Bot] and 121 guests