User Tools

Site Tools


changing_20the_20mouse_20speed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
changing_20the_20mouse_20speed [2018/03/31 13:19] – external edit 127.0.0.1changing_20the_20mouse_20speed [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 1: Line 1:
 =====Changing the mouse speed===== =====Changing the mouse speed=====
  
-//by Richard Russell, January 2011//\\ \\  You can change the mouse speed, that is how fast the mouse pointer moves when you physically move the mouse, as follows:\\ +//by Richard Russell, January 2011//\\ \\  You can change the mouse speed, that is how fast the mouse pointer moves when you physically move the mouse, as follows: 
 + 
 +<code bb4w> 
         SPI_SETMOUSESPEED = 113         SPI_SETMOUSESPEED = 113
         SYS "SystemParametersInfo", SPI_SETMOUSESPEED, 0, speed%, 0         SYS "SystemParametersInfo", SPI_SETMOUSESPEED, 0, speed%, 0
-Where **speed%** has a value between 1 (slowest) and 20 (fastest). The default value is 10.\\ \\  The above code changes the speed only for the current session. If you want to change the speed 'permanently' set the final parameter to **1**:\\ +</code> 
 + 
 +Where **speed%** has a value between 1 (slowest) and 20 (fastest). The default value is 10.\\ \\  The above code changes the speed only for the current session. If you want to change the speed 'permanently' set the final parameter to **1**: 
 + 
 +<code bb4w>
         SPI_SETMOUSESPEED = 113         SPI_SETMOUSESPEED = 113
         SYS "SystemParametersInfo", SPI_SETMOUSESPEED, 0, speed%, 1         SYS "SystemParametersInfo", SPI_SETMOUSESPEED, 0, speed%, 1
-Note that the mouse is a shared resourse, so any change you make will affect all applications and utilities, not just your program.\\ \\  You can discover the current mouse speed setting as follows:\\ +</code> 
 + 
 +Note that the mouse is a shared resourse, so any change you make will affect all applications and utilities, not just your program.\\ \\  You can discover the current mouse speed setting as follows: 
 + 
 +<code bb4w>
         SPI_GETMOUSESPEED = 112         SPI_GETMOUSESPEED = 112
         SYS "SystemParametersInfo", SPI_GETMOUSESPEED, 0, ^speed%, 0         SYS "SystemParametersInfo", SPI_GETMOUSESPEED, 0, ^speed%, 0
 +</code>
 +
 This will set **speed%** to the current value (note the very important **^** before the variable name). This will set **speed%** to the current value (note the very important **^** before the variable name).
changing_20the_20mouse_20speed.1522502348.txt.gz · Last modified: 2024/01/05 00:18 (external edit)