Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
MouseEvent Plugin
MouseEvent Plugin
New version 1.0.1 (from 2012-08-26)
hi there,
In my EG configuration I need to receive mouse events. Surprisingly EG doesn't create mouse events 'out of the box', so I decided to write my own plugin. It's not a big thing, but maybe it is helpful for others too.
The plugin uses the pyHook library for getting low level mouse events. Currently this library is not part of EG but I supply it here along with the plugin. To install it, just copy the 'pyHook' folder from the .zip archive into 'EventGhost\lib26\site-packages\pyHook' and restart EG.
Usage note: The plugin does not yet start generating mouse events when it is started. You've to call the action 'Start Mouse Event Listener' in order to receive mouse events.
hi there,
In my EG configuration I need to receive mouse events. Surprisingly EG doesn't create mouse events 'out of the box', so I decided to write my own plugin. It's not a big thing, but maybe it is helpful for others too.
The plugin uses the pyHook library for getting low level mouse events. Currently this library is not part of EG but I supply it here along with the plugin. To install it, just copy the 'pyHook' folder from the .zip archive into 'EventGhost\lib26\site-packages\pyHook' and restart EG.
Usage note: The plugin does not yet start generating mouse events when it is started. You've to call the action 'Start Mouse Event Listener' in order to receive mouse events.
- Attachments
-
- MouseEvent_1.0.1.zip
- (34.07 KiB) Downloaded 795 times
Last edited by phlox on Sun Aug 26, 2012 1:24 pm, edited 7 times in total.
Re: MouseEvent Plugin
version 0.1.1 uploaded with following changes:
- Fix: Move events were not triggered while coalesce == False
- Impr: filter ghost move events, i.e. events with same position as previous one if coalesce == True
- Unnecessary imports removed, URL added
Re: MouseEvent Plugin
here's update 0.1.2 with following changes:
- Fix: Restore event handling after system resume
- Improvement: Added option to filter move events by distance
Re: MouseEvent Plugin
I've uploaded v0.1.3 with the following change:
- Option "Filter move events by distance" improved. The initial events are now filtered until minDistance reached. On some systems, I think it depends on the mouse hardware, events without moving the mouse get fired (ghost events), and these events are now suppressed from the beginning.
-
THX-UltraII
- Experienced User
- Posts: 52
- Joined: Tue Feb 24, 2009 7:40 am
Re: MouseEvent Plugin
The file you posted does not contain a 'pyHook' folder.phlox wrote:New version 0.1.3 (from 2012-02-17)
hi there,
In my EG configuration I need to receive mouse events. Surprisingly EG doesn't create mouse events 'out of the box' (or at least I haven't found them??), so I decided to write my own plugin. It's not a big thing, but maybe it is helpful for others too.
The plugin uses the pyHook library for getting low level mouse events. Currently this library is not part of EG but I supply it here along with the plugin. To install it, just copy the 'pyHook' folder from the .zip archive into 'EventGhost\lib26\site-packages\pyHook' and restart EG.
And what s the difference between your plugin and the standard mouse actions that EventGhost by default?
Re: MouseEvent Plugin
oops, indeed, I'm sorry, I missed to pack the library with 1.0.3 (I've uploaded an updated version in the first post)THX-UltraII wrote: The file you posted does not contain a 'pyHook' folder.
Well, EG provides actions to move the mouse pointer over the screen or to click somewhere, that's ok, but it does not fire events when someone (a human) moves the mouse or clicks somewhere. The MouseEvent plugin fires events on these and other mouse actions.THX-UltraII wrote: And what s the difference between your plugin and the standard mouse actions that EventGhost by default?
For example, such events could be used in a macro to restart a sleep timer; that's exactly the use case where I need this plugin in my EG config.
Re: MouseEvent Plugin
Here's a final first release of Mouse Event plugin 1.0.0 (download in the first post).
It's in daily use on my own system and it does what it is supposed to: it fires mouse events
It's in daily use on my own system and it does what it is supposed to: it fires mouse events
Re: MouseEvent Plugin
One question about this plugin. I tried it and it seems to do the job somehow.
How do I get the menu windows from screen one? I need to force it to update more often then it does by default for gaming purpose.
How do I get the menu windows from screen one? I need to force it to update more often then it does by default for gaming purpose.
Re: MouseEvent Plugin
you have to call the action 'Start Mouse Event Listener' in your macro in order to receive mouse events. Double click on that action to configure it (that's the screenshot of the first post)
You can call the action 'Stop Mouse Event Listener' if you no longer want to receive mouse events.
You can call an action of the family 'Get last mouse XXX event' if you want to get details of the last event, like the position of the last click.
Feel free to ask if it's not clear.
You can call the action 'Stop Mouse Event Listener' if you no longer want to receive mouse events.
You can call an action of the family 'Get last mouse XXX event' if you want to get details of the last event, like the position of the last click.
Feel free to ask if it's not clear.
Re: MouseEvent Plugin
You can call the action 'Stop Mouse Event Listener' if you no longer want to receive mouse events.
Harry Bro
Re: MouseEvent Plugin
Here's an update Mouse Event plugin 1.0.1
(download in the 1st post)
Change log
(download in the 1st post)
Change log
Code: Select all
# 1.0.2 Fix: StopMouseEventListener was broken in 1.0.0
# Fix: After several suspend-resume cycles, the MouseListener stopped producing mouse events.
# Fix: MouseEventListener instantiation on __start__(), not on __init__()
Re: MouseEvent Plugin
Hiphlox wrote:New version 1.0.1 (from 2012-08-26)
hi there,
In my EG configuration I need to receive mouse events. Surprisingly EG doesn't create mouse events 'out of the box', so I decided to write my own plugin. It's not a big thing, but maybe it is helpful for others too.
The plugin uses the pyHook library for getting low level mouse events. Currently this library is not part of EG but I supply it here along with the plugin. To install it, just copy the 'pyHook' folder from the .zip archive into 'EventGhost\lib26\site-packages\pyHook' and restart EG.
Usage note: The plugin does not yet start generating mouse events when it is started. You've to call the action 'Start Mouse Event Listener' in order to receive mouse events.
Thanks for the effort, this is what I was looking for.
Unfortunately It is not working for me.
I extracted the zip, copied pyHook folder as instructed D:\Util\EventGhost\lib26\site-packages\pyHook,
put the plugin in the D:\Util\EventGhost\plugins\MouseEvent_1.0.1
Exit EG -> restart EG
Go to add plugin
The plugin is not shown under any category?
Am I doing something wrong?
MY EG version is: 0.4.1r1640
Thanks
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: MouseEvent Plugin
I see that you are not progressing properly.
Once you download a file MouseEvent_1.0.1.zip, you must do one thing only:
Expand the contents of the file into the folder where you have installed the program EventGhost.
ZIP file contains subfolders, so that will be merged.
Then when you restart EventGhost, you will find a new plugin in "Remote Receiver" group.
Pako
Once you download a file MouseEvent_1.0.1.zip, you must do one thing only:
Expand the contents of the file into the folder where you have installed the program EventGhost.
ZIP file contains subfolders, so that will be merged.
Then when you restart EventGhost, you will find a new plugin in "Remote Receiver" group.
Pako
Re: MouseEvent Plugin
Thanks for the quick response
It is now working
Much obliged
H.
It is now working
Much obliged
H.
-
justahotbag2
- Experienced User
- Posts: 68
- Joined: Fri Jan 27, 2017 8:16 pm
- Location: New York, NY
Re: MouseEvent Plugin
I see this thread/plugin is quite dusty, does anyone still use it? I'm looking to fire a macro, when scrolling the mouse wheel on the top edge of the screen, but this doesn't seem to acknowledge which way the wheel turns.