Jump to content

Get button text

Recommended Posts

What I want to do:

Read the text of the buttons in the OBS control menu:


The text will change, so if I click "Start Streaming" it will then go to "Stop streaming".

I am currently using Autoit version

I am experiencing the problem where the whole area in the picture above is a "control".


Summary of Autoit V3 Window Info:

Advanced (Class):   [CLASS:Qt5QWindowIcon; INSTANCE:1]
Text:   obs64
Position:   872, 616
Size:   169, 164
ControlClick Coords:    63, 65
Style:  0x56000000
ExStyle:    0x00000000
Handle: 0x0016081A

>>>> Mouse <<<<
Position:   1595, 743
Cursor ID:  0
Color:  0x4C4C4C

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

I have tried using ImageSearch but it doesn't find the picture. I get no errors, it just doesn't find the picture. I might get the ImageSearch to work in the newest version of Autoit, though for now I would prefer to stick to AutoIt 

Is there any way I can get the text from the buttons?


Best regards, me

Link to comment
Share on other sites

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.


My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

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

  • Recently Browsing   0 members

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