Jump to content

Recommended Posts

Posted

I am trying to automate a routine that visits a web site, collects some data and copies it temporarily to the clipboard before I work with it.  The process is generating a warning pop-up that disrupts the automation, and I have not been able to get rid of it.  I would appreciate suggestions for either blocking the pop-up or making it go away.  Here's the relevant portion of the code:

$text1=MouseClickDrag("left", 270, 170, 700, 190)
_IEAction($oIE,"copy")
$text1=_ClipBoard_GetData()
$var1=StringInStr($text1,"matching")
 
The popup occurs after the 2nd line.  It asks if I am willing to allow the process to access the clipboard.  I have identified the pop-up as a window titled "Internet Explorer" and the class is "#32770".  The default button declines to allow the procedure to access the clipboard.  I have tried various means to block or close the window or to click on the button that allows access to the clipboard, all without success.

 

Posted

Hello

IE is generating the pop-up (not your script).

Check in IE :

Tools - Internet Options - Security - Internet - Custom level - Scripting zone - Allow programmatic clipboard access.

Most likely now IE has the option "Prompt" activated.

Good luck

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