| View previous topic :: View next topic |
| Author |
Message |
Døc Newbie

Joined: 12 Sep 2003 Posts: 9 Location: Charleston, SC, USA
|
Posted: Wed Aug 11, 2004 5:50 pm Post subject: Refresh Web Page |
|
|
There is this web page I use a lot at work...
If I don't interact with the page for some length of time (30 minutes) it kills my login session and I get ugly error messages and I have to log in again.
This could be avoided if I could figure out a way to create a script (VDS or otherwise) that would periodically cause the "refesh" link on the web page to be clicked (I can't use the the browser's refresh--that kills my session too).
Anyone have any ideas? By the way, I don't think sending mouse coordinates would work since the page redraws itself when the window size changes so the link might not be in the same place at all times. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Aug 11, 2004 6:22 pm Post subject: |
|
|
You might try to do this by sending @tab() keystrokes. This might work, as long as there aren't any links added or removed from the page before the link you want to click:
| Code: | %%Window = <your window here>
# Active the IE window you want to refresh
window activate,%%Window
# Send an ALT+D keystroke to it, so that the addressbar gets the focus. If
# your version of IE uses another keycombination, use that one insteed...
window send,%%Window,@alt(d)
# Send TAB a number of times, until it is on the right link
window send,%%Window,@tab()
window send,%%Window,@tab()
window send,%%Window,@tab()
window send,%%Window,@tab()
# Send a SPACE to click the selected link
window send,%%Window,@chr(32) |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Døc Newbie

Joined: 12 Sep 2003 Posts: 9 Location: Charleston, SC, USA
|
Posted: Wed Aug 11, 2004 7:21 pm Post subject: Thanks |
|
|
This just might work...  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Aug 12, 2004 11:19 am Post subject: |
|
|
You could create your own browser based on the example that comes with VDS, and include a timer that does a BROWSER REFRESH every so many minutes. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Aug 12, 2004 2:34 pm Post subject: |
|
|
Doc,
Just do this with a timer or some kind of loop.
| Code: | | window send,@winexists("#IEFrame"),@key(F5) |
The code above is for IE 6 _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Aug 12, 2004 8:00 pm Post subject: |
|
|
Dragonsphere, if you re-read the original post, it mentions that refreshing
the browser window also kills the session - the 'refresh' link must be clicked. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Aug 13, 2004 1:53 pm Post subject: |
|
|
Oops sorry... _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|