lsea Posted September 1, 2009 Share Posted September 1, 2009 (edited) so now I hope to get text "5245",how can I do?I use "_GUICtrlStatusBar_GetText",but i donnot know its syntax!thanks! Edited September 1, 2009 by lsea Link to comment Share on other sites More sharing options...
picaxe Posted September 1, 2009 Share Posted September 1, 2009 (edited) Try_GUICtrlStatusBar_GetText(0x0001041A, 0) Edit: Rishav is correct Edited September 1, 2009 by picaxe Link to comment Share on other sites More sharing options...
Rishav Posted September 1, 2009 Share Posted September 1, 2009 i doubt the handle's static. better to go for $abc = GUIctrlgetHandle("windowname","text","[Class: XXX, Instance: YYY]" _GUICtrlStatusBar_GetText($abc, 0) Link to comment Share on other sites More sharing options...
lsea Posted September 1, 2009 Author Share Posted September 1, 2009 _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 More sharing options...
LarryDalooza Posted September 1, 2009 Share Posted September 1, 2009 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. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
lsea Posted September 2, 2009 Author Share Posted September 2, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now