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.

mouse speed

If you have a question or need help, this is the place to be.
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

mouse speed

Post by kricker »

How can I control the speed of the mouse and change its acceleration in mouse emulation mode?
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

You can't do it directly, but some scripting might work.

Code: Select all

eg.plugins.Mouse.thread.maxSpeed = 7
eg.plugins.Mouse.thread.accelerationFactor = 0.003
eg.plugins.Mouse.thread.accelerationStopFactor = 0.1
These are the current default values. "accelerationStopFactor" is the "break" that gets applied if you release the button.
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Post by kricker »

Thanks. I am not sure where I do that. But I'll look when I get back home later this weekend.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Just type it in a PythonScript and let it execute.
fidoboy
Experienced User
Posts: 74
Joined: Mon Jun 25, 2007 7:48 am

Re: mouse speed

Post by fidoboy »

I'm trying to use this little script to control my mouse speed, but i can't get it to work, when it's launched i can't notice any differences in mouse movement speed. What values must i change to speed up my mouse or to slow down it??

thanks :wink:
fidoboy
Experienced User
Posts: 74
Joined: Mon Jun 25, 2007 7:48 am

Re: mouse speed

Post by fidoboy »

Oops... :oops: Sorry, my fault... i've though that the script was to control physical mouse speed, but i've noticed that the script is for emulation mode; that is, when pressing for example a key on keyboard move the mouse pointer... There is any way to change the 'real' mouse speed??

thanks,
smr888
Posts: 4
Joined: Thu Dec 06, 2007 2:23 pm

Re: mouse speed

Post by smr888 »

>>Just type it in a PythonScript and let it execute.<<

I also do not understand how or where to do this. I have my remote sending mouse commands, but it is very difficult to use and I would like to modify these parameters. Thanks!
kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: mouse speed

Post by kricker »

It depends if you are running a newer version or not. It is easier to setup in a newer version. I for one am running 3.6.1151. In that chhose your autostart category, then add an action, chose python script. Once that is added double click it and paste in the code from here 2nd post.
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: mouse speed

Post by CollinR »

fidoboy wrote:Oops... :oops: Sorry, my fault... i've though that the script was to control physical mouse speed, but i've noticed that the script is for emulation mode; that is, when pressing for example a key on keyboard move the mouse pointer... There is any way to change the 'real' mouse speed??

thanks,
Start>Settings>Control Panel>Mouse
It's on the "Pointer Options" tab the first option "Motion"
smr888
Posts: 4
Joined: Thu Dec 06, 2007 2:23 pm

Re: mouse speed

Post by smr888 »

Thanks Kricker. I'm using the current beta so I assume I can do that. I appreciate the quick answer.
smr888
Posts: 4
Joined: Thu Dec 06, 2007 2:23 pm

Re: mouse speed

Post by smr888 »

Thanks again kricker, I got that to work. It would have been a bit easier if I had actually read your post and followed the link to the corrected code . . . instead I used the script from higher up in the thread (which, coincidentally, was also in the second post). Once I pasted in the script you pointed to it worked fine. I appreciate the help.
fidoboy
Experienced User
Posts: 74
Joined: Mon Jun 25, 2007 7:48 am

Re: mouse speed

Post by fidoboy »

CollinR wrote:
fidoboy wrote:Oops... :oops: Sorry, my fault... i've though that the script was to control physical mouse speed, but i've noticed that the script is for emulation mode; that is, when pressing for example a key on keyboard move the mouse pointer... There is any way to change the 'real' mouse speed??

thanks,
Start>Settings>Control Panel>Mouse
It's on the "Pointer Options" tab the first option "Motion"
Yas, i know that i can do it that way but i wanted to change it 'on the fly' using a macro into EventGhost... it could be an interesting adition for future releases...

greets,
Beholder
Posts: 24
Joined: Sat Apr 18, 2009 3:39 pm

Re: mouse speed

Post by Beholder »

Hey there,
here is a script for AutoHotkey if you really are into slowing down your mouse cursor. You can change the script to whatever speed you want. Use some EventGhost keyboard action to invoke the AutoHotkey script.
To get the script, go to this link: http://www.autohotkey.com/forum/post-96617.html#96617
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: mouse speed

Post by jinxdone »

I know this looks like an old post but here is a code snipplet for anybody interested anyhow.

Set mouse sensitivity to 10:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="851">
    <Action>
        EventGhost.PythonScript(u'from ctypes import windll\nwindll.user32.SystemParametersInfoA(113, 0, 10, 0)')
    </Action>
</EventGhost>
Read the current mouse sensitivity:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="851">
    <Action>
        EventGhost.PythonScript(u'from ctypes import *\nretval = c_int()\nwindll.user32.SystemParametersInfoA(112, 0, byref(retval), 0)\nprint retval.value\n\n')
    </Action>
</EventGhost>
http://msdn.microsoft.com/en-us/library/ms724947.aspx

-jinxdone
Beholder
Posts: 24
Joined: Sat Apr 18, 2009 3:39 pm

Re: mouse speed

Post by Beholder »

this is awesome, thanks. May I direct your attention to another thread that I am posting to right now which is about power button on my Gyration Remote and how I am intercepting it with AutoHotkey? Perhaps the app is again not needed once EventGhost is running...
http://www.eventghost.org/forum/viewtop ... f=2&t=1548
Post Reply