Bagel Posted November 19, 2019 Share Posted November 19, 2019 Okay, I've searched around and Google has failed to help me and I can't figure this out. I have an AutoIt GUI I've created with inputbox controls. I need the GUI to be able to detect when text has been entered into an inputbox and then perform actions. I can do this now if I manually enter text into the inputbox and hit enter. But the text I need to insert has to be insert from an EXTERNAL script using ControlSetText or the likes thereof. But what I've found through testing is that using ControlSetText puts the text in the control but doesn't send the message to the GUI that the inputbox has changed as it does when I type it in and hit enter and the subsequent actions cannot be performed. How can I achieve this? Thanks in advance! Bagel Link to comment Share on other sites More sharing options...
Zedna Posted November 19, 2019 Share Posted November 19, 2019 (edited) Look here (WM_COMMAND + EN_CHANGE in my example) Edited November 19, 2019 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Bagel Posted November 19, 2019 Author Share Posted November 19, 2019 I'm sorry, but I don't understand how this would apply to my situation. The external AutoIt script initiating the change has to somehow trigger the change to the inputbox in the GUI through GUIGetMsg(). I'm using a Switch and need the control ID to be passed to one of the cases. Unless there is a better way... I suppose I COULD create a separate button and issue ControlCommand from the external script to that button after the inputbox has been populated with ControlSetText. But that seems a very convoluted and Rube Goldberg-esque way of doing it that I'd like to avoid. Link to comment Share on other sites More sharing options...
Zedna Posted November 19, 2019 Share Posted November 19, 2019 (edited) If you need opposite direction then use _SendMessage() + WM_COMMAND + EN_CHANGE Look here: https://www.autoitscript.com/autoit3/docs/libfunctions/_SendMessage.htm Edited November 19, 2019 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Nine Posted November 19, 2019 Share Posted November 19, 2019 ControlSend "{TAB}" or "{ENTER}" after the ControlSetText “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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