Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh image

Status
Not open for further replies.

Ruriko

Programmer
Aug 17, 2012
7
How do I refresh the image if it fails to load?
 
Press F5.


Other than that we meed more information.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Refresh Active Desktop
Code:
' Create explorer command file to toggle desktop window
 Set oFSO = CreateObject("Scripting.FileSystemObject")
 sSCFFile= oFSO.BuildPath(oFSO.GetSpecialFolder(2), oFSO.GetTempName &".scf")
 With oFSO.CreateTextFile(sSCFFile, True)
 .WriteLine("[Shell]")
 .WriteLine("Command=2")
 .WriteLine("[Taskbar]")
 .WriteLine("Command=ToggleDesktop")
 .Close
 End With
 
 ' Toggle desktop and send F5 (refresh)
 With CreateObject("WScript.Shell")
 .Run """" & sSCFFile & """"
 WScript.Sleep 100
 .Sendkeys "{F5}"
 End With
 ' Delete explorer command file
 oFSO.DeleteFile sSCFFile
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top