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.
Beholder
Posts: 24
Joined: Sat Apr 18, 2009 3:39 pm

Re: mouse speed

Post by Beholder »

Allright, one more note. Just for reference, my final EG python script looks like this:

Code: Select all

from ctypes import *
retval = c_int()
windll.user32.SystemParametersInfoA(112, 0, byref(retval), 0)
if retval.value < 11:
    retval.value = 20
else:
    retval.value = 10
windll.user32.SystemParametersInfoA(113, 0, retval.value, 0)
print 'Mouse speed is '+str(retval.value)
This script changes mouse speed (sensitivity) to a lower value. When it gets invoked next time, it changes the speed to the maximum. It actually toggles the mouse cursor speed between max and mid values. Thanks to Jinxdone for showing me how to do this.. it is my 1st ever programming in Python!
Post Reply