cabrunco Posted May 18, 2015 Share Posted May 18, 2015 Dear all, please see the following code:opt("WinTitleMatchMode",1)ControlClick("Warning","","Button1") This is supposed to work when the "Warning" window is on the background. In fact, it always does except when I have the Mach3 software for CNC control working at the same time. Now, if I do the following, it works even with the Mach3 software active: opt("WinTitleMatchMode",1)WinActivate("Warning")ControlClick("Warning","","Button1") Any possible reason for that? Not very important, I have no problems making the "Warning" window being active, but still it looks strange to me. Oh, and using the advanced mode, like below, does not help: ControlClick("[CLASS:#32770]; Title:Warning","","[CLASS:Button; INSTANCE:1]") Thank you for any help,Cabrunco Link to comment Share on other sites More sharing options...
232showtime Posted May 18, 2015 Share Posted May 18, 2015 (edited) what apps/programs are you trying to automate? kindly post your script. Edited May 18, 2015 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
cabrunco Posted May 18, 2015 Author Share Posted May 18, 2015 It is a program I wrote myself on AutoIt (the GUI). It only does simple things, like sending messages like "Are you ready?" or "Waiting", "Warning", and changes some fields to "Done", "Measuring", etc. Nothing special, I am really just trying to learn about autoit. Enough detail, or do you need more info? I tested again here after closing Mach3, and it is not working anymore even with it closed.As I said, it is not a very big deal, but it used to work before. I am using Windows 8. Maybe I did not do the advanced mode right... Link to comment Share on other sites More sharing options...
cabrunco Posted May 18, 2015 Author Share Posted May 18, 2015 I think I just understood what happened. It works, but it clicks and just selects the button. I need to click again, and then it works properly. In other words, I send the ControlClick twice. Good enough for me. Cheers! 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