Jump to content

Recommended Posts

Posted

Hello.

I've been trying to write script so autoit can click on "OK" on this window

image.thumb.png.a5f3a47c8c767f4016ba5ea4b321a9b2.png

This is my script but it doesn't work:

 

#include <MsgBoxConstants.au3>
WinWaitActive("Chrome_WidgetWin_1", "", "5")
If WinExists("Chrome_WidgetWin_1", "") Then
   Sleep(1000)
   WinActivate("Chrome_WidgetWin_1", "")
   ControlClick("Chrome_WidgetWin_1","","[CLASS:Intermediate D3D Window; INSTANCE:1]","left","1",)
   Sleep(1000)
EndIf

I want to focus on that certificate popup and click on "OK" button.

 

Thank you.

Best regards.João.

  • 2 weeks later...
Posted
On 5/19/2023 at 4:43 PM, ioa747 said:

 

#include <MsgBoxConstants.au3>
Local $hWnd = WinWaitActive("[CLASS:Chrome_WidgetWin_1]", "", "5")
If WinExists($hWnd, "") Then
   Sleep(1000)
   WinActivate($hWnd, "")
   ControlClick($hWnd,"","Intermediate D3D Window1","left","1",)
   Sleep(1000)
EndIf

 

Hello.

Thank you for you message.  Unfortunately it doesn't work. I tried too with send tab and then send enter but some on different computer browsers doesn't work. What i want yes to capture and focus on that window and send or press key OK/ENTER.

Cheers.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...