Sign in to follow this  
Followers 0
lsea

how to get text of this StatusBar

6 posts in this topic

#1 ·  Posted (edited)

so now I hope to get text "5245",how can I do?

I use "_GUICtrlStatusBar_GetText",but i donnot know its syntax!

thanks!

Posted Image

Posted Image

Posted Image

Edited by lsea

Share this post


Link to post
Share on other sites



_GUICtrlStatusBar_GetText(0x0001041A, 0)-----but 0x0001041A is not same every time!

$abc = GUIctrlgetHandle("windowname","text","[Class: XXX, Instance: YYY]"-------sorry,it doesnot work!

MY CODE:

#include <GuiConstantsEx.au3>

#include <GuiStatusBar.au3>

#include <WinAPI.au3>

#include <WindowsConstants.au3>

Global $zhenshuu

Global $zhenshu

Global $zhenshu2

Global $zhenshu3

Opt('MustDeclareVars',1)

$zhenshuu = GUIctrlgetHandle("OPTILE Software","EDIT","[CLASS: msctls_statusbar32,INSTANCE: 2]")-----TIP error

$zhenshu =_GUICtrlStatusBar_GetText($zhenshuu, 0)

MsgBox(4096, "TEST", "COUNT:"&$zhenshu)

Share this post


Link to post
Share on other sites

I suspect the "part" is incorrect... sure it is "part 0"?

_GUICtrlStatusBar_GetText($zhenshuu, 0)

not part 1 or 2

_GUICtrlStatusBar_GetText($zhenshuu, 1)

_GUICtrlStatusBar_GetText($zhenshuu, 2)

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

I suspect the "part" is incorrect... sure it is "part 0"?

_GUICtrlStatusBar_GetText($zhenshuu, 0)

not part 1 or 2

_GUICtrlStatusBar_GetText($zhenshuu, 1)

_GUICtrlStatusBar_GetText($zhenshuu, 2)

Lar.

_GUICtrlStatusBar_GetText(0x0001041A, 0)-----it does work!IT is OK!

part 0 is sure!

but its handle is not the same everytime when you open software again!

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  
Followers 0