View Full Version : OSDMenu & Multiple Commands
Mark F
October 13th, 2002, 12:55 PM
Could you use a multi-group?
If you have no idea what I'm talking about, look at this (http://www.girder.nl/help/girderhelp/groupandmultigroups.php) page. If I've said something stupid, then I don't understand what you are trying to accomplish. (sorry)
Mark F
October 13th, 2002, 12:55 PM
OK, I'm probably way off base, again. :(
How about the NumBuilder plugin? It takes a series of keypresses and turns them into a string which is the number, if I remember right.
mattwire
October 13th, 2002, 12:55 PM
To get osdmenu to return the position in the menu just add this to the menu-ini-file:
[misc]
menupositionvar=yourgirdervarname
This assumes you are using girder 3.1+/OsdMenu1.4
When an item is executed on the menu OsdMenu fills this variable with the position of the item that was executed.
Necro
October 13th, 2002, 12:55 PM
Is this possible? I'm trying to setup a 'channel' OSD menu, but I'm having serious issues trying to define 100+ channels. Doing it this way would be alot easier (ie, have a menu item execute three commands that in order enter 0,0, then 1.)
Necro
October 13th, 2002, 12:55 PM
Ok...what I want to do is this:
Channel 001=girder.exe -enter0;girder.exe -enter0; girder.exe -enter1
Channel 101=girder.exe -enter1;girder.exe -enter0; girder.exe -enter1
I can't use a multigroup because that would require every channel still
be defined.
Necro
October 13th, 2002, 12:55 PM
Wha-huh?
Actually, Im trying to just send them to DScaler on my PC (with the idea that in the future the PC would become a dedicated media PC). I'm unaware of being able to send the item number from OSDMenu (and even more unaware of Girder's ability to break it down to characters and send them to a defined program). Sending the string would be fine if thats possible.
I'm just trying to avoid defining 100+ 'channel' commands. (I would do it but I'm having issues with the Girder crashing when I try to set their...command names? Dammit...event names I think is what I mean)
Necro
October 13th, 2002, 12:55 PM
Thanks matt. Now just to get the variable split up into parts :).
I think this will be a great help, honestly. I'll make a exported group for it as soon as I get it done. Could help alot of people trying to use girder as a HTPC control and using OSDMenu. Heck, this pretty much replaces the crappy on screen guide I get with my 'Digital' cable. :)
Necro
October 13th, 2002, 12:55 PM
I just realized another issue. This works fine, given that ALL channels are defined. Unfortunately, they arent...(ie, channel one doesnt exist, channel 15 needs a box, etc).
Also, I think (I know basic programming and the like) I can do a conversion of the number from OSDMenu to it's basic parts. But once I have these how do I execute commands based on them.
So, what I have now is that I select an item in the OSD menu. It passes
1,2,etc. back to girder. Girder then extrapolated and makes this into a 3 digit number to enter into dScaler. (3 integer variables). How can I get this to do events based on these numbers - basically, execute a command from inside a script (I couldnt find this on the scripting online help).
-=UPDATE=-
Well, I went in and basically took apart the Girder XML structure, slammed one command into Excel, and managed to replicate it (after a few tries) into 130 near similar commands that control dScaler fairly well. Given, in the time it took I could have done it all manually - but hell it worked.
I still want to know how to run a command based on a variable state though. That and how to make a group execute/command execute when a group is activated. :) Is there another source for documentation on this kind of stuff or is it pretty much guess?
SouthyPar
October 13th, 2002, 12:55 PM
OK, as I understand it, you are using a transceiver to send the channel numbers to an external box, right?
Hmmm, I think the best way to do this is to make OSDMenu return the number of the selected item (forgot the exact command, look it up), and then use Girder Variable Manipulation Script to break it up into three seperate digits, then simply send them. Should take too much scripting...
Let us know if you're having any trouble.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.