Jump to content

Recommended Posts

Posted

When at some page i access by  IE.au3 appears javascript alert all my code stops and i cant do nothing. Is there any way to stop executing javascript at this page or any way to force autoit to click "OK" when this alert appears?

 

_IENavigate($oIE, "www.example.com")
       _IELoadWait($oIE)
       ; site is loaded and alert appears
       Send("{ENTER}") ;i want to close alert, this command is not executed, whole script is freeze
       ; cant do nothing more here....

 

Posted
Posted

@Danyfirex I solve my problem thanks to this thread.

But I must did it little different way, create separate app with this code

WinWaitActive("Komunikat ze strony sieci Web", "")
         ControlClick ("Komunikat ze strony sieci Web", "OK", 1, "left", 1)

And run it at my main app by

Local $iPID = Run(@AppDataDir & "\confirm_delete.exe", "", @SW_HIDE) 
       _IENavigate($oIE, "www.example.com/delete.html")
      ProcessClose($iPID);kill

Thanks!

Posted

Cześć , Hi.
Check this:

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
×
×
  • Create New...