Jump to content

devans

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by devans

  1. Sorry for posting in an old thread, but it was this one which gave me the clues to resolve the issue I was having with my script. Thanks to all the detective work, especially from Vieri! The purpose of my script was simply to start a list of applications/urls on startup from an ini file. All was well, until I started using our internal intranet urls. This caused the Wend line 560 error in IE.au3. Since my users are not admins, I couldn't use the #RequireAdmin workaround (as posted in Dale's sig issue thread), and since I also wanted to be able to add tabs to the IE window with .Navigate2 I couldn't use SeatleDBA's suggestion of simply calling _IECreate without the wait flag. My solution may not be the most elegant, but gets the job done. If anyone has an improvement (for instance do until), gladly accepted. $oIE = _IECreate($appPath,0,1,0) Sleep(100) If ObjName($oIE) == "" Then Local $i = 1 While 1 $oIE = _IEAttach("", "instance", $i) If @error = $_IEStatus_NoMatch Then ExitLoop $i += 1 WEnd $oIE = _IEAttach("", "instance", $i-1) EndIf _IELoadWait($oIE) ...in this way the $oIE object is valid for the next loop to open a new tab, if called. Our environment is Windows 7, IE8. Daniel
×
×
  • Create New...