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.

MouseEvent Plugin

Questions and comments specific to a particular plugin should go here.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

that is very odd. because it works for me. let me look into something i am wondering if i am running a modified version of EG that fixed an issue with the clipboard chain.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

is there anything special about how EG is running? as an example in a remote desktop session?
If you like the work I have been doing then feel free to Image
Diz
Experienced User
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: MouseEvent Plugin

Post by Diz »

well... im using it as portable rather than installed... and i am running on stone age windows xp! :D these cant be the reasons though right?
justahotbag2
Experienced User
Posts: 68
Joined: Fri Jan 27, 2017 8:16 pm
Location: New York, NY

Re: MouseEvent Plugin

Post by justahotbag2 »

I have found that removing the first line enables the paste function, under 0.4.r1722

but I get this when I move the mouse wheel.

Unhandled exception in WorkerThread <ActionThread>:
Callers stack:
File "threading.pyc", line 504, in __bootstrap
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
self.__DoOneEvent()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 342, in __DoOneEvent
eg.PrintTraceback()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 85, in Transfer
event.SetShouldEnd()
Traceback (most recent call last) (1722):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 87, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventGhostEvent.py", line 168, in Execute
activeHandlers = sorted(activeHandlers, key=GetItemPath)
File "C:\Program Files (x86)\EventGhost\eg\Classes\TreeItem.py", line 377, in GetPath
path.append(parent.childs.index(item))
ValueError: tuple.index(x): x not in list


Pasting works fine under 0.5.0, but gives this error.

Unhandled exception in WorkerThread <ActionThread>:
Callers stack:
File "threading.pyc", line 774, in __bootstrap
File "threading.pyc", line 801, in __bootstrap_inner
File "threading.pyc", line 754, in run
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 280, in __MainLoop
self.__DoOneEvent()
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 269, in __DoOneEvent
eg.PrintTraceback()
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 140, in HandleAction
action()
File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 117, in Transfer
event.SetShouldEnd()
Traceback (most recent call last) (0.5.0-rc2):
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 253, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files\EventGhost\eg\Classes\ActionThread.py", line 42, in HandleAction
action()
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 324, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files\EventGhost\eg\Classes\EventGhostEvent.py", line 148, in Execute
activeHandlers = sorted(activeHandlers, key=GetItemPath)
File "C:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 284, in GetPath
path.append(parent.childs.index(item))
ValueError: tuple.index(x): x not in tuple


Hope this helps.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

In 0.5 does the error happen on paste or when you run it?

The error looks the same as 0.4 and you can't simply delete the first line. You can copy a tree item from 0.4 and paste it into a forum post for me to look at. But also I want you to copy and paste into your own. Tree and see if that functions properly. I want to take a look and see what is possibly going on. But also if it will paste into 0.5 properly. There is a need to make some changes to how the copy and paste works in new versions of EG. I don't think the current system does any version checking
If you like the work I have been doing then feel free to Image
Diz
Experienced User
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: MouseEvent Plugin

Post by Diz »

ok... i have solved my paste always being greyed out mystery. turns out the issue is with the forum itself. whenever i copy from this forum i have always used that little 'select all' button at the top and i have noticed that this button always puts in an extra indent in from the left edge! this is why it wont paste directly into the tree. however, if i dont use that 'select all' button and drag the mouse over the text myself to copy it then there is no extra indent and the left edge is where it is supposed to be and then it will paste directly into the tree! so all along it was never even an eg issue but the forum that was actually at fault! :o :mrgreen:
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

it's a P.E.B.K.A.C. kind of a problem


Problem Exists Between Keyboard And Chair :shock: :lol: 8)
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

but now you know how to do the copy and paste thing. HOORAY!!! it is a convenient thing to be able to do.

@justahotbag2 let me know if this is also the solution for you as well.
If you like the work I have been doing then feel free to Image
Diz
Experienced User
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: MouseEvent Plugin

Post by Diz »

between keyboard and chair? you mean like a user error? :o :shock: how is it my fault if the forums 'select all' button adds extra data into the copied text? how could anyone expect that to happen? problem is definitely NOT between keyboard and chair! problem is with the forum... like i already said! :cry:
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

Chillll. I am messin with ya. But also I didn't say your chair. Someone at some point had to program the forum and it's wrong. So do me a favor and if you have an account on Github submit in issue for it there otherwise I may forget to fix it.

But now we know of the issue and how to work around it. And if you want to add a post in the bug reports section here and what the workaround is I am all for it. Just make the title something like Pasting XML into EventGhost
If you like the work I have been doing then feel free to Image
Diz
Experienced User
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: MouseEvent Plugin

Post by Diz »

aah... fair point... u didnt say MY chair! i just assumed... lol :oops:

ok i will do the github thing and a workaround bug report shortly :D
Diz
Experienced User
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: MouseEvent Plugin

Post by Diz »

ok... github issue submitted and workaround bug report posted :lol:
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

Thanks Diz I do appreciate it.

as┬Àsump┬Àtion
əˈsəm(p)SH(ə)n
noun
1.
The mother of all fuck-ups.
2.
a thing that is accepted as true or as certain to happen, without proof.
"they made certain assumptions about the market"
If you like the work I have been doing then feel free to Image
Diz
Experienced User
Posts: 121
Joined: Tue Jan 10, 2017 4:49 pm

Re: MouseEvent Plugin

Post by Diz »

yeah i know... you are right... its my bad :roll: :D
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: MouseEvent Plugin

Post by kgschlosser »

no worries m8. i'm just messin with ya.


But are you running this plugin also? and if you are have you tried the script and does it work?
If you like the work I have been doing then feel free to Image
Post Reply