Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

IE Access Denied

$
0
0

I know there have been numerous posts about this issue and that to solve the problem I should try an open the frame being referenced in a new IE window but this is not possible and would break the script (I need access to all frames at the same time).

 

However I was wondering why my code works flawlessly on windows 7, but on windows 8 and windows 10 preview it gives the access denied.

 

To give a little insight as to what I am doing, I am scripting outlook webmail so that I can click a button to forward a mail and append a subject to the subject line.  This script is working 100% on windows 7 and like I said giving an access denied when I try to read info from a frame on windows 8 and 10.  see some example code below for where the access denied is being thrown. 

  1. $oIE = _IEAttach("Outlook Web Access")
  2.  
  3.     MsgBox(0, "NO MAIL WINDOW", "Unable to find mail window.  Please log in to webmail")
  4.     Return 0
  5.  
  6. Local $oFrames = _IEFrameGetCollection($oIE)
  7. Local $iNumFrames = @extended
  8.  
  9. For $i = 0 To ($iNumFrames - 1)
  10.     $oFrame = _IEFrameGetCollection($oIE, $i)
  11.     $sTxt = _IEPropertyGet($oFrame, "innertext") & @CRLF
  12.  
  13.     If StringTrimRight($sTxt, StringLen($sTxt) - 5) = "Inbox" Then
  14.         ExitLoop ;if we found the inbox, stop looking for it
  15.     EndIf

What settings can I change to fix the issue.  I turned off XSS and I have tried numerous other settings changes to no avail.  A few months ago this script was working fine in windows 8.  Im wondering if there was an update than changed access to IE.   Any help would be appreciated


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>