Jump to content

how to get text of this StatusBar


lsea
 Share

Recommended Posts

_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)

Link to comment
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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...