I did a quick itunes control script in glovepie for the wiimote, it's entirely based on the glovepie scripts by vkapadia so all praise goes to him!
Feel free to use/improve it!
What more can we use the wiimote for? post your scripts here please.
//WiiTunes - itunes control script for the wiimote.
//by Tommy Serrien
//[email protected] Antwerp/Belgium
//I made this script to control my itunes from allover my flat,
//this was my first script ever and it was based on the wiimouse
//accel script by vkapadia (hope you don't mind
)
//The knight rider lights were also scripted by vkapadia.
//The only thing i did was map the itunes shortcuts to the wiimote
//keypresses, it's a dirty job but someone had to do it!
.
//Feel free to improve it, i wanted the home button to load itunes but
//that seems impossible with glovepie?
//Controls:
//D-Pad left= Rewind
//D-Pad right= Fast forward
//D-Pad up= Next
//D-Pad down= Previous
//B-Button = Play/Pause
//Home = No function yet
//A-Button = Mute
//Plus and Minus = Volume Up/Down
//One = No function
//Two = No function
//D-pad
if wiimote.Up
ctrl+right = true
Wait 200 ms
ctrl+right = false
endif
if wiimote.Down
ctrl+left = true
Wait 200 ms
ctrl+left = false
endif
if wiimote.Left
ctrl+alt+left = true
Wait 1.5 s
ctrl+alt+left = false
endif
if wiimote.Right
ctrl+alt+right = true
wait 1.5 s
ctrl+alt+right = false
endif
//A+B button
ctrl+alt+down = Wiimote.A
space = Wiimote.B
//The wiimote rumbles when you press play/pause
if wiimote.B then
wiimote.Rumble=1
wait 100 ms
wiimote.rumble=0
endif
//+ and -
if wiimote.plus then
ctrl+up = true
wait 50 ms
ctrl+up = false
endif
if wiimote.minus then
ctrl+down = true
wait 50 ms
ctrl+down = false
endif
//LED script stolen from vkapadia because it's so cool
if 0 = 0 then
if var.kitt = 0 then
wiimote.Leds = 1
endif
if var.kitt = 1 then
wiimote.Leds = 3
endif
if var.kitt = 2 then
wiimote.Leds = 6
endif
if var.kitt = 3 then
wiimote.Leds = 12
endif
if var.kitt = 4 then
wiimote.Leds = 8
//wait 200 ms
endif
if var.kitt = 5 then
wiimote.Leds = 12
endif
if var.kitt = 6 then
wiimote.Leds = 6
endif
if var.kitt = 7 then
wiimote.Leds = 3
endif
wait 100 ms
var.kitt = (var.kitt + 1) % 8
endif
Feel free to use/improve it!
What more can we use the wiimote for? post your scripts here please.
//WiiTunes - itunes control script for the wiimote.
//by Tommy Serrien
//[email protected] Antwerp/Belgium
//I made this script to control my itunes from allover my flat,
//this was my first script ever and it was based on the wiimouse
//accel script by vkapadia (hope you don't mind
//The knight rider lights were also scripted by vkapadia.
//The only thing i did was map the itunes shortcuts to the wiimote
//keypresses, it's a dirty job but someone had to do it!
//Feel free to improve it, i wanted the home button to load itunes but
//that seems impossible with glovepie?
//Controls:
//D-Pad left= Rewind
//D-Pad right= Fast forward
//D-Pad up= Next
//D-Pad down= Previous
//B-Button = Play/Pause
//Home = No function yet
//A-Button = Mute
//Plus and Minus = Volume Up/Down
//One = No function
//Two = No function
//D-pad
if wiimote.Up
ctrl+right = true
Wait 200 ms
ctrl+right = false
endif
if wiimote.Down
ctrl+left = true
Wait 200 ms
ctrl+left = false
endif
if wiimote.Left
ctrl+alt+left = true
Wait 1.5 s
ctrl+alt+left = false
endif
if wiimote.Right
ctrl+alt+right = true
wait 1.5 s
ctrl+alt+right = false
endif
//A+B button
ctrl+alt+down = Wiimote.A
space = Wiimote.B
//The wiimote rumbles when you press play/pause
if wiimote.B then
wiimote.Rumble=1
wait 100 ms
wiimote.rumble=0
endif
//+ and -
if wiimote.plus then
ctrl+up = true
wait 50 ms
ctrl+up = false
endif
if wiimote.minus then
ctrl+down = true
wait 50 ms
ctrl+down = false
endif
//LED script stolen from vkapadia because it's so cool
if 0 = 0 then
if var.kitt = 0 then
wiimote.Leds = 1
endif
if var.kitt = 1 then
wiimote.Leds = 3
endif
if var.kitt = 2 then
wiimote.Leds = 6
endif
if var.kitt = 3 then
wiimote.Leds = 12
endif
if var.kitt = 4 then
wiimote.Leds = 8
//wait 200 ms
endif
if var.kitt = 5 then
wiimote.Leds = 12
endif
if var.kitt = 6 then
wiimote.Leds = 6
endif
if var.kitt = 7 then
wiimote.Leds = 3
endif
wait 100 ms
var.kitt = (var.kitt + 1) % 8
endif