Page 2 of 2
Re: Plugin for MeediOS
Posted: Sat Sep 12, 2009 5:41 pm
by Shawn Bass
Brett,
Not sure what I'm doing wrong here, but it still won't target MeediOS. I keep getting the message that says Application not found/active or whatever it says.
Any other ideas?
Shawn
Re: Plugin for MeediOS
Posted: Sat Sep 12, 2009 8:37 pm
by stottle
I can install MeediOS on a test VM and see if I can get it working. Is there any particular version or setup instructions I need?
Brett
Re: Plugin for MeediOS
Posted: Sat Sep 12, 2009 11:17 pm
by stottle
Shawn,
Ok, sorry I didn't catch it. There is no eg.FindWindow. That will throw, which I'm guessing leads to the message as not finding a window. That's one of the hazards of EG development, the messages can be deceiving.
Try:
Code: Select all
#Put this outside any classes near the top of the plugin:
findMeedios = eg.WindowMatcher(None, u'H3-WM-COMMAND', None, None, None, None, True, 0.0, 0)
#In the action class:
hWnds = findMeedios()
if len(hWnds) != 0:
SendMessageTimeout(hWnds[0], WM_COMMAND, self.value, 0)
I don't know what values to use to do anything, but I tested the above commands in a python shell (from the help menu) and they didn't throw.
Brett
Re: Plugin for MeediOS
Posted: Mon Sep 21, 2009 3:43 pm
by stottle
Shawn,
Did you ever get it working?
Brett
Re: Plugin for MeediOS
Posted: Wed Oct 14, 2009 8:11 pm
by olivvvv
hi all,
no news ?