Sign in to follow this  
Followers 0
Nogo

Controlclicktext

2 posts in this topic

Hello,

i'm a beginner with AUTOIT.

I'm trying to click buttons with changing ID's. Only the text of the buttons will not change.

Is there a UDF to click or push a button with a certain text?

Or how would you start to cope this problem

Or have I not seen the easy way.. (for I'm a begginer...)

My try (just one out of some...)

This activates the window:

WinActivate("classname=WindowsForms10.window.8.app.0.2004eee","1.6 x")

Is there a function to activate the Button with "1.6 x"? So, simple this

Send("{SPACE}")

would work

Thanks a lot and happy coding

Share this post


Link to post
Share on other sites



ControlClick("Leica Application Suite - LAS", "", "[CLASS:WindowsForms10.BUTTON.app.0.2004eee; TEXT:1.6 x]")

is the solution. Using parameters instead of ID is possible, RTFM , BTW the Helpfile is great.

Share this post


Link to post
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
Sign in to follow this  
Followers 0