WayneCusack Posted December 21, 2013 Share Posted December 21, 2013 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. Link to comment Share on other sites More sharing options...
PACaleala Posted December 23, 2013 Share Posted December 23, 2013 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 Zedna 1 Link to comment Share on other sites More sharing options...
WayneCusack Posted December 26, 2013 Author Share Posted December 26, 2013 Thank you Link to comment Share on other sites More sharing options...
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