Valuater Posted August 7, 2008 Share Posted August 7, 2008 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) Link to comment Share on other sites More sharing options...
maroesjk Posted August 7, 2008 Share Posted August 7, 2008 (edited) 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 August 8, 2008 by maroesjk Link to comment Share on other sites More sharing options...
Valuater Posted August 7, 2008 Author Share Posted August 7, 2008 Thanks for the info, however this is for multiple computers and the IE object is hidden. ^c wont work correctly ... any other thoughts 8) Link to comment Share on other sites More sharing options...
DaleHohm Posted August 7, 2008 Share Posted August 7, 2008 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 More sharing options...
Valuater Posted August 7, 2008 Author Share Posted August 7, 2008 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 using the "class" script worked perfect! Thanks again Dale! 8) 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