Athos Posted July 20, 2012 Posted July 20, 2012 (edited) Hi Guys. I have a problem when I'm trying to get text from a control window, but there is no specific text there. The control id is: >>>> Window <<<< Title: Options Class: Dialog Position: 296, 107 Size: 688, 769 Style: 0x96CC0000 ExStyle: 0x00000100 Handle: 0x0000000000020F30 >>>> Control <<<< Class: TextArea Instance: 3 ClassnameNN: TextArea3 Name: Advanced (Class): [CLASS:TextArea; INSTANCE:3] ID: Text: Position: 8, 616 Size: 272, 23 ControlClick Coords: 147, 13 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x0000000000020F38 I've tried $sText = ControlGetText(WinGetTitle("[CLASS:TextArea]"), "", "[CLASS:TextArea; INSTANCE:3]") And I've had no luck. However, the text is cleary visible on the page and can be highlighted by double clicking. My question is do I have to resort to copying it into a new notepad, reading it there and then putting that data back into my script, or is there an easier way. Also, thanks for all your help so far. Best, Athos Edited July 20, 2012 by Athos
Moderators Melba23 Posted July 20, 2012 Moderators Posted July 20, 2012 Athos, At the moment you are using the control class to identify the GUI. Try this: $sText = ControlGetText("Options", "", "[CLASS:TextArea; INSTANCE:3]") Any better. M23 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
Athos Posted July 20, 2012 Author Posted July 20, 2012 Nope I just tried that and it didn't get the text. Even if this is impossible though, it's not a huge deal for me, as I was able to get the information I wanted by saving the config file and I'm able to track the information I wanted that way. I was just hoping I could get it directly from this screen.
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