Jump to content


Photo

HOTKEY - problems / suggestions


  • Please log in to reply
579 replies to this topic

Re: HOTKEY - problems / suggestions #41 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 September 2014 - 17:21


hotkeyFunctions.append((_("Latest Commits"), "Module/Screens.About/showCommits"))

 

I'm scared the correct function is CommitInfo...

 

Can you try...

 

hotkeyFunctions.append((_("Latest Commits"), "Module/Screens.About/CommitInfo")) ???


Edited by littlesat, 24 September 2014 - 17:23.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: HOTKEY - problems / suggestions #42 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 24 September 2014 - 17:37

hotkeyFunctions.append((_("Latest Commits"), "Module/Screens.About/CommitInfo"))

works perfectly :) :) :)

 

Thanks B)


Selfsat H50M4
Ultimo4K /2xTwinS2, VTI, PLi, ATV...
NAS: Qnap221

Re: HOTKEY - problems / suggestions #43 ims

  • PLi® Core member
  • 13,623 posts

+212
Excellent

Posted 24 September 2014 - 18:27

@littlesat: I think, it was typo or no ?

-			"green": self.toggleAdditionalKeys

Edited by ims, 24 September 2014 - 18:27.

Kdo nic nedělá, nic nezkazí!

Re: HOTKEY - problems / suggestions #44 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 24 September 2014 - 19:15

With the commit: http://sourceforge.n...efc7e99e5b0eee/ (Hotkey: Add preview of functions in hotkey selection screen) the chosen keys are no longer visible with the skin Pli-HD-Fullnight skin.

I don't know if you are aware of it but I thought I tell you.

Other skins use the embedded screen so there is no problem



Re: HOTKEY - problems / suggestions #45 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 September 2014 - 20:03

Skin was also adjusted

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: HOTKEY - problems / suggestions #46 ims

  • PLi® Core member
  • 13,623 posts

+212
Excellent

Posted 24 September 2014 - 20:17

once again: is not possible toggle between Extra Keys, when was removed Green button


Kdo nic nedělá, nic nezkazí!

Re: HOTKEY - problems / suggestions #47 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 24 September 2014 - 20:21

Skin was also adjusted

Sorry, I missed that.

Now it works fine!



Re: HOTKEY - problems / suggestions #48 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 September 2014 - 21:02

Did I by accident remove the green action?

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: HOTKEY - problems / suggestions #49 ims

  • PLi® Core member
  • 13,623 posts

+212
Excellent

Posted 24 September 2014 - 21:03

yes: http://sourceforge.n...efc7e99e5b0eee/


Kdo nic nedělá, nic nezkazí!

Re: HOTKEY - problems / suggestions #50 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 September 2014 - 21:11

Oeps!

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: HOTKEY - problems / suggestions #51 ims

  • PLi® Core member
  • 13,623 posts

+212
Excellent

Posted 24 September 2014 - 21:12

would not be wrong add there some help text (when are defined actions for button) , some as:

 

" - toggle to list with bouq+/- and delete unwanted defined actions with OK button"

 

Not each is clairvoyant :)


Edited by ims, 24 September 2014 - 21:14.

Kdo nic nedělá, nic nezkazí!

Re: HOTKEY - problems / suggestions #52 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 24 September 2014 - 21:47

But where can I add it.... ;) I suggest it is somehow logical now... Bouquet +/- is in more places used to swap between lists.... we could suggest to "add" a color button to it... an mention at the blue position or somewhere else OK = ADD or OK = REMOVE....


Edited by littlesat, 24 September 2014 - 21:51.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: HOTKEY - problems / suggestions #53 fidelcastro54

  • Senior Member
  • 342 posts

+6
Neutral

Posted 25 September 2014 - 18:54

Hi. Nice option, but is it possible to get the german names for the options like mqb does? I tried to use thevfeature but i dont find all the used mqb options. This woild be nice. Thanks.


VU+ Duo2 *OpenPLI 7.0 *int. 1TB HDD *16TB QNAP-NAS Gb-LAN *OSCam*HD+ HD02 *Sky V14 *MTV Unlimited


Re: HOTKEY - problems / suggestions #54 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 25 September 2014 - 18:57

MQB has german text hard code... :(

 

Everything is translatable here... So the translaters should adjust...


Edited by littlesat, 25 September 2014 - 18:58.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: HOTKEY - problems / suggestions #55 Bag58

  • Senior Member
  • 437 posts

+23
Neutral

Posted 25 September 2014 - 19:23

Getting better all the time!

Two remarks: Rewind appears twice in the keylist, and Home is missing from the keylist.



Re: HOTKEY - problems / suggestions #56 Robinson

  • Senior Member
  • 2,616 posts

+30
Good

Posted 25 September 2014 - 19:32

I have run an online update today and now I know what you are all talking about. :)

I am using an ET9000 and HOTKEY seems to show some buttons my remote does not have such as  F1 , F2, F3, Portal, List, etc.  

On the other hand it does not show buttons ET9000 has such as Mark, Vkey.

Is this the way the plugin is designed?

 

Also, I am already using QuickButton to assign LONG GREEN to BitrateViewer and HOTKEY does not see that. Is this normal?


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: HOTKEY - problems / suggestions #57 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 September 2014 - 19:40

Hi,

 

I was trying to make some changes in Hotkey.py and i am notice the following when starting enigma2 (after deleting Hotkey.pyo):

 

/usr/lib/enigma2/python/Screens/Hotkey.py:349: SyntaxWarning: import * only allowed at module level
  def execHotkey(self, selected):

 

Ignore it?


Edited by athoik, 25 September 2014 - 19:40.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: HOTKEY - problems / suggestions #58 Dimitrij

  • PLi® Core member
  • 9,994 posts

+338
Excellent

Posted 25 September 2014 - 20:16

1)

    for plugin in plugins.getPluginsForMenu("scan"):
        hotkeyFunctions.append((plugin[0], "MenuPlugin/scan/" + plugin[2]))
    hotkeyFunctions.append((_("Network"), "Module/Screens.NetworkSetup/NetworkAdapterSelection"))
    hotkeyFunctions.append((_("Plugin Browser"), "Module/Screens.PluginBrowser/PluginBrowser"))
    hotkeyFunctions.append((_("Sleeptimer edit"), "Module/Screens.SleepTimerEdit/SleepTimerEdit"))
    hotkeyFunctions.append((_("Channel Info"), "Module/Screens.ServiceInfo/ServiceInfo"))
    hotkeyFunctions.append((_("Timer"), "Module/Screens.TimerEdit/TimerEditList"))
    hotkeyFunctions.append((_("SkinSelector"), "Module/Plugins.SystemPlugins.SkinSelector.plugin/SkinSelector"))
    hotkeyFunctions.append((_("Sleeptimer edit"), "Module/Screens.SleepTimerEdit/SleepTimerEdit"))
    hotkeyFunctions.append((_("Standby"), "Module/Screens.Standby/Standby"))

 

2)add action(historyBack/historyNext) for key Left/Right -->run video-->rewind for key Left/Right do not work


Edited by Dima73, 25 September 2014 - 20:35.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: HOTKEY - problems / suggestions #59 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 September 2014 - 21:11

Hi again,

 

A friend was getting the following error:

Traceback (most recent call last):
File "/usr/lib/enigma2/python/Screens/Hotkey.py", line 315, in action
File "/usr/lib/enigma2/python/Screens/Hotkey.py", line 331, in hotkeyGlobal
File "/usr/lib/enigma2/python/Screens/Hotkey.py", line 76, in getHotkeyFunctionsList
TypeError: 'NoneType' object has no attribute '__getitem__'
(PyObject_CallObject(<bound method hotkeyActionMap.action of <Screens.Hotkey.hotkeyActionMap instance at 0x282bd50>>,('HotkeyActions', 'cross_up')) failed)

The problem was that plugin.name was None (i haven't spot the plugin causing that error yet, but i will). Problem solved by checking that path is not None:

--- Hotkey.py.orig
+++ Hotkey.py
@@ -72,7 +72,7 @@
        pluginlist = plugins.getPlugins([PluginDescriptor.WHERE_PLUGINMENU ,PluginDescriptor.WHERE_EXTENSIONSMENU, PluginDescriptor.WHERE_EVENTINFO])
        pluginlist.sort(key=lambda p: p.name)
        for plugin in pluginlist:
-               if plugin.name not in twinPlugins:
+               if plugin.name not in twinPlugins and plugin.path:
                        hotkeyFunctions.append((plugin.name, plugin.path[24:]))
                        twinPlugins.append(plugin.name)
        hotkeyFunctions.append(("--", "--"))

Regarding the following SyntaxError...

 

Hi,

 

I was trying to make some changes in Hotkey.py and i am notice the following when starting enigma2 (after deleting Hotkey.pyo):

/usr/lib/enigma2/python/Screens/Hotkey.py:349: SyntaxWarning: import * only allowed at module level
  def execHotkey(self, selected):

Ignore it?

 

 

Here is another way to import * without the SyntaxWarning.

--- Hotkey.py.orig
+++ Hotkey.py
@@ -362,10 +362,14 @@
                                        exec "self." + selected[1] + "()"
                        elif selected[0] == "Module":
                                try:
-                                       exec "from " + selected[1] + " import *"
+                                       exec "import " + selected[1]
+                                       for p in dir(selected[1]):
+                                               exec "from " + selected[1] + " import " + p
                                        exec "self.session.open(" + ",".join(selected[2:]) + ")"
                                except:
                                        print "[Hotkey] error during executing module %s, screen %s" % (selected[1], selected[2])
                        elif selected[0] == "Setup":
-                               from Screens.Setup import *
+                               import Screens.Setup
+                               for p in dir(Screens.Setup):
+                                       exec "from Screens.Setup import " + p
                                exec "self.session.open(Setup, \"" + selected[1] + "\")"

Finally (the most stupid question), how do i use Hotkey, where do i find it?


Edited by athoik, 25 September 2014 - 21:12.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: HOTKEY - problems / suggestions #60 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 25 September 2014 - 22:11

Menu, configs, settings, 4th from below at my box...
From import * was in fact stolen from mqb....

Edited by littlesat, 25 September 2014 - 22:11.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users