From WiiLi
////////////////////////////////////////////////////////////////////////////////
//computer control v2.0 //////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/* this computer script has seen Especially designed to emulate your computer's
best Functions (below) */
// p.s dont give it to many comands its still a bit buggy oh and it cant close it's self
// up is up and so on
//a = leftclick
//b = rightclick
//home = enter
// two and a arrow button together scroll in that diretion
// plus is space
// minus is backspace
// and them both tother is close the program that you are on
// a and b at the same time will open mycomputer
Left = wiimote.Left
Right = wiimote.Right
Mouse.RightButton = Wiimote.b
Mouse.LeftButton = Wiimote.a
key.MyComputer = wiimote.A + wiimote.B
key.Enter = wiimote.home
mouse.MiddleButton = wiimote.two
key.BackSpace = wiimote.Minus
key.Space = wiimote.Plus
key.Alt + key.F4 = wiimote.Plus + wiimote.Minus
if wiimote.Up
Up = true
Wait 50 ms
Up = false
endif
if wiimote.Down
Down = true
Wait 50 ms
Down = false
endif
if wiimote.two = true
mouse.WheelUp = wiimote.Up
mouse.WheelDown = wiimote.Down
mouse.WheelLeft = wiimote.Left
mouse.WheelRight = wiimote.Right
endif
if wiimote.Left = true
debug = "left"
endif
if wiimote.Right = true
debug = "right"
endif
if wiimote.Up = true
debug = "up"
endif
if wiimote.Down = true
debug = "down"
endif
if wiimote.A = true
debug = "a"
endif
if wiimote.b = true
debug = "b"
endif
if wiimote.Home = true
debug = "home"
endif
if wiimote.Plus = true
debug = "plus"
endif
if wiimote.Minus = true
debug = "minus"
endif
if wiimote.One = true
debug = "one"
endif
if wiimote.Two = true
debug = "Two"
endif