kenmarold Posted February 24, 2018 Posted February 24, 2018 I know this is probably simple, but I've never used AutoIt before so I'm not having any success with the script I've written. I'm running a program after windows 10 starts up and the first thing it gives me is the dialog box attached. All I need to do is automate the clicking of the OK button. The script I've written isn't working so far : WinActivate("RoomView Express Login") If WinActivate("RoomView Express Login") Then ControlClick("RoomView Express Login", "", "[CLASS:Button; INSTANCE:3]") EndIf Could someone please show me how to correctly do this? I've also attached the AutoIt Window Info of the the button that I'm trying to click. Thank you in advance for your help!
Subz Posted February 24, 2018 Posted February 24, 2018 With the Window open, does the following work? WinActivate("RoomView Express Login") ControlClick("RoomView Express Login", "", "[CLASS:Button; INSTANCE:3]")
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 @Subz, actually it does seem to partially work though. It brings the Window into focus, but it doesn't click the OK button.
Subz Posted February 24, 2018 Posted February 24, 2018 Does it require any input first for example password? Can you try using "[CLASSNN:Button3]"
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 Like this? WinActivate("RoomView Express Login") ControlClick("RoomView Express Login", "", "[CLASSNN:Button3]")
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 Any other ideas on what might be going on? I'm in a real jam if I can't automate this dialog. Any other insight would be really appreciated.
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 @Subz. It doesn't require a password. If I actually just click the OK button it open the application.
Subz Posted February 24, 2018 Posted February 24, 2018 Just checking our systems if we had a copy but we have Crestron AirMedia which uses an xml file to configure. What I suggest is try Control Click on another button, also if you click Alt key do you see any keyboard shortcuts you can utilise to press OK?
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 @Subz I can send you a copy of Roomview Express to test if that helps. It's a free software.
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 Link to download here: https://www.dropbox.com/s/0hbw30dk6el79gm/roomview_express_6.3.3.7.exe?dl=0
Subz Posted February 24, 2018 Posted February 24, 2018 Add #RequireAdmin at the top of your script and it should work fine.
kenmarold Posted February 24, 2018 Author Posted February 24, 2018 That did it. Thank you SO MUCH for the help with this!
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