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

changing_20the_20mouse_20speed [2018/03/31 13:19]
127.0.0.1 external edit
changing_20the_20mouse_20speed [2018/04/16 14:29] (current)
richardrussell Added syntax highlighting
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.txt · Last modified: 2018/04/16 14:29 by richardrussell