JonnyAuto Posted May 19, 2023 Posted May 19, 2023 Hello. I've been trying to write script so autoit can click on "OK" on this window 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.
ioa747 Posted May 19, 2023 Posted May 19, 2023 #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 I know that I know nothing
JonnyAuto Posted May 30, 2023 Author Posted May 30, 2023 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.
Developers Jos Posted May 30, 2023 Developers Posted May 30, 2023 Website and ControlSend() is a no-go and we have many topics on how this can be done using other tools. 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.
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