rgeerman Posted December 5, 2016 Posted December 5, 2016 Hi , I am trying to set up something basic to read the status from the StatusBar and depending on that status to run some scripts. However i have been unable to read the simple status even though the AutoIT Window Info tool does see the text. I did notice it does not populate the first property, but rather the second property contains the text i need. Is there some way to grab that second property? The application i am trying to read from is Audacity, Here is some simple code i was using to test grabbing the text. #include <WinAPI.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> $TextinWindow = StatusbarGetText("502013341_E_cnt_1_r720P") MsgBox(4,"",$TextinWindow) When i try with other applications like Notepad++ that seems to work with no problem. In the attached Snip you will see that in the StatusBar window the value stopped is there. When i press play in audacity it changes that status to Playing. Thanks for your help.
Synapsee Posted December 6, 2016 Posted December 6, 2016 Hi, StatusbarGetText ( "title" [, "text" [, part = 1]] ) ; so u need do something like that : StatusbarGetText("title", "", 2)
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