Jump to content
Sign in to follow this  
atzoref

How can I read text from "ThunderRT6UserControlDC" Class

Recommended Posts

atzoref

Hi,

I have a control on external GUI which has this control "ThunderRT6UserControlDC"

It's kind of progress bar or somehing like that which present a number with colored bar which change according to the number.

My question is: How can I read this number on it?

(ControlGetText doesn't work)

Details:

>>>> Window <<<<

Title: AAA

Class: ThunderRT6FormDC

Position: 22, 55

Size: 600, 676

Style: 0x16CA0000

ExStyle: 0x00040100

Handle: 0x000000000018077A

>>>> Control <<<<

Class: ThunderRT6UserControlDC

Instance: 1

ClassnameNN: ThunderRT6UserControlDC1

Name:

Advanced (Class): [CLASS:ThunderRT6UserControlDC; INSTANCE:1]

ID:

Text:

Position: 280, 24

Size: 81, 17

ControlClick Coords: 67, 8

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x00000000000403A0

Thanks.

Share this post


Link to post
Share on other sites
FireFox

Hi,

What application are you trying to read the text from ?

Can you make a screen shot?

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
atzoref

I took a picture of the control, the control is in the circle

Posted Image

Share this post


Link to post
Share on other sites
water

I found the following code on the german AutoIt forum to get the value of an external progressbar:

Global $hControlHandle = ControlGetHandle("Window title", "", "[CLASS: ProgressBar20WndClass; INSTANCE:2]")
MsgBox(0,"","Percent: "&_Progress_GetPos($hControlHandle))
Func _Progress_GetPos($hWnd)
    Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0)
    Return Number(StringReplace($ret[0], ",", "."))
EndFunc ;==>_Progress_GetPos
Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
atzoref

I found the following code on the german AutoIt forum to get the value of an external progressbar:

Global $hControlHandle = ControlGetHandle("Window title", "", "[CLASS: ProgressBar20WndClass; INSTANCE:2]")
MsgBox(0,"","Percent: "&_Progress_GetPos($hControlHandle))
Func _Progress_GetPos($hWnd)
Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0)
Return Number(StringReplace($ret[0], ",", "."))
EndFunc ;==>_Progress_GetPos

But I have a different Class type (ThunderRT6UserControlDC)

I tried this but it returns 0.

Share this post


Link to post
Share on other sites
FireFox

Can you provide the application name please? So we can test it ourselves.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
water

But I have a different Class type (ThunderRT6UserControlDC)

I tried this but it returns 0.

I just copied the code I've found. You have to change it to your needs ;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
atzoref

I just copied the code I've found. You have to change it to your needs ;)

I know, I have already change it but it didn't work with the class I have.

And the App is a privat on my company, so it will not help you.

Share this post


Link to post
Share on other sites
water

Then I have run out of ideas :ermm:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  

×