Jump to content

Clicking OK in a dialog box


 Share

Recommended Posts

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!

RoomviewScreenshot.jpg

RoomviewInfoScreenshot.jpg

Link to comment
Share on other sites

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?

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