Jump to content

Read Text from StatusBar (Audacity)


 Share

Recommended Posts

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.

captureWindow.PNG

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...