Jump to content

Get button text


Recommended Posts

What I want to do:

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

ccf709b448a737655ef45a0dc0e41007.png

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

I am currently using Autoit version 3.3.8.1

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

2de5885f66b4000210162d19675a73dd.png

Summary of Autoit V3 Window Info:

Advanced (Class):   [CLASS:Qt5QWindowIcon; INSTANCE:1]
ID: 
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 <<<<
obs64
obs64
obs64
obs64
obs64
obs64
obs64
obs64
obs64

>>>> Hidden Text <<<<
obs64

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

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.

Spoiler

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
 Share

  • Recently Browsing   0 members

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