AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

auto refresh current internet explorer pages

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
sungpeng



Joined: 16 Feb 2008
Posts: 20

PostPosted: Sat May 17, 2008 6:10 am    Post subject: auto refresh current internet explorer pages Reply with quote

hi

Can check with all of you how to auto refresh current internet explorer pages every 10 seconds

Thank
Back to top
View user's profile Send private message MSN Messenger
keybored



Joined: 18 Jun 2006
Posts: 89
Location: Phoenix, AZ

PostPosted: Sat May 17, 2008 7:02 am    Post subject: post code Reply with quote

sungpeng,
F5 is the key in Internet Explorer for refresh. So this code just sends F5.

Code:
Loop,
{
Sleep, 10000
Send, F5
}
return


It is suggested in "PLEASE READ IF YOU'RE NEW: How to Get Answers Effectively" the sticky at the top of the help forum to post code that you have tried.
Back to top
View user's profile Send private message
sungpeng



Joined: 16 Feb 2008
Posts: 20

PostPosted: Sat May 17, 2008 7:14 am    Post subject: Reply with quote

ok can teach me how to activate the code whenever I need it.
Is it like this??
!n::Loop etc
Back to top
View user's profile Send private message MSN Messenger
keybored



Joined: 18 Jun 2006
Posts: 89
Location: Phoenix, AZ

PostPosted: Sat May 17, 2008 7:31 am    Post subject: Reply with quote

Yes, but put loop under the hotkey.

Code:
!n::
Loop,
{
Sleep, 10000
Send, F5
}
return
Back to top
View user's profile Send private message
sungpeng



Joined: 16 Feb 2008
Posts: 20

PostPosted: Sat May 17, 2008 7:56 am    Post subject: Reply with quote

011: Sleep,10000 (10.00)
012: Send,F5 (0.03)
013: }
010: {
011: Sleep,10000 (10.00)
012: Send,F5 (0.03)
013: }
010: {
011: Sleep,10000 (10.00)
012: Send,F5 (0.03)
013: }
010: {
011: Sleep,10000 (10.00)
012: Send,F5 (0.03)

hi I try the code, it did not refresh my pages. Although I saw the execution line above. I think it does not press the F5 button instead it type out the word F5.
Back to top
View user's profile Send private message MSN Messenger
YoYoWazzup
Guest





PostPosted: Sat May 17, 2008 10:48 am    Post subject: Reply with quote

F1::Suspend
Loop
{
send {F5}
sleep 10000
}
return

F1 to suspend, again to activate
Back to top
keybored



Joined: 18 Jun 2006
Posts: 89
Location: Phoenix, AZ

PostPosted: Sat May 17, 2008 12:17 pm    Post subject: single line commands etc Reply with quote

If you place your command to the right of the hotkey it acts as a single line of code with a return after it. Used for single lines of code.
So the code last posted only executes "F1::Suspend".

In the FAQ http://www.autohotkey.com/docs/FAQ.htm. Search for loop, there is an example of starting and stopping with a single hotkey.
Back to top
View user's profile Send private message
yoyowazzup
Guest





PostPosted: Sat May 17, 2008 1:28 pm    Post subject: Re: single line commands etc Reply with quote

keybored wrote:
If you place your command to the right of the hotkey it acts as a single line of code with a return after it. Used for single lines of code.
So the code last posted only executes "F1::Suspend".

In the FAQ http://www.autohotkey.com/docs/FAQ.htm. Search for loop, there is an example of starting and stopping with a single hotkey.

hm? dont get it
anyway if that doesnt work in a case maybe this will

Code:
F1::
Loop
{
send {F5}
sleep 10000
}
return

F2::Pause


press F1 to start after running ahk just so it doesnt start as soon as ahk is run. and f2 to pause script
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group