xuzo Posted April 5, 2017 Posted April 5, 2017 This should be very simple...but for some reason "text expander" brings no results on this forum! Anyways, I can create a script that will type in notepad, but I need to use the window activate. How can I create a script that types text in ANY window, and I also need to be able to trigger it with a keyboard shortcut. I want to use this to input text on various applications instead of pasting and typing by hand.
InunoTaishou Posted April 5, 2017 Posted April 5, 2017 Idk what a text expander is. You can look at HotKeySet to to enable a shortcut key and use Send to type the text you're wanting to type
xuzo Posted April 5, 2017 Author Posted April 5, 2017 Yes I can do that, but the text needs to send to any window, or active window anyways
InunoTaishou Posted April 5, 2017 Posted April 5, 2017 Yup, and that's exactly what Send would do, type to the active window. Did you bother looking at the wiki or the Help File? If you wanted to send text to an inactive window, something in the background, you'd have to use ControlSend
Moderators JLogan3o13 Posted April 5, 2017 Moderators Posted April 5, 2017 @xuzo InunoTaishou is exactly correct. TextExpander in AHK does precisely what a HotKeySet would do; you use a hotstring to call a function, in your case sending text. For typing in any window, you would simply click on that window before you hit the hotkey to send your string, the same as you would with textexpander. So what exactly are you unable to do? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now