Sensibilidad del mouse y registro
Publicado: 04 Dic 2009, 22:15
Hola, hoy en dia tengo conectado simultaneamente a la pc un trackball optomecanino y un mouse optico, el problema es que uno es mucho mas sensible que el otro por eso quise hacer un script para poder cambiar la sensibilidad con la que el windows capta los movimientos y asi pasar de uno a otro con comodidad y facilidad.
Para eso corri uno de esos programas que comprara el registro y entre una toma y otra cambie la sensibilidad. El resultado fue este
Luego de un muy leve analisis dije cambiando este valor andara
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\MouseSensitivity: "4"
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\MouseSensitivity: "20"
Pero al hacer mi programa no pasa nada a pesar de que el valor cambia (lo verifique en el registro )
¿Alguna idea de que pasa?, les dejo el codigo
EDITADO: Al reiniciar si se da cuenta del cambio en la sensibilidad
Por cierto si alguien tiene un trackball para vender en Argentina yo estoy interesado
Saludos
Para eso corri uno de esos programas que comprara el registro y entre una toma y otra cambie la sensibilidad. El resultado fue este
Código: Seleccionar todo
Regshot 1.8.2
----------------------------------
Values modified:10
----------------------------------
HKLM\SYSTEM\ControlSet001\Control\Nsi\{eb004a03-9b1a-11d4-9123-0050047759bc}\24\ffffffffffffffffffffffffffffff01: 01 00 00 00 A5 03 00 00 36 A0 03 00 FF FF FF FF FF FF FF FF FF FF FF FF
HKLM\SYSTEM\ControlSet001\Control\Nsi\{eb004a03-9b1a-11d4-9123-0050047759bc}\24\ffffffffffffffffffffffffffffff01: 01 00 00 00 A5 03 00 00 39 A0 03 00 FF FF FF FF FF FF FF FF FF FF FF FF
HKLM\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a03-9b1a-11d4-9123-0050047759bc}\24\ffffffffffffffffffffffffffffff01: 01 00 00 00 A5 03 00 00 36 A0 03 00 FF FF FF FF FF FF FF FF FF FF FF FF
HKLM\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a03-9b1a-11d4-9123-0050047759bc}\24\ffffffffffffffffffffffffffffff01: 01 00 00 00 A5 03 00 00 39 A0 03 00 FF FF FF FF FF FF FF FF FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\MouseSensitivity: "4"
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\MouseSensitivity: "20"
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU\MRUListEx: 01 00 00 00 09 00 00 00 02 00 00 00 04 00 00 00 05 00 00 00 08 00 00 00 07 00 00 00 06 00 00 00 00 00 00 00 03 00 00 00 FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU\MRUListEx: 09 00 00 00 01 00 00 00 02 00 00 00 04 00 00 00 05 00 00 00 08 00 00 00 07 00 00 00 06 00 00 00 00 00 00 00 03 00 00 00 FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU\*\MRUListEx: 0C 00 00 00 0B 00 00 00 0A 00 00 00 09 00 00 00 08 00 00 00 07 00 00 00 06 00 00 00 05 00 00 00 04 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 13 00 00 00 03 00 00 00 12 00 00 00 11 00 00 00 10 00 00 00 0F 00 00 00 0E 00 00 00 0D 00 00 00 FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU\*\MRUListEx: 0A 00 00 00 0C 00 00 00 0B 00 00 00 09 00 00 00 08 00 00 00 07 00 00 00 06 00 00 00 05 00 00 00 04 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 13 00 00 00 03 00 00 00 12 00 00 00 11 00 00 00 10 00 00 00 0F 00 00 00 0E 00 00 00 0D 00 00 00 FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU\hiv\MRUListEx: 01 00 00 00 00 00 00 00 FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU\hiv\MRUListEx: 00 00 00 00 01 00 00 00 FF FF FF FF
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{CEBFF5CD-ACE2-4F4F-9178-9926F41749EA}\Count\{S38OS404-1Q43-42S2-9305-67QR0O28SP23}\rkcybere.rkr: 05 00 00 00 00 00 00 00 29 01 00 00 6F 73 37 00 9C CE 7D 3E 62 B5 E6 3D 27 76 37 3E 3F D4 AB 3E 4C 66 29 3E 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{CEBFF5CD-ACE2-4F4F-9178-9926F41749EA}\Count\{S38OS404-1Q43-42S2-9305-67QR0O28SP23}\rkcybere.rkr: 05 00 00 00 00 00 00 00 2A 01 00 00 BD 73 37 00 9C CE 7D 3E 62 B5 E6 3D 27 76 37 3E 3F D4 AB 3E 4C 66 29 3E 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF 00 00 80 BF 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
H
----------------------------------
Total changes:10
----------------------------------
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\MouseSensitivity: "4"
HKU\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\MouseSensitivity: "20"
Pero al hacer mi programa no pasa nada a pesar de que el valor cambia (lo verifique en el registro )
¿Alguna idea de que pasa?, les dejo el codigo
Código: Seleccionar todo
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.0.0
Author: Pablo2m
#ce ----------------------------------------------------------------------------
HotKeySet("{F10}", "Cambiazo")
$S1= 1
$S2= 20
while 0 = 0
Sleep (100)
WEnd
Func Cambiazo ()
$s= RegRead ("HKEY_USERS\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\", "MouseSensitivity")
;MsgBox(4096, "Sensibilidad del mouse en ", $S)
If $S <> $S1 Then
$S = $S1
Else
$S= $S2
EndIf
RegWrite("HKEY_USERS\S-1-5-21-253273470-2590505109-4206340648-1001\Control Panel\Mouse\", "MouseSensitivity", "REG_SZ", $S)
;MsgBox(4096, "Sensibilidad del mouse en ", $S)
EndFunc
Por cierto si alguien tiene un trackball para vender en Argentina yo estoy interesado
Saludos