Jump to content


automatic keypress


  • Please log in to reply
6 replies to this topic

#1 fearlesss

fearlesss
  • Guests

Posted 15 December 2007 - 04:10 AM

Hi, Ive dont a quick search but no luck so far.

i want to create a script a very basic one that will press the F5 key every 10 seconds ? Can AHK do this ? I found alot of scripts but nothign that actualy press's the key for you . even if I have to press a key ones then it press's F5 every10 seconds from then that would be fine :)

regards
josh

#2 canta

canta
  • Members
  • 49 posts

Posted 15 December 2007 - 04:40 AM

Something like this ?
SetTimer, Refresh, 10000
Refresh:
Send {F5}
Return


#3 fearlesss

fearlesss
  • Guests

Posted 15 December 2007 - 05:30 AM

Ta,

i sused it out a bit more and came up with
this

Loop 3000
{
Send {F5}
Sleep 14000
}

Works perfect :) thanx

#4 busch09

busch09
  • Guests

Posted 20 May 2009 - 05:22 PM

Hi,

ok i got the script working fine. but how do i turn it off again ?

pressing the hotkey again doenst do it...

cheers

#5 Guests

  • Guests

Posted 20 May 2009 - 06:12 PM

Search in "Help file" for ExitApp

#6 sinkfaze

sinkfaze
  • Moderators
  • 6089 posts

Posted 20 May 2009 - 08:12 PM

If you don't want to ExitApp here's another way:

!x:: ; starts the loop
Stop = 1
Loop 3000 {
  if !Stop
    break
  else
  { 
    Send {F5} 
    Sleep 14000 
  }
}

Esc::
Stop = 0
return


#7 noortg

noortg
  • Guests

Posted 14 August 2011 - 10:15 AM

i want something make (2) press evry 5 secand bbut i dont know how to make scribt so know anyone hellp me plz