Schmand Posted July 5, 2019 Share Posted July 5, 2019 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 More sharing options...
Developers Jos Posted July 5, 2019 Developers Share Posted July 5, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now