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 

Automatic Keypress

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





PostPosted: Mon May 05, 2008 6:05 pm    Post subject: Automatic Keypress Reply with quote

Hi
I want to create a script a very basic one that will press the w key every 5 seconds ? There are alot of scrips but i dont now if they really press the key for you, so is it possible?
Thanks in advance
Tiever
Back to top
Razlin



Joined: 05 Nov 2007
Posts: 370
Location: canada

PostPosted: Mon May 05, 2008 6:42 pm    Post subject: Reply with quote

look up the help file for

send
and
settimer

try it a bit and post your progress "code". Someone will help you after.

its very easy to do.

spend 10 minutes in the help
_________________
-=Raz=-
Back to top
View user's profile Send private message
Tiever
Guest





PostPosted: Mon May 05, 2008 8:42 pm    Post subject: Reply with quote

SetTimer, Refresh, 5000
Refresh:
Send {w}
Return

Something like this?
Back to top
h4xx0r n00bl37



Joined: 14 Mar 2008
Posts: 56

PostPosted: Tue May 06, 2008 2:50 am    Post subject: Reply with quote

This should work I think:
Code:

loop,
{
Send, w
Sleep, 5000
}
Esc::ExitApp ;push esc to quit
Back to top
View user's profile Send private message
Tiever
Guest





PostPosted: Tue May 06, 2008 9:02 am    Post subject: Reply with quote

thanks man, it works real good!
Back to top
Razlin



Joined: 05 Nov 2007
Posts: 370
Location: canada

PostPosted: Fri May 09, 2008 1:43 pm    Post subject: Reply with quote

sorry was away for a while.

@Tiever
I dont know if you will ever log back in here but your script should of worked


all you needed was

Code:
SetTimer, Refresh, 5000
Refresh:
;Send {w}    <<< should have been
Send, w
Return

_________________
-=Raz=-
Back to top
View user's profile Send private message
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