| View previous topic :: View next topic |
| Author |
Message |
xaanaax

Joined: 07 May 2008 Posts: 12
Digg It |
Posted: 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 |
|
 |
ViciousXUSMC
Joined: 29 May 2008 Posts: 13
Digg It |
Posted: 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 |
|
 |
xaanaax

Joined: 07 May 2008 Posts: 12
Digg It |
Posted: 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 |
|
 |
ViciousXUSMC
Joined: 29 May 2008 Posts: 13
Digg It |
Posted: 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 |
|
 |
xaanaax

Joined: 07 May 2008 Posts: 12
Digg It |
Posted: Tue Jun 10, 2008 2:19 pm Post subject: |
|
|
| Thanks a lot, now it works great:) |
|
| Back to top |
|
 |
Vattu
Joined: 11 Jan 2007 Posts: 96
Digg It |
Posted: 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 |
|
 |
|