| View previous topic :: View next topic |
| Author |
Message |
stubob
Joined: 27 Jan 2008 Posts: 4
Digg It |
Posted: Sun Apr 27, 2008 3:26 am Post subject: Help With A Simple Program |
|
|
Ok so what I want it to do press a button (the "p" button) every 4 seconds this is what I have so far:
Code:
if var.p = 1 then
keyboard.p = true
else
keyboard.P = false
endif
wait .4s
var.p = 1
var.p = 0
Any comments/help would be gratefully accepted
Thanks in advance
-stubob |
|
| Back to top |
|
 |
trelantana
Joined: 27 Apr 2008 Posts: 3
Digg It |
Posted: Sun Apr 27, 2008 11:20 pm Post subject: Re: Help With A Simple Program |
|
|
... this would be much better:
| Code: | key.p = true;
key.p = false;
wait .4s |
If you're including other things in your script this would not be a wise idea, though. May I ask what you're using the script for, and what other things you will be including (if any)? _________________ Hilarious Movies with Fun Action Laughy Feelings:
YouCannotSueUs.com
Note: No Engrish in spider web site. |
|
| Back to top |
|
 |
|