sbm5788
Joined: 10 Feb 2007 Posts: 3
Digg It |
Posted: 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 |
|