MouseEvent Plugin

Questions and comments specific to a particular plugin should go here.
User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: MouseEvent Plugin

Post by zian » Sat Dec 23, 2017 2:35 pm

My pleasure kgschlosser and your welcome.
:)

Issues...
My mouse actions are working... good.
1 Getting errors... they don't bug me... still works.
2 Downloaded/installed all three versions seen...
3 but .py file still shows older.
It works... just wondering.
Clipboard01.jpg
Clipboard02.jpg
Clipboard02.jpg (8.14 KiB) Viewed 1317 times
Clipboard03.jpg
eventghost.net
Be there or be square.

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Sat Dec 23, 2017 5:25 pm

I am a baaaddd programmer I don't do what I am supposed to do and update the version number. I am working on this. I am going to rename to plugin and do up a different GUD for it. And I will also take care of that traceback as well. Look for it in a few hours.
If you like the work I have been doing then feel free to Image

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: MouseEvent Plugin

Post by zian » Sun Dec 24, 2017 3:04 pm

Don't worry about it man. No rush.
Enjoy your days.

I have been playing around with my EG tree and installed/removed/deleted old cruft. Mouse is all A OK now.
No more errors. ;)
eventghost.net
Be there or be square.

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Sun Dec 24, 2017 6:06 pm

this is the reason why i wanted to make it into it's own plugin with new GUID and what have you. it was probably having a collision with the original plugin.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Sun Dec 24, 2017 6:08 pm

@zian

I did want to let ya ya know that I now have the Sony AVR API and I know you had requested something to control it. I got my fingers on it last night.
If you like the work I have been doing then feel free to Image

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: MouseEvent Plugin

Post by zian » Mon Feb 26, 2018 6:23 pm

kgschlosser wrote:
Sun Dec 24, 2017 6:08 pm
@zian

I did want to let ya ya know that I now have the Sony AVR API and I know you had requested something to control it. I got my fingers on it last night.
Cool. Again, no rush or hurries for me.
Not important but just would feed my need to tweak.

The reason for this visit is that my mouse event plug in has become (or maybe always was) inconsistent. It runs for a while OK. Part of it does show red error regular but it still works/does what I want. Problem is it just stops working after sometime. Few hours maybe. Only way to get it going again is to restart Eventghost.

I love this plug in. I turn it off and on quite a bit depending on what program I am using. chrome/mpc/wmc/vlc = on eg/explorer/etc off. Besides that works great even with the error.

error....
13:13:29 Exception AttributeError: "'HookManager' object has no attribute 'keyboard_hook'" in <bound method HookManager.__del__ of <eg.UserPluginModule.MouseEvent.pyHook.HookManager.HookManager object at 0x0DE181F0>> ignored

ps... my exact plug-in may be "custom" it took a while to install a few of the few diffrent version/downloads to get it to work.
My py file shows...
# -*- coding: utf-8 -*-

version="1.0.1"

#
# plugins/MouseEvent/__init__.py
#
# Copyright (C) 2012 by Daniel Brugger
#
# Version history (newest on top):

Have a great day.
;)
eventghost.net
Be there or be square.

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: MouseEvent Plugin

Post by zian » Tue Feb 27, 2018 1:41 am

Update...
I thought maybe the lost mouse control could be from turning avr/projector on/off. I disabled audio endpoint plug in.
Mouse plug-in hasn't stopped working since then.
Maybe I fixed it.
eventghost.net
Be there or be square.

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Tue Feb 27, 2018 4:12 am

This is the second report of phantom like bugs that go away once the Audio Endpoint plugin has been disabled.

Check your inbox zian.
If you like the work I have been doing then feel free to Image

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: MouseEvent Plugin

Post by zian » Sun Apr 01, 2018 3:19 pm

Update... I still lose mouse/wheel/button functions every now and again even after audio input thingy removed.
No big deal. Restart EG works for me.
eventghost.net
Be there or be square.

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Sun Apr 01, 2018 4:33 pm

they stop generating events? or they stop working on your mouse?
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Wed Apr 18, 2018 3:53 am

OK i was informed of a problem with this plugin and EG 0.5. this has now been fixed. You were not able to click on the OK button after install of the plugin..
Attachments
MouseEvent-1.1.3.egplugin
(27.97 KiB) Downloaded 24 times
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Wed Apr 18, 2018 4:00 am

@zian

are you looking in the program files (x86)/eventghost/plugins/mouseevent folder when you are checking the version?

That is not where the plugin gets installed. It gets installed into programdata/eventghost/plugins/mouseevent

You can also check the version of the plugin by opening the add plugin dialog and single clicking the Mouse Event plugin. on the panel to the right at the top you will see the installed version.


Also. That error you posted earlier. the one that has the NameError.

That specific error occurs when there is a problem with the plugin and EG is unable to load it. it converts all the actions for the plugin into Python Command actions. I would need to see the actual error that caused the plugin not to load to be able to determine what is going on.
If you like the work I have been doing then feel free to Image

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: MouseEvent Plugin

Post by zian » Wed Apr 18, 2018 2:26 pm

I will look into my setup more closely.
Try to be sure I have it all clean and proper.
That would be a nice change. lol

Will report back.
eventghost.net
Be there or be square.

justahotbag2
Experienced User
Posts: 68
Joined: Fri Jan 27, 2017 8:16 pm
Location: New York, NY

Re: MouseEvent Plugin

Post by justahotbag2 » Thu Apr 19, 2018 9:37 pm

@Kg
You're yet unposted 1.1.4; I think fixes all the issues, but either changes in 0.5 or the plugin have rendered my scripts broken, if I'm reading it right.
2018-04-19_17-22-13.png
2018-04-19_17-22-13.png (2.83 KiB) Viewed 846 times
First I replaced everywhere this python command used to work before with the action under it from the MouseEvent Folder tree it automatically adds, that made all the errors go away. But now the script below does nothing, it used to produce events.

Code: Select all

if 'Wheel' in eg.result:
    wheel = eg.result['Wheel']
    position = eg.result['Position']
    if position[0] < -1430 and wheel == 1:
        eg.TriggerEvent(prefix='MouseEvent', suffix='MouseWheel.Edge.Up')
    if position[0] > 2550 and wheel == 1:
        eg.TriggerEvent(prefix='MouseEvent', suffix='MouseWheel.Edge.Up')
    #range between both monitors for mouse wheel up
    if -15 < position[0] < 15 and wheel == 1:
        eg.TriggerEvent(prefix='MouseEvent', suffix='MouseWheel.Edge.Up')
    elif position[0] < -1430 and wheel == -1:
        eg.TriggerEvent(prefix='MouseEvent', suffix='MouseWheel.Edge.Down')
    elif position[0] > 2550 and wheel == -1:
        eg.TriggerEvent(prefix='MouseEvent', suffix='MouseWheel.Edge.Down')
    #range between both monitors for mouse wheel down
    elif -15 < position[0] < 15 and wheel == -1:
        eg.TriggerEvent(prefix='MouseEvent', suffix='MouseWheel.Edge.Down')
If I remember correctly there is a python command that will list all the variables(or what-cha-ma-call-its) that a plugin produces, or am I remembering wrong?
If I had that I could update my scripts.

User avatar
kgschlosser
Site Admin
Posts: 4179
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser » Thu Apr 19, 2018 11:19 pm

OK.

it seems as tho you have the MouseEvent.GetLastWheelEvent action disabled for starters.
But it also appears as tho that is not the action. but it is a Python Command.
try deleting the action and remaking it.

Something happened as some point in time where the plugin had an error on startup. when this happens all of the actions gets converted to Python Command actions. The plugin got deleted from your tree while it was in this state which does not remove the Python Command actions. then the plugin got reinstalled but EG can't link the 2 back together because there is no reference between the 2. You can confirm that it is a Python Command by double clicking on it. the config dialog should be the one for a Python Command .
If you like the work I have been doing then feel free to Image

Post Reply