PDA

View Full Version : Basic OSDmenu question



kral
April 11th, 2004, 11:02 PM
Hello,

I have tried to use OSDmenu, but with no success. I am trying to get it to activate commands on the X10 plugin. I have this plugin activated by either an IR Tira command or a keyboard command. To get it to work I have tried to create a menu with a girder command, a tira comman and a keyboard command and noe are working. Bleow is the menu -- please help (the items are lower down I just wanted to include the whole menu to see if there were any syntax errors.


[misc]
menupositionvar=theposvar
menustringvar=thestringvar
menucmdstringvar=thecmdstringvar

[visual]
backcolor=$000000
oncolor=$00FF00
offcolor=$008000
fontsize=20
fontname=arial
fontbold=1
fontitalic=0
textalign=top
wnd_pos=screencenter
wnd_size=fit2text
timeout=5
startpos=1
onbackcolor=$0000FF
bordercolor=$00FF00
closeonexecute=1
title=SaMpLeMeNu
titlefontname=arial
titlefontsize=20
titlefontcolor=$0000FF
spacercolor=$FFFFFF

[main]

girder=#[18]#[3on] (NOte : 3on is the command name)
Tira=#[86]#[FFFC53000000]
KeyBoard=#[202]#[51S00000]
#CMD:linemid=
Submenu Coolmenu=%coolmenu
Submenu=%greatmenu

[vis_greatmenu]
menustartposvar=thestartvar
oncolor=$00FFFF
fontsize=30
fontbold=0
textalign=left
wnd_pos=topleft

[greatmenu]
Back=%main
Another Submenu=%coolmenu

[vis_coolmenu]
backcolor=$000000
[coolmenu]
Back=%greatmenu
Main Menu=%main
Isn't this wonderful=cmdlinemsgbox.exe Yes it is!

Thanks,

Kral

birty
April 12th, 2004, 04:51 AM
the ini file works fine, to activate it make sure the osd menu plugin is enabled, create a new command goto the plugins tab select osdmenu then setttings, use browse to select the ini file then press ok, click on learn event and press the control you want to start the menu, the easiest way to activate a command in girder from the menu is to put the command as (for example) #dosomething and then make a command in girder and select learn event and select girder event from the list enter dosomething in the top box and press select

kral
April 13th, 2004, 08:13 AM
Hi,

Thanks for your reply. I have done all of that and it still does not work. The menu comes up, and I can click any of the 3 options and nothing happens. Any ideas.

Thanks,
Kral

Rakonhere
April 18th, 2004, 07:05 PM
First off the OSD menu can do some simple things some of which is execute a program, or send an event to girder. what you are trying to do it would appear is send an event to girder. then have girder perform an action. currently you are simply sending events to girder.


The way you have it written girder would receive an event from your 86/tira with eventstring of FFFC53000000
or 18/girderevent with event string 3on
or 202/keyboard with event string 51S00000
it would be exactly as if your tira plugin sent eventstring FFFC53000000

here is some sample code from my own menus
the paths will need to be customized for your system.

[main]
Goldwave=C:\Program Files\GoldWave\GoldWave.exe
Winamp=C:\Program Files\Winamp\winamp.exe
#CMD:linemid=
Time Clock=%Watch

As you can see the first menu item would execute a program called goldwave. the second would execute winamp


[vis_Watch]
oncolor=$00FFFF
fontsize=90
fontbold=0
textalign=left
wnd_pos=topleft
wnd_size=fit2text

[Watch]
Back=%main
Clock is [Clock]=#18#Help
Rana Shrader=#18#Clokz#Back
Rana time of day=#18#Clokz#Change

these few menu choices would send events to girder.
i have a variable named [Clock] and it is designated as On/Off
i select that menu choice and it sends a girderevent/18 with the eventstring of Help.
mostly this section is for a talking clock every 15 min.,


you would have to learn a girder event to the girder command that would launch the actions you want girder to control.
A.K.A. create a command in girder to do what you want then learn an event to that command. once you have that then goto the menu.ini and tell the menu to send that command to girder.

one last thing the [] around anything in the ini file denotes a variable and would be replaced with the appropriate value when displayed.