Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

automatic keypress


  • Please log in to reply
6 replies to this topic
fearlesss
  • Guests
  • Last active:
  • Joined: --
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

canta
  • Members
  • 49 posts
  • Last active: May 30 2013 03:08 PM
  • Joined: 30 May 2006
Something like this ?
SetTimer, Refresh, 10000
Refresh:
Send {F5}
Return


fearlesss
  • Guests
  • Last active:
  • Joined: --
Ta,

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

Loop 3000
{
Send {F5}
Sleep 14000
}

Works perfect :) thanx

busch09
  • Guests
  • Last active:
  • Joined: --
Hi,

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

pressing the hotkey again doenst do it...

cheers

  • Guests
  • Last active:
  • Joined: --
Search in "Help file" for ExitApp

sinkfaze
  • Moderators
  • 6365 posts
  • Last active:
  • Joined: 18 Mar 2008
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


noortg
  • Guests
  • Last active:
  • Joined: --
i want something make (2) press evry 5 secand bbut i dont know how to make scribt so know anyone hellp me plz