Search found 159 matches

by WharfRat
Tue May 12, 2015 2:11 pm
Forum: General Support
Topic: Questions about compatible receiver
Replies: 1
Views: 1168

Re: Questions about compatible receiver

Hello mparadiso... Sorry about the late reply, I have been busy with some plugin documentation, and I was also a little ill recently. I am not familiar with the Amulet remote control, but the two receivers from the Internet are familiar. You might want to look at the Remote Controls topic first. The...
by WharfRat
Sun Mar 29, 2015 9:34 am
Forum: General Support
Topic: Noob: MCE events don't log
Replies: 2
Views: 1189

Re: Noob: MCE events don't log

smprather...

Check out the Remote Controls topic.

I think you might have a 0005 or 0006 or 0007 or 0008 remote, which means you are using the wrong plugin for it.

WharfRat...
by WharfRat
Wed Feb 18, 2015 10:03 am
Forum: Plugin Support
Topic: RM-868 RF MCE Remote
Replies: 6
Views: 1860

Re: RM-868 RF MCE Remote

The Remote Controls topic might be useful...

Did you try to see what codes you get with Advanced USB Port Monitor for the Volume and Power buttons?
by WharfRat
Tue Feb 17, 2015 1:19 pm
Forum: Plugin Support
Topic: RM-868 RF MCE Remote
Replies: 6
Views: 1860

Re: RM-868 RF MCE Remote

Sorry, I did not mean that you should try using the PHX01RN plugin with your remote. What I meant was that you can try to create a plugin by using another remote plugin as an example. I was not aware that your remote uses a DLL as well. Are you sure that your remote does not work with the MCE remote...
by WharfRat
Mon Feb 16, 2015 12:43 pm
Forum: Plugin Support
Topic: RM-868 RF MCE Remote
Replies: 6
Views: 1860

Re: RM-868 RF MCE Remote

Yes ...

I created (actually, fixed) the PHX01RN plugin by using Advanced USB Port Monitor.

So, use that, and the source for the PHX01RN (now fixed in the newer EventGhost releases), or other WinUSB remote, as an example.
by WharfRat
Sun Feb 08, 2015 8:39 am
Forum: General Support
Topic: Global Event Next Title
Replies: 1
Views: 991

Re: Global Event Next Title

Perhaps you need to see viewtopic.php?f=2&t=6063
by WharfRat
Wed Dec 17, 2014 6:20 pm
Forum: Coding Corner
Topic: Windows callback function in a plugin
Replies: 7
Views: 3012

Re: Windows callback function in a plugin

THANK YOU, THANK YOU, THANK YOU...

Simple?
Yes, but only after I studied it carefully...
I would never have arrived at your solution.
It is exactly what I wanted to achieve, and has tested correctly as well.
Thanks again...
by WharfRat
Wed Dec 17, 2014 9:21 am
Forum: Coding Corner
Topic: Windows callback function in a plugin
Replies: 7
Views: 3012

Re: Windows callback function in a plugin

Pako... Sorry, it took me a while to create a code snippet for you. __init__.py I had to change the example to a MIDI Output Device. Not everyone has MIDI input devices. All motherboards have MIDI output devices. It is as simple as I can make it for our purpose. When the Open Device macro is execute...
by WharfRat
Tue Dec 16, 2014 4:56 pm
Forum: Coding Corner
Topic: Windows callback function in a plugin
Replies: 7
Views: 3012

Re: Windows callback function in a plugin

Well, I struggled with using self as a parameter for dwInstance , and I couldn't get it to work. Then I went back to Luse's Learning Python 5th Edition book. Found something about function attributes on page 564. This is what I do now: import eg eg.RegisterPlugin() from ctypes import * from ctypes.w...
by WharfRat
Tue Dec 16, 2014 1:55 pm
Forum: Coding Corner
Topic: Windows callback function in a plugin
Replies: 7
Views: 3012

Re: Windows callback function in a plugin

Aah, thanks for the quick reply Pako... I think I have solved it. Currently I did not use the dwInstance parameter of the callback for anything, but I think I can pass self as the parameter for that, so that it will be accessible within the callback. I hope that self is just a pointer, and not a dee...
by WharfRat
Tue Dec 16, 2014 12:50 pm
Forum: Coding Corner
Topic: Windows callback function in a plugin
Replies: 7
Views: 3012

Re: Windows callback function in a plugin

Perhaps I need to ask a different question in order to accomplish what I need...

How can I access self from within MidiInput.Callback, which is actually MidiInputCallback after self.Callback = MIDIINPUTCALLBACK(MidiInputCallback)?

I hope what I am trying to achieve makes sense to you...
by WharfRat
Mon Dec 15, 2014 2:24 pm
Forum: Coding Corner
Topic: Windows callback function in a plugin
Replies: 7
Views: 3012

Windows callback function in a plugin

I am writing a MIDI plugin. The Windows Multimedia API sends messages to a callback function. Currently, my callback function is implemented as a standalone function: import eg eg.RegisterPlugin() from ctypes import * from ctypes.wintypes import * # define the prototype for the MIDI Input callback f...
by WharfRat
Thu Nov 13, 2014 7:34 pm
Forum: Coding Corner
Topic: payload size
Replies: 2
Views: 1858

Re: payload size

Thanks Pako...

I just realized that it was a stupid question.

MIDI data is transmitted serially, so we only need to deal with it one byte at a time.
But it is nice to know that there is no particular limit to payload sizes.

I should think harder before I open my big mouth...
by WharfRat
Thu Nov 13, 2014 9:53 am
Forum: Coding Corner
Topic: payload size
Replies: 2
Views: 1858

payload size

Hi... I am writing a new plugin (for MIDI devices). Some of the events will have a payload, which could conceivably be quite large, like many kilobytes. For instance, MIDI System Exclusive messages can contain audio data samples for instruments, and so on... Are there any payload limitations that I ...