Jump to content

Recommended Posts

Posted (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 by Athos
  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...