viewpoint-particle

Author Topic: Current IE session refresh.  (Read 165 times)

morenos1

  • Jr. Member
  • **
  • Posts: 66
Current IE session refresh.
« on: July 27, 2018, 01:09:37 pm »
There are a couple of script samples to refresh IE.

Both do not do anything.

Here's one of them:

objShell = CreateObject("Shell.Application")
objInstances = objShell.windows
objIE = 0
If objInstances.Count > 0 ; make sure we have instances open.
    ForEach objIE In objInstances
       sName = StrLower(objIE.FullName)
       If StrIndex( sName, 'iexplore.exe', 1, @FWDSCAN ) != 0 ; internet explorer not windows explorer.
        ret = AskYesNo( "Found instance of InternetExplorer ":objIE.LocationURL, "Would you like to refresh?" )
        If ret
           objInstances = 0
           objShell = 0
           Break
        EndIf
      EndIf
    Next
EndIf
If objIE == 0
   Pause('Notice', 'Unable to locate any running instances of InternetExplorer')
   Exit
EndIf

OLECMDID_REFRESH = 22
null = ObjectType("NULL", "")
objIE.ExecWB(OLECMDID_REFRESH, 0, null, null )
Exit

Anybody know of a working way to get IE to refresh?


Thanks.....

morenos1

  • Jr. Member
  • **
  • Posts: 66
Re: Current IE session refresh.
« Reply #1 on: July 27, 2018, 01:21:51 pm »
It seems to work now ....

Thanks....