programicks
New member
- Joined
- Mar 31, 2010
- Messages
- 3
- Programming Experience
- 1-3
I would like to be able to simply set a mouse speed with a button.
I have successfully got the following to change the registry but although the registry shows the change, the mouse cursor speed remains the same after checking regedit.
'Open Registry Key
'Dim NewKey As RegistryKey
'NewKey = Registry.CurrentUser.OpenSubKey("Control Panel\Mouse", True)
'Dim SetVal As String
'NewKey.SetValue("MouseSensitivity", 2, RegistryValueKind.String)
'NewKey.Close()
Maybe there is a way to control with the API, but I can only find controlling API using visual basic 6 rather than .net
I am using Visual basic 2008 Express edition.
Any help is appreciated
Michael
I have successfully got the following to change the registry but although the registry shows the change, the mouse cursor speed remains the same after checking regedit.
'Open Registry Key
'Dim NewKey As RegistryKey
'NewKey = Registry.CurrentUser.OpenSubKey("Control Panel\Mouse", True)
'Dim SetVal As String
'NewKey.SetValue("MouseSensitivity", 2, RegistryValueKind.String)
'NewKey.Close()
Maybe there is a way to control with the API, but I can only find controlling API using visual basic 6 rather than .net
I am using Visual basic 2008 Express edition.
Any help is appreciated
Michael