| View previous topic :: View next topic |
| Author |
Message |
sungpeng
Joined: 16 Feb 2008 Posts: 20
|
Posted: Sat May 17, 2008 6:10 am Post subject: auto refresh current internet explorer pages |
|
|
hi
Can check with all of you how to auto refresh current internet explorer pages every 10 seconds
Thank |
|
| Back to top |
|
 |
keybored
Joined: 18 Jun 2006 Posts: 89 Location: Phoenix, AZ
|
Posted: Sat May 17, 2008 7:02 am Post subject: post code |
|
|
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 |
|
 |
sungpeng
Joined: 16 Feb 2008 Posts: 20
|
Posted: Sat May 17, 2008 7:14 am Post subject: |
|
|
ok can teach me how to activate the code whenever I need it.
Is it like this??
!n::Loop etc |
|
| Back to top |
|
 |
keybored
Joined: 18 Jun 2006 Posts: 89 Location: Phoenix, AZ
|
Posted: Sat May 17, 2008 7:31 am Post subject: |
|
|
Yes, but put loop under the hotkey.
| Code: | !n::
Loop,
{
Sleep, 10000
Send, F5
}
return |
|
|
| Back to top |
|
 |
sungpeng
Joined: 16 Feb 2008 Posts: 20
|
Posted: Sat May 17, 2008 7:56 am Post subject: |
|
|
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 |
|
 |
YoYoWazzup Guest
|
Posted: Sat May 17, 2008 10:48 am Post subject: |
|
|
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
|
Posted: Sat May 17, 2008 12:17 pm Post subject: single line commands etc |
|
|
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 |
|
 |
yoyowazzup Guest
|
Posted: Sat May 17, 2008 1:28 pm Post subject: Re: single line commands etc |
|
|
| 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 |
|
 |
|