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 

alt + tab goes too fast

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



Joined: 07 May 2008
Posts: 12

Digg It
PostPosted: Sun Jun 08, 2008 12:07 pm    Post subject: alt + tab goes too fast

I would like to get alt + tab pressed when i press button 2 on wii so I have written such thing:

(key.alt and key.tab) = wiimote1.two

but it jumps on aplications too fast while I keep pressed button 2.

Anyone know how to fix this?
Back to top
View user's profile Send private message
ViciousXUSMC



Joined: 29 May 2008
Posts: 13

Digg It
PostPosted: Mon Jun 09, 2008 5:32 am    Post subject:

You could do it like this. (I am new to this coding stuff so if you masters know a better way dont make me feel bad)

Code:
if wiimote1.two = true then
key.alt + key.tab = true
wait 500ms
key.alt + key.tab = false
endif



That should work, and just play with the wait time to suit your taste, 500ms is probably still too fast so just increase it.
Back to top
View user's profile Send private message
xaanaax



Joined: 07 May 2008
Posts: 12

Digg It
PostPosted: Mon Jun 09, 2008 3:42 pm    Post subject:

ViciousXUSMC thx a lot for help but it's not a solution:(
When I press button 2 a window to switch appers, stops and then the square jumps as fast as usual and stops...
Back to top
View user's profile Send private message
ViciousXUSMC



Joined: 29 May 2008
Posts: 13

Digg It
PostPosted: Tue Jun 10, 2008 7:17 am    Post subject:

Ok I just guessed, this time I tried something different and it works just like how you want it I think and I tested it.

While you hold down the 2 button the tab menu will stay up and about every 1 second it will move to the next window, just release 2 to go to that window.

Code:
if wiimote1.two = true then
key.alt = true
endif

if wiimote1.two = false then
key.alt = false
endif

if wiimote1.two = true then
wait 1second
key.tab = true
wait 50ms
key.tab = false
endif
Back to top
View user's profile Send private message
xaanaax



Joined: 07 May 2008
Posts: 12

Digg It
PostPosted: Tue Jun 10, 2008 2:19 pm    Post subject:

Thanks a lot, now it works great:)
Back to top
View user's profile Send private message
Vattu



Joined: 11 Jan 2007
Posts: 96

Digg It
PostPosted: Sat Jun 14, 2008 10:52 am    Post subject:

this should work, and is a cleaner code.

Code:
if pressed(wiimote.two)
  key.alt = true
  key.tab = true
  key.tab = false
  key.alt = false
endif
Back to top
View user's profile Send private message
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