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 

Scripting Help

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



Joined: 28 Jan 2007
Posts: 1

Digg It
PostPosted: Sun Jan 28, 2007 7:17 pm    Post subject: Scripting Help

I wrote this script to control VLC

Code:
// VLC Control Script (mainly for DVD watching)
//by Flammable D
Key.Space = Wiimote.B //Pause or Play
Key.Left = Wiimote.Minus //Previous Chapter
Key.Right = Wiimote.Plus //Next Chapter
Key.Ctrl+m = Wiimote.Home // DVD Menu

Key.Home = Wiimote.Up //Up
Key.End = Wiimote.Down //Down
Key.Delete = Wiimote.Left //Left
Key.PageDown = Wiimote.Right //Right
Key.Enter = Wiimote.A //Enter

Mouse.WheelUp = Wiimote.One //Skip Forward 10 secs.
Mouse.WheelDown = Wiimote.Two //Skip Backward 10 secs.

if Wiimote.A and Wiimote.One then
  Key.LeftControl + Mouse.WheelUp = true
endif

if Wiimote.A and Wiimote.Two then
  Key.LeftControl + Mouse.WheelDown = true
endif


But the last section (with holding A and 1 or 2) doesn't work, in that if I then try to use 1 or 2 for it's original function, it acts as I'm still holding A. Any ideas?
Back to top
View user's profile Send private message
petereality



Joined: 05 Jan 2007
Posts: 14

Digg It
PostPosted: Sun Jan 28, 2007 7:28 pm    Post subject:

Code:
Key.LeftControl && Mouse.WheelUp = Wiimote.A && Wiimote.One
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