Login | |
|
 |
RE: Vbscript to refresh current page - 1/22/2008 11:19:04 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
You could use send keys to send F5 to the screen to refresh the page. You would just want to use AppActivate before sendkeys to make sure the page is active.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Vbscript to refresh current page - 1/23/2008 1:44:04 AM
|
|
 |
|
| |
ebgreen
Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
|
This is the code that you posted: set oWSH = wscript.CreateObject("Wscript.Shell") set Hme = "Home - Microsoft Internet Explorer" 'set Hme = "myProcessItem - Microsoft Internet Explorer" oWSH.appActivate(Hme) wscript.sleep 500 wscript.SendKeys "{F5}" Notice that this line is commented out: 'set Hme = "myProcessItem - Microsoft Internet Explorer" The error you are getting is exactly the error that you would get if that line was not commented out. Are you sure that you are running what you posted?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|