Sundarrajan Posted January 29, 2020 Posted January 29, 2020 Hi team, I'm automating a Windows GUI with AutoIt v3.3.8.1. When i'm setting the text by ControlSetText, the text box lost focus event not triggered. But the windows GUI working fine in try manually. If the event trigger properly, the Windows GUI auto enabled 6 text boxes [ref: Manual Run.png] Code Snippet ControlSetText($hWnd,"","[NAME:txtMsgLen]", "0006") send("{TAB}") By any chance shall we force the Windows GUI Lost Focus event of a text box? Any help is much appreciated. Thanks! Sundarrajan R
Moderators Melba23 Posted January 29, 2020 Moderators Posted January 29, 2020 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Expand Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Reveal hidden contents ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Nine Posted January 29, 2020 Posted January 29, 2020 Have you tried ControlSend ($hWnd,"","[NAME:txtMsgLen]", "{TAB}") instead of Send () ? “They did not know it was impossible, so they did it” ― Mark Twain Reveal hidden contents 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Sundarrajan Posted February 2, 2020 Author Posted February 2, 2020 On 1/29/2020 at 1:25 PM, Nine said: Have you tried ControlSend ($hWnd,"","[NAME:txtMsgLen]", "{TAB}") instead of Send () ? Expand Hi, thanks for your reply. Yes i tried, not working in automated way. Only manual screen navigation TAB is working fine. Need to force call the Lost_focus with dllcall kind?
junkew Posted February 2, 2020 Posted February 2, 2020 Try to use send 0006 tab and do not use controlsettext FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
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