Search found 1273 matches

by jonib
Fri Aug 18, 2017 4:21 am
Forum: General Support
Topic: Keyboard shortcuts are inconsistent
Replies: 6
Views: 2198

Re: Keyboard shortcuts are inconsistent

My keyboard plugin stops detecting keys after a day, or so, until I restart EG too. Does Autohotkey allow you to send events to EG to save me redoing all my macros that use keyboard shortcuts? Sure, you can use EventGhost "-event" command line option, run it from Autohotkey when you need to create ...
by jonib
Tue Aug 15, 2017 2:59 pm
Forum: Plugin Support
Topic: Support for XBMC2 plugin (formerly XBMCRepeat)
Replies: 1378
Views: 528850

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

MaxMan23 wrote:Can you help me with the right format:
Put this in a "Python script" action:

Code: Select all

activePlayer = eg.plugins.XBMC2.JSONRPC(u'Player.GetActivePlayers', u'', False)
if activePlayer:
    eg.plugins.XBMC2.JSONRPC(u'Player.PlayPause', u'{0},False'.format(activePlayer[0]['playerid']), False)
jonib
by jonib
Mon Aug 14, 2017 3:16 pm
Forum: Plugin Support
Topic: Support for XBMC2 plugin (formerly XBMCRepeat)
Replies: 1378
Views: 528850

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Hello. Can someone help me with a python script. I want to send clear signals for play pause (not toggle). If an Event comes for Pause a script should be executed. And if an Event comes for Play another script should be executed. Can someone help me with the right format for the script, please. And...
by jonib
Wed Aug 09, 2017 5:40 am
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

kgschlosser wrote:I would like you to try setting the display resolution and what have you.
This test

Code: Select all

display = Display.GetDisplay(1)
print display

display.SetDisplayMode(width=1920, height=1080)
Gives me this error:

Code: Select all

Display Change Error: Bad Flags
jonib
by jonib
Wed Aug 09, 2017 1:52 am
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

Added Vendor id -> name lookup I don't really like having a partial list in the code, I think it would be better to have it in a separate file, that way it's easy to update, and could be compressed as the full list is kinda big. I believe the ids are not display specific so other modules could have...
by jonib
Tue Aug 08, 2017 7:21 pm
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

This is because of some fancy voodoo magic i am going to my displays. LOL its how you make 3 displays that have different max resolutions actually look right in a multi monitor setup OK But here is a test version if you want to have a poke at it. It will either run from an interpreter (tho the touc...
by jonib
Tue Aug 08, 2017 5:15 am
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

The EDID vendor name codes are listed here if needed.

Code: Select all

HWP = Hewlett Packard 	
SAM = Samsung Electric Company
jonib
by jonib
Tue Aug 08, 2017 5:05 am
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

kgschlosser wrote:Would you mind if I used some bits of it an added it to the DesktopDisplay.
Sure
check out my monitor information... look at the EDID resolutions and then look at the resolutions in GetMonitorInfo.
Weird, mine seems to match.

jonib
by jonib
Tue Aug 08, 2017 1:36 am
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

i tested your code and it tracebacks. this is because not every driver registers it's self in Win32_DesktopMonitor I have a monitor and the drivers re installed for the monitor but it only shows up in Win32_PNPEntity. I have tried this approach as well. and for the life of me i cannot remember what...
by jonib
Sun Aug 06, 2017 9:59 pm
Forum: Plugin Support
Topic: Support for XBMC2 plugin (formerly XBMCRepeat)
Replies: 1378
Views: 528850

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

How do I translate this: xbmc.VideoLibrary.RemoveMovie(movieid=1234) into XBMC2 form. I know the first part is eg.plugins.XBMC2.JSONRPC(u'VideoLibrary.RemoveMovie', ????), but how do I encode the "movieid=1234" part? eg.plugins.XBMC2.JSONRPC(u'VideoLibrary.RemoveMovie', [1234] ) or eg.plugins.XBMC2...
by jonib
Sun Aug 06, 2017 4:56 pm
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

So I did a quick test: This is the result for my Samsung HDTV, there is no specific driver that I have found so it uses Windows default driver. Name: Generic PnP Monitor, Number: 2, Width: 1920, Height: 1080, X: 2560, Y: 0, Primary: False If there are more then one unidentified monitor on a system t...
by jonib
Sun Aug 06, 2017 3:47 pm
Forum: Coding Corner
Topic: Blackout Display
Replies: 20
Views: 4338

Re: Blackout Display

I created a little addition for EG it is not a plugin and you will have to download the attached file into you eg\Classes folder in your EG installation. Cool. Haven't had a chance to look at the code yet. eg.DesktopDisplay.GetDisplay() - you can either pass this the monitor number or monitor name ...
by jonib
Thu Jul 13, 2017 11:46 am
Forum: General Support
Topic: One button run multiple macros -cycle thru
Replies: 2
Views: 934

Re: One button run multiple macros -cycle thru

So if you describe more specifically what you are trying to do, you could get better solutions. But I had one idea and that is to use the "-event" command-line option, that way your AHK script can generate an event directly in EventGhost. With a concrete example of what you are trying to accomplice ...
by jonib
Wed Jul 12, 2017 9:47 am
Forum: Plugin Support
Topic: Support for XBMC2 plugin (formerly XBMCRepeat)
Replies: 1378
Views: 528850

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

blaher wrote:Thank you. All these things:
are working for me with Kodi 16.1 Jarvis.
Thank you for the feedback. If no problems are reported I'll do a pull request to get it included in EventGhost.

jonib
by jonib
Tue Jul 11, 2017 8:14 pm
Forum: Plugin Support
Topic: Support for XBMC2 plugin (formerly XBMCRepeat)
Replies: 1378
Views: 528850

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Plugin updated to 0.6.35, get it on Github , only the __init__.py file needs to be replaced. Whats new: actions.dat error is not shown if the (optional) actions.dat file is missing. The "Update actions" button should now work again to get missing actions (actions included upto Kodi 16, later actions...