Page 6 of 9

Re: OSM (On Screen Menu)

Posted: Tue Jun 28, 2011 6:01 am
by skat
Thanks Pako, this works great!

I used your OSM plugin and a timer to make my own multi-tap logic to enable t9-like typing of letters through my RC's numpad. I am happy with it now. The only slight problem is performance due to the frequent window focus switching. I have just now noticed that your Multitap plugin could do the same so I may give it a try later.

Sorry to digress but since you have been actively putting out new eg releases, could you also consider my two other requests for inclusion in the next release?
viewtopic.php?f=10&t=3317
viewtopic.php?f=9&t=3316

Re: OSM (On Screen Menu)

Posted: Tue Jun 28, 2011 8:37 am
by Pako
skat wrote:Sorry to digress but since you have been actively putting out new eg releases, could you also consider my two other requests for inclusion in the next release?
viewtopic.php?f=10&t=3317
viewtopic.php?f=9&t=3316
I incorporate your modifications into the next release (if I do not forget).

Pako

Re: OSM (On Screen Menu)

Posted: Sun Jul 03, 2011 9:31 am
by skat
Hi Pako,

Would it be possible for you to trigger an event if the user has moved the selection in the menu?

Thanks.

Re: OSM (On Screen Menu)

Posted: Sun Jul 03, 2011 1:28 pm
by Pako
skat wrote:Would it be possible for you to trigger an event if the user has moved the selection in the menu?
Well, certainly it could go do it.
But for what purpose is it useful?
Can you give an example of use?

Pako

Re: OSM (On Screen Menu)

Posted: Sun Jul 03, 2011 2:41 pm
by skat
I have a timer associated with the menu that I would like to restart every time the selection is moved. Since the user can also move the selection by using a standard up/down keyboard keys my script is unable to capture that.
Another use case is to display an additional OSD help for each menu item. Again if the user uses a different means of input to move the selection, there is no way to sync the OSD.

Re: OSM (On Screen Menu)

Posted: Sun Jul 03, 2011 5:21 pm
by Pako
OK, you can download new version from SVN repository and testing it.
Please tell me the outcome of tests!

Pako

Re: OSM (On Screen Menu)

Posted: Sun Jul 03, 2011 6:15 pm
by skat
Pako, You are a legend! It works really well.

If you are going to upload a new release, please don't forget to include my two update requests above.

Thank you.

Re: OSM (On Screen Menu)

Posted: Thu Jul 14, 2011 5:02 pm
by altainta
Hello again pako,

I would like to make a request for this plugin kindly consider please
Can you include Skin for this Plugin ? (like the skin for the OSD)
Also please put a option for changing and selecting a new skin...

Thank you pako you are great

Re: OSM (On Screen Menu)

Posted: Sun Jul 17, 2011 7:10 am
by skat
Hi Pako,

Any plans to compile and release a new eg version with the previous amendments anytime soon?


Anyway, this one is a special request (nice-to-have): Would it be possible that when the OSM menu appears, that the active window focus would still stay with the active application?

What is happening now is that OSM becomes the active window in the foreground acquiring the focus (Task.Activated.EventGhost event arrives). The problem is that if some applications have a special processing when losing window focus, eg. validating an input field, my OSM effectively triggers this and removes the cursor from the field so I am unable to insert some text back at that specific position anymore. I guess this may require SW_SHOWNOACTIVATE in the ShowWindow Win32 API (http://stackoverflow.com/questions/1560 ... focus-in-c) but it would be a great option to have if possible.

Re: OSM (On Screen Menu)

Posted: Sun Jul 17, 2011 1:50 pm
by skat
Just had a look at the source code and the following would work for me (just search for "Raise" in the __init__.py):

# self.Show(True)
# self.Raise()
eg.WinApi.Dynamic.ShowWindow(self.GetHandle(), 4)

It would be great if this could be controlled by a parameter "Do not focus".

Re: OSM (On Screen Menu)

Posted: Tue Jul 19, 2011 4:35 pm
by Pako
When I'll have some good opportunity, so I look at it.
But I can not promise anything in advance.

Pako

Re: OSM (On Screen Menu)

Posted: Sat Aug 27, 2011 11:32 am
by skat
Thanks Pako, it would be great to have that option.

Re: OSM (On Screen Menu)

Posted: Sun Sep 04, 2011 7:38 pm
by wakko
Hello.

I'm trying to use OSM plugin on an old, AMD3000+ computer with 256mgb DDR400 memory with Gigabyte k8ns with socket 754 mother board. Windows XP prof SP3. EventGhost_0.4.1.r1534
Before that, i wrote and tested config file for EventGhost on C2D 6300 CPU, and it's working just fine on C2D.
But on old AMD i catched a problem.
If i use OS Menu, and press OK button on remote (OS Menu Ok action), sometimes it gives an error. It happens absolutely unpredictable. Sometimes it working as expected. But more often it gives errors.
If it's not working, it's gives a following error:

Code: Select all

         Error in Action: "OS Menu: OK"
         Traceback (most recent call last) (1534):
           File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
             return self(*args)
           File "C:\Program Files\EventGhost\plugins\OSM\__init__.py", line 1017, in __call__
             self.plugin.menuDlg.SendEvent()
           File "C:\Program Files\EventGhost\plugins\OSM\__init__.py", line 1278, in SendEvent
             self.SendEventSel(row)
           File "C:\Program Files\EventGhost\plugins\OSM\__init__.py", line 1230, in SendEventSel
             evtString = self.prefix.split(".")
           File "wx\_core.pyc", line 14610, in __getattr__
         PyDeadObjectError: The C++ part of the Menu object has been deleted, attribute access no longer allowed.
I found "work around" for that problem, but as i'm not a programmer, please, check, will it correct to use it?
I'm only moved self.destroyMenu() from the top to the bottom of that piece of code:

Code: Select all

    def SendEventSel(self, sel):
#        self.destroyMenu()
        evtString = self.prefix.split(".")
        evtString.extend(self.choices[sel][1].split("."))
        evtString = evtString[-3:]
        if len(evtString) == 3:
            if self.mode:
                eg.TriggerEvent(evtString[1], prefix = evtString[0], payload = evtString[2])
            else:
                eg.TriggerEvent(".".join(evtString[-2:]), prefix = evtString[0])
        elif len(evtString) == 2:
            eg.TriggerEvent(evtString[1], prefix = evtString[0])
        self.destroyMenu()
Thank you.

Re: OSM (On Screen Menu)

Posted: Wed Sep 14, 2011 4:51 am
by wakko
Ok. Correct it or not, but it helped me out.

Re: OSM (On Screen Menu)

Posted: Wed Sep 14, 2011 11:46 am
by Pako
wakko wrote:Hello.
I'm trying to use OSM plugin on an old, AMD3000+ computer with 256mgb DDR400 memory with Gigabyte k8ns with socket 754 mother board. Windows XP prof SP3. EventGhost_0.4.1.r1534
Before that, i wrote and tested config file for EventGhost on C2D 6300 CPU, and it's working just fine on C2D.
But on old AMD i catched a problem.
If i use OS Menu, and press OK button on remote (OS Menu Ok action), sometimes it gives an error. It happens absolutely unpredictable. Sometimes it working as expected. But more often it gives errors.
If it's not working, it's gives a following error ...
I'm sorry, but I completely overlooked your post. Thank you for reporting.
wakko wrote:I found "work around" for that problem, but as i'm not a programmer ...
It does not matter at all, also I'm not a programmer.
I look at it and probably in the next version will fix it.

Pako