| View previous topic :: View next topic |
| Author |
Message |
Tiever Guest
|
Posted: Mon May 05, 2008 6:05 pm Post subject: Automatic Keypress |
|
|
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
|
Posted: Mon May 05, 2008 6:42 pm Post subject: |
|
|
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 |
|
 |
Tiever Guest
|
Posted: Mon May 05, 2008 8:42 pm Post subject: |
|
|
SetTimer, Refresh, 5000
Refresh:
Send {w}
Return
Something like this? |
|
| Back to top |
|
 |
h4xx0r n00bl37
Joined: 14 Mar 2008 Posts: 56
|
Posted: Tue May 06, 2008 2:50 am Post subject: |
|
|
This should work I think:
| Code: |
loop,
{
Send, w
Sleep, 5000
}
Esc::ExitApp ;push esc to quit
|
|
|
| Back to top |
|
 |
Tiever Guest
|
Posted: Tue May 06, 2008 9:02 am Post subject: |
|
|
| thanks man, it works real good! |
|
| Back to top |
|
 |
Razlin
Joined: 05 Nov 2007 Posts: 370 Location: canada
|
Posted: Fri May 09, 2008 1:43 pm Post subject: |
|
|
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 |
|
 |
|