What's different about this textbox that auto-hotkey won't write text into it?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
benshumway
Posts: 2
Joined: 26 Jun 2017, 13:53

What's different about this textbox that auto-hotkey won't write text into it?

26 Jun 2017, 14:22

Using AutoHotkey, I have a very tiny script that writes "Foo":

Code: Select all

^m::
     SendInput Foo
Return
In actuality, it is writing a few lines of code, but for simplicity let's pretend it's writing "Foo"

This script works in most places like Notepad and chrome. However, it doesn't work for a particular program I am using. The program has a simple textbox which I can type text into. The program is called TextExpander. I am making sure the cursor is located in the textbox, however when I proess ctr-m nothing happens.

Any help? Tips?
benshumway
Posts: 2
Joined: 26 Jun 2017, 13:53

Re: What's different about this textbox that auto-hotkey won't write text into it?

26 Jun 2017, 15:49

Is there any way I can query Atuo-Hotkey to find out how it views this textbox differently?
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: What's different about this textbox that auto-hotkey won't write text into it?

26 Jun 2017, 16:58

Is the window Admin?
Try ControlGetFocus and ControlGetText.
Try AHK's window spy from the systray icon menu.
Try Acc:
Acc library (MSAA) and AccViewer download links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26201
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Aqualest, sachalamp and 425 guests