Page 1 of 1

HTTP menu

Posted: Mon Nov 05, 2012 10:28 am
by Pako
I finally finished the new (promised) HTTP menu plugin.
This plugin is similar to the plugin HTTP explorer.
Download here.

Pako

Re: HTTP menu

Posted: Sun Nov 11, 2012 6:15 am
by kalia
Thanks Pako. I briefly tried it out and it works great. Would it be possible to create the Menu Tree using Pyhon expression (like the OS Menu plugin). Don't bother if it is too much work. I can imagine creating the sub-menu list would complicate the matter. Again, don't worry about it if it is not worth your while. It still looks good.

Thank,

Kalia

Re: HTTP menu

Posted: Sun Nov 11, 2012 8:40 am
by Pako
Yes, it would of course be possible.
But I doubt that it would have practical significance.
I mean, it would be very difficult to create a proper Python expression.
For example, for the menu, which is shown above, that expression would look like this:

Code: Select all

[u'Menu root', [[u'System', [[u'Go back to menu root', ['HTTPM', u'System.Back', u'']], [u'System.1', ['HTTPM', u'System.1', u'']], [u'System.2', ['HTTPM', u'System.2', u'']]], ['HTTPM', u'System', u'']], [u'Multimedia', [[u'Multimedia.Exit', ['HTTPM', u'Multimedia.Exit', u'']], [u'MPC-HC', [[u'MPC-HC.Exit', ['HTTPM', u'MPC-HC.Exit', u'']], [u'Play', ['HTTPM', u'MPC-HC.Play', u'']], [u'Pause', ['HTTPM', u'MPC-HC.Pause', u'']], [u'Stop', ['HTTPM', u'MPC-HC.Stop', u'']], [u'Fullscreen', ['HTTPM', u'MPC-HC.Fullscreen', '']]], ['HTTPM', u'MPC-HC.Start', u'']], [u'MediaMonkey', [[u'Go back to Multimedia menu', ['HTTPM', 'suffix', '']], [u'New item', ['HTTPM', 'suffix', '']]], ['HTTPM', u'Start_MediaMonkey', u'']], [u'Radio?Sure!', [[u'Go back to Multimedia menu', ['HTTPM', 'suffix', '']], [u'New item', ['HTTPM', 'suffix', '']]], ['HTTPM', u'Start_RadioSure', u'']]], ['HTTPM', u'Multimedia', u'']]], None]
Pako

Re: HTTP menu

Posted: Tue Dec 04, 2012 11:14 pm
by arturmaj
Hi Paco. This is what I get. Can you help?
15:09:47 Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\HTTPMenu.
15:09:47 Traceback (most recent call last) (1568):
15:09:47 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 70, in __init__
15:09:47 __import__(moduleName, None, None, [''])
15:09:47 File "C:\Program Files (x86)\EventGhost\plugins\HTTPMenu\__init__.py", line 365
15:09:47 if not pth[0] and len(pth) > 1:
15:09:47 ^
15:09:47 SyntaxError: invalid syntax

Re: HTTP menu

Posted: Wed Dec 05, 2012 6:29 am
by Pako
I think that the problem was caused when downloading the file __ init__.py.
Please use the download link in the first post, just right click with your mouse and 'Save Target as ...'.

Pako

Re: HTTP menu

Posted: Wed Dec 05, 2012 2:23 pm
by arturmaj
Thanks Paco. It was it.