Sign in to follow this  
Followers 0
WayneCusack

pop up window in IE

3 posts in this topic

I am accessing a web site and copying some data that I want to paste to an Excel spreadsheet. When I copy the data using "_IEAction ($oIE, "copy")" I generate a pop-up window that asks if I want to permit the website to access my clipboard. I have not yet been able to find a way to automate the response, which ought to be "Yes" - entering a manual response doesn't work because I am trying to automate the data collection. Although it appears to be active, I have been unable to switch to that Window or do anything with it, including either selecting or clicking on the "Yes" button (it's "Button2" on that pop-up form). The AutoIt Windoiw Info identifies the pop up window as "Internet Explorer", and the class is "#32770". Text on the form includes "Do you want to allow this webpage to access your Clipboard". None of those parameters have assisted me in working with the window.

I would greatly appreciate it if anyone could tell me what I am doing wrong in this.

Wayne Cusack

Share this post


Link to post
Share on other sites



This is caused by new(er) sercurity measures put in IE and I don't think you'll be able to code around it using a single script as control is not returned to AutoIt when an alert like this is generated.

Suggest you look at _IEBodyReadText (and perhaps _IETableWriteToArray) instead.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Thanks Dale - I think I can make one or both of those suggestions work. I appreciate your assistance.

Wayne Cusack

This is caused by new(er) sercurity measures put in IE and I don't think you'll be able to code around it using a single script as control is not returned to AutoIt when an alert like this is generated.

Suggest you look at _IEBodyReadText (and perhaps _IETableWriteToArray) instead.

Dale

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0