Jump to content

click a button on position


Recommended Posts

Hello,

Iam really new to autoIT but I really like the programm. Actually my problem is that I want to run a programm and klick a button named "OK" after startup.

First I tried it with the ID (works great) but the ID changes after every programm start, so it is not possible to use for me.

Here is the data of the AutoIT Window Info:

Titel: Settings

Class: WindowsForms10.BUTTON.app.0.30.....

Name: mOkBtn

Position: 111,151

 

Here is the script I've tried:

 

Run("C:\Program Files\REMOVED")
WinActive("Settings")
MouseClick("left",111,151,1,0)

 

Hope that anyone have an idea ;)

Thanks in advanced

Schmand

Link to comment
Share on other sites

  • Developers

 You probably activate and send the click before the program is started. So adda sleep or winwait before those. 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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