forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Refresh Web Page

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Døc
Newbie


Joined: 12 Sep 2003
Posts: 9
Location: Charleston, SC, USA

PostPosted: Wed Aug 11, 2004 5:50 pm    Post subject: Refresh Web Page Reply with quote

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. Mad

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Aug 11, 2004 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Døc
Newbie


Joined: 12 Sep 2003
Posts: 9
Location: Charleston, SC, USA

PostPosted: Wed Aug 11, 2004 7:21 pm    Post subject: Thanks Reply with quote

This just might work... Very Happy
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Aug 12, 2004 7:59 am    Post subject: Reply with quote

Let us know if it does... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Aug 12, 2004 8:02 am    Post subject: Reply with quote

In addition to my first post: you can also add the code below to your code in case the webpage was scrolled down:

Code:
window send,%%Window,@ctrl(@key(PGUP))

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Aug 12, 2004 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Aug 12, 2004 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Aug 12, 2004 8:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Aug 13, 2004 1:53 pm    Post subject: Reply with quote

Oops Embarassed sorry...
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group