PDA

View Full Version : 2 remote buttons(same code) to open/close one osd menu



Mark F
October 13th, 2002, 12:55 PM
Welcome to Girder.

You need to use the "states" concept. Check out the On Line Help (http://www.girder.nl/help/girderhelp/states.php).

In this case, you'd use a multi-command with two entries. One would be for "menu" and the other would be for "exit". Both would have the State Count set to 2. "Menu" would have the Begin State set to 1 and "exit" would have it set to 2.

I hope this helps.

mattwire
October 13th, 2002, 12:55 PM
If you are using a recent version of OSDMenu it should close if called again.
It's logic is designed like this:
Command triggers menu:
{Menu event handler}
if menu filename == previous menu filename then close menu
else close old menu and open new menu.

So, in other words, you shouldn't need states at all because you can just use a single command to open/close the menu.

toasterk
October 13th, 2002, 12:55 PM
I´m using newest versions of all mentioned software :-).
Girder with igor plug-in, win xp and multidec.
I´ve got a "menu" and "exit" button on my remote. They both send the same code. I want to open/close the osd-menu in multidec with those two buttons. I´ve tried all possibilities by now but it doesn´t seem to work. The command always gets send to open the menu again and again.....
How does that work???

toasterk
October 13th, 2002, 12:55 PM
Thanx :-)
Works great!
That took me a week now.....i should have posted earlier.