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 

Pressing a key multiple times

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
sbm5788



Joined: 10 Feb 2007
Posts: 3

Digg It
PostPosted: Sat Feb 10, 2007 1:25 am    Post subject: Pressing a key multiple times

I need to use a code that presses a key (say keyboard) multiple times very quickly triggered off a wiimote button click/very quick press.

The keep down function won't work for me as it needs to be multiple clicks very fast. The only way i've gotten to simulate this so far is:
Code:

if wiimote.B=true, then
press key.N
   wait 1ms
   release key.N
   press key.N
   wait 1ms
   release key.N
   press key.N
   wait 1ms
   release key.N
   press key.N
   wait 1ms
   release key.N
   press key.N
   wait 1ms
   release key.N
endif


Upon searching, I found a post by Carl back in early december saying he would implement a repeat function sometime in the future. I see when coding that "repeat" bolds.. but I cant figure out how to use it and its not in the documentation so I've found. I could use the above code, but I need to do it 28 times exactly off one wiimote click and that gets a bit excessive in code. Suggestions? Thanks in advance
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie 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