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 

Can anyboady correct my Glovepie MediaCenter script?

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
Bernds



Joined: 08 Jun 2008
Posts: 1

Digg It
PostPosted: Sun Jun 08, 2008 2:31 pm    Post subject: Can anyboady correct my Glovepie MediaCenter script?

Hi,

ich habe da ein paar Fehler im Script. Wäre nice wenn die jemanden fixen würde.

in english please ... Embarassed
i dont know where the Bugs are, can anybody check my script?

Thanks a lot !
greetz from Germany!


Code:
// Wii HTPC


//------------------  -1- Windowsmode ------------------
if( wiimote.Leds = 6 ) then

var.ButtonFreezeTime = 250ms
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
Wiimote.Led1 = true

// Mouse movement
if wiimote.PointerVisible but not var.PointerBump then
  mouse.x = wiimote.PointerX
  mouse.y = wiimote.PointerY
end if

// Mouse Buttons
mouse.LeftButton = Wiimote.A and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.RightButton = Wiimote.B and KeepDown(Wiimote.PointerVisible,0.5s)

// Buttons - Combo
//Wiimote.Rumble = Wiimote.A && Wiimote.B
//keyboard.Alt+F4 = Wiimote.B and pressed(Wiimote.A)

// Buttons
mouse.LeftButton = Wiimote.A
mouse.RightButton = Wiimote.B

keyboard.Windows = Wiimote.Home
keyboard.VolumeDown = Wiimote.Minus
keyboard.VolumeUp = Wiimote.Plus
endif


/*
//------------------  -2- Mediamode ------------------
if( wiimote.Leds = 9 ) then


// Buttons - Combo
Wiimote.Rumble = Wiimote.A && Wiimote.B
keyboard.Alt+F4 = Wiimote.B and pressed(Wiimote.A)
keyboard.Windows+M = Wiimote.B and pressed(Wiimote.Down)  // alles minimieren


// Buttons
mouse.LeftButton = Wiimote.A
keyboard.Escape = Wiimote.B

keyboard.Mute = Wiimote.Home
keyboard.VolumeDown = Wiimote.Minus
keyboard.VolumeUp = Wiimote.Plus
endif







//------------------  In allen Modi ------------------


// Mode
if wiimote.One
wiimote.Leds = 6
endif

if wiimote.Two
wiimote.Leds = 9
endif






// Steuerkreuz
keyboard.Up = Wiimote.Up
keyboard.Down = Wiimote.Down
keyboard.Left = Wiimote.Left
keyboard.Right = Wiimote.Right


// Start Mediaportal
if !var.init
   var.BatchFilePath = "C:\m.bat"
   var.init = true
endif

   */
if Pressed(HeldDown(Wiimote.One && Wiimote.Two, 2s))
   Execute(var.BatchFilePath)
wiimote.Leds = 15
wait 150 ms
endif
          /*

// Batterie Tester
if Wiimote1.Minus & Wiimote1.Plus then
   Wiimote1.Report15 = 4 | int(Wiimote1.Rumble) // Thanks to Carl Kenner
   Wiimote1.Leds = 2 ^ ceil(Wiimote1.Battery / 48) - 1 // I assume the max battery value to be 192
endif





if doubleclicked(Wiimote.B)
Wiimote.volume = 3%
Say("Nine")
Wiimote.frequency = 1010 Hz
wait 10 ms
endif

                     */


Back to top
View user's profile Send private message
Wreyth



Joined: 03 Nov 2007
Posts: 77

Digg It
PostPosted: Mon Jun 23, 2008 8:14 am    Post subject:

ok why is half the script commented out? with /* everywhere?

Code:

// Wii HTPC


//------------------  -1- Windowsmode ------------------
if( wiimote.Leds = 6 ) then

var.ButtonFreezeTime = 250ms
var.PointerBump = KeepDown(Pressed(wiimote.A),var.ButtonFreezeTime) or KeepDown(Pressed(wiimote.B),var.ButtonFreezeTime)
Wiimote.Led1 = true

// Mouse movement
if wiimote.PointerVisible but not var.PointerBump then
  mouse.x = wiimote.PointerX
  mouse.y = wiimote.PointerY
end if

// Mouse Buttons
mouse.LeftButton = Wiimote.A and KeepDown(Wiimote.PointerVisible,0.5s)
mouse.RightButton = Wiimote.B and KeepDown(Wiimote.PointerVisible,0.5s)

// Buttons - Combo
//Wiimote.Rumble = Wiimote.A && Wiimote.B
//keyboard.Alt+F4 = Wiimote.B and pressed(Wiimote.A)

// Buttons
mouse.LeftButton = Wiimote.A
mouse.RightButton = Wiimote.B

keyboard.Windows = Wiimote.Home
keyboard.VolumeDown = Wiimote.Minus
keyboard.VolumeUp = Wiimote.Plus
endif



//------------------  -2- Mediamode ------------------
if( wiimote.Leds = 9 ) then


// Buttons - Combo
Wiimote.Rumble = Wiimote.A && Wiimote.B
keyboard.Alt+F4 = Wiimote.B and pressed(Wiimote.A)
keyboard.Windows+M = Wiimote.B and pressed(Wiimote.Down)  // alles minimieren


// Buttons
mouse.LeftButton = Wiimote.A
keyboard.Escape = Wiimote.B

keyboard.Mute = Wiimote.Home
keyboard.VolumeDown = Wiimote.Minus
keyboard.VolumeUp = Wiimote.Plus
endif







//------------------  In allen Modi ------------------


// Mode
if wiimote.One
wiimote.Leds = 6
endif

if wiimote.Two
wiimote.Leds = 9
endif






// Steuerkreuz
keyboard.Up = Wiimote.Up
keyboard.Down = Wiimote.Down
keyboard.Left = Wiimote.Left
keyboard.Right = Wiimote.Right


// Start Mediaportal
if !var.init
   var.BatchFilePath = "C:\m.bat"
   var.init = true
endif


if Pressed(HeldDown(Wiimote.One && Wiimote.Two, 2s))
   Execute(var.BatchFilePath)
wiimote.Leds = 15
wait 150 ms
endif


// Batterie Tester
if Wiimote1.Minus & Wiimote1.Plus then
   Wiimote1.Report15 = 4 | int(Wiimote1.Rumble) // Thanks to Carl Kenner
   Wiimote1.Leds = 2 ^ ceil(Wiimote1.Battery / 48) - 1 // I assume the max battery value to be 192
endif





if doubleclicked(Wiimote.B)
Wiimote.volume = 3%
Say("Nine")
Wiimote.frequency = 1010 Hz
wait 10 ms
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 -> GlovePie 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