zain Posted February 8, 2011 Share Posted February 8, 2011 I am quite newbie to autoit.I have 2 questions.1.how to use ControlFocus ( "", "", "[X:643;Y:339]" ) when widow has no text and no title.Please look at following information of window and control viewed by window informer.>>>> Window <<<<Title: Class: WindowsForms10.window.8.app.0.33c0d9dPosition: 0, 0Size: 1024, 768Style: 0x16010000ExStyle: 0x00010000Handle: 0x005201E0>>>> Control <<<<Class: WindowsForms10.EDIT.app.0.33c0d9dInstance: 2ClassnameNN: WindowsForms10.EDIT.app.0.33c0d9d2Name: txtConsumerNoAdvanced (Class): [NAME:txtConsumerNo]ID: 15270262Text: Position: 638, 237Size: 263, 30ControlClick Coords: 38, 27Style: 0x560100C0ExStyle: 0x00000200Handle: 0x00E90176now how is it possible to intract with this control. 2.I want to call text change event of a this control. How is it possible Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 8, 2011 Moderators Share Posted February 8, 2011 (edited) zain,You might be new, but how did you miss the this at the top of this forum area. I have asked for the thread to be moved, so be patient. M23Edit: Mods - that was quick! Edited February 8, 2011 by Melba23 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: Spoiler 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 Link to comment Share on other sites More sharing options...
czardas Posted February 8, 2011 Share Posted February 8, 2011 I'm not sure if this will work, but you could try: ControlFocus ( "[CLASS:WindowsForms10.window.8.app.0.33c0d9d]", "", "[ID:15270262]") operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
zain Posted February 9, 2011 Author Share Posted February 9, 2011 I'm not sure if this will work, but you could try: ControlFocus ( "[CLASS:WindowsForms10.window.8.app.0.33c0d9d]", "", "[ID:15270262]") Not working my friend.Also ID is dynamically issued. Link to comment Share on other sites More sharing options...
zain Posted February 11, 2011 Author Share Posted February 11, 2011 Not working my friend.Also ID is dynamically issued. Thanks for Reply! I solved this by $hWnd = WinGetHandle("[ACTIVE]") and once i got handle of window i can access it controls easily. Now i am stuck into a problem.i have to write algo before a text field text change event. Whenever text is changed in this box i will do something in another combo box.how is this possible. Thanks! 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