Jump to content

IE asking script/active x permission help


Recommended Posts

I made a small replication script here with a pop-up a message box, however in my "real" htm file I get the pop-up along the top of IE asking for Active x / script permission.

Funny, If I don't use the "copy" function, there is no problem with pop-ups

#include <IE.au3>

$wait = 1000

$oIE =  _IE_Example ("form")

Sleep($wait)

_IEAction($oIE, "selectall")

Sleep($wait)

;_IEAction($oIE, "copy") ; When this is un-commented IE asks for permission ??????

Sleep($wait * 10)

$oIE = ""
Exit

... any ideas around this???

thx

8)

NEWHeader1.png

Link to comment
Share on other sites

I made a small replication script here with a pop-up a message box, however in my "real" htm file I get the pop-up along the top of IE asking for Active x / script permission.

[even more ...]

Funny, if you replace IEAction($oIE, "copy") with Send("^c") it seems to do exactely the same, but without asking for permission.

About the ActiveX/Script permission on the top of IE: you could try to adjust "Internet Options" --> Advanced --> Security. If you check "Allow active content to run in files on My Computer", it might work for you. I checked that option as well, because of my self-made homepage (running on my local PC), which has some ActiveX/Scripting content.

Edited by maroesjk
Link to comment
Share on other sites

Good advice on disabling this security "feature" here:

http://www.mydigitallife.info/2006/09/25/d...message-in-ie7/

You can also try:

$hIE = _IEPropertyGet($oIE, "hwnd")

ControlSend($hIE, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "^c")

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...