Jump to content
Sign in to follow this  
KenNichols

Read text from Static?

Recommended Posts

I am trying to read the text of a static control and it only shows the text as "Static"

What am I doing wrong? See sample code below. Thanks in advance!

$StaticTxt = ControlGetText("VZAccess Manager","",1007)
 MsgBox(1,"Static Text", $StaticTxt)

[topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner!

Share this post


Link to post
Share on other sites

>>>> Window <<<<

Title: VZAccess Manager

Class: #32770

Position: 390, 86

Size: 640, 520

Style: 0x160B004C

ExStyle: 0x00010000

Handle: 0x0000000000020286

>>>> Control <<<<

Class: Static

Instance: 3

ClassnameNN: Static3

Name:

Advanced (Class): [CLASS:Static; INSTANCE:3]

ID: 1007

Text: Static

Position: 345, 447

Size: 167, 62

ControlClick Coords: 122, 35

Style: 0x5002210D

ExStyle: 0x00000004

Handle: 0x000000000002028C

>>>> Mouse <<<<

Position: 857, 568

Cursor ID: 0

Color: 0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

Sys

__

[ ]

X

&Start VPN

&Disconnect

Static

Static

Static

&Usage

&My Verizon

&Get Access

D&etect Device

>>>> Hidden Text <<<<

&Network Selection

GPS Se&ttings

&Search:

C&ategory:

C&ountry:

St&ate/Province:

C&ity:

&Compose

&Get New

&Reply

For&ward

&Delete

Delete &All

View All

0.00

31.2 KB

28.29

0.00

74.4 KB

123.05

75.202.112.78

00:00:52

IP Address:

Duration:

RX Rate (kbps):

Max RX Rate (kbps):

RX bytes:

Max TX Rate (kbps):

TX Rate (kbps):

TX bytes:

Static

R&eset

&Apply

Help


[topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner!

Share this post


Link to post
Share on other sites

The AU3Info tool says the text is "Static" too. I assume you see something else, but it might be an owner-drawn graphic rather than actual text.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...