WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help With A Simple Program

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
stubob



Joined: 27 Jan 2008
Posts: 4

Digg It
PostPosted: 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
View user's profile Send private message
trelantana



Joined: 27 Apr 2008
Posts: 3

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group