Menu

Updating Menu

Help
2015-08-18
2015-08-19
  • Jeffrey Han

    Jeffrey Han - 2015-08-18

    Hi,

    I had a question with the menu/widget options that are available to lcdproc clients.

    Let's take the example of changing the ip address via the "ip" item. After the new address is entered, how does the client update it's field? For example:

    -> Psuedo code

    menu_add_item "" ipconfig ip "Change IP" -v6 false -value "192.168.1.1"    # Create ip menu item
    menu_set_main "" # Return to main menu
    

    Perl example:
    while(defined(my $input = <$lcd_data>)) # Parse client/server data
    {
    if ($input eq "menuevent enter ipconfig") # Check if user selects ip menu item
    {
    -> update field/variable here (basically the "value" field of the "ip" item)
    }
    }

    Thanks in advance!

    --Jeff

     
  • Jeffrey Han

    Jeffrey Han - 2015-08-19

    NVM...

    Disregard this.

    I suppose it does help to pay attention to what the server is sending back to the client...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.