Current IE session refresh.

Started by morenos1, July 27, 2018, 01:09:37 PM

Previous topic - Next topic

morenos1

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

It seems to work now ....

Thanks....