#104531 - 2003-09-08 04:57 PM
Compare Registry
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
I am trying to script in my login script "SwapMouseButton" for left handed users.
This seems easy, well no it is harder then I thought.
I have tried changing "SwapMouseButtons", but this does not affect the current logged on user.
So I have downloaded an application off the internet that swaps the mouse button over on the fly.
So I want to take a snapshot of the registry before i run this application then after and see the difference.
Now I have downloaded loads of comapre programs off the internet and they are all rubish.
so anyone know of a good one that works
Or any other suggestions.
Thanks
|
|
Top
|
|
|
|
#104537 - 2003-09-08 10:19 PM
Re: Compare Registry
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
code:
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP, 1, NIL, 0)
The above can be used, I am not a programmer, how could I use this API call within KiXtart or VBS. [ 08. September 2003, 22:20: Message edited by: Richard Farthing ]
|
|
Top
|
|
|
|
#104539 - 2003-09-08 10:40 PM
Re: Compare Registry
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4563
Loc: USA
|
Here is another discussion about this...
Applying Registry Settings
This doesn't work for everything... but may work for what you are doing.
|
|
Top
|
|
|
|
#104544 - 2003-09-09 12:16 AM
Re: Compare Registry
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
This URL shows how to change it but it is in VB6.
SwapMouseButton - VB6 Code
Just loading Visual Studios now.... [ 09. September 2003, 00:23: Message edited by: Richard Farthing ]
|
|
Top
|
|
|
|
#104546 - 2003-09-09 12:34 AM
Re: Compare Registry
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
Sorry sorted it now, Who knows VB6 ??.
I have this project that swaps the mouse Button, but it has a form with a command button.
How do I do a VB6 project without a stupid form .
The code for the SwapMouseButton is on my previos post.
|
|
Top
|
|
|
|
#104548 - 2003-09-09 12:44 AM
Re: Compare Registry
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
Thanks Shawn
I have created this project in VB6, which hides the form, but for the life of me I don't know how to compile it.
or if it can be done in KiX then cool.
VB6 Project [ 09. September 2003, 00:45: Message edited by: Richard Farthing ]
|
|
Top
|
|
|
|
#104550 - 2003-09-09 01:06 AM
Re: Compare Registry
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
ok on its way, if you end up not using it, fine by me, it only took 10 mins to do ... you can get usage info by just running the util with no parms ... that took more time than coding the call to the API The usage text is just a straight copy/paste from the API docs on MSDN ...
C:\>swapmouse
SwapMouse v1.0 (www.kixtart.org)
Syntax:
swapmouse flag
Parameters:
flag - specifies whether the mouse button meanings are reversed or restored. If this parameter is 1, the left button generates right button messages and the right button generates left-button messages. If this parameter is 0, the buttons are restored to their original meanings.
Return Value:
If the meaning of the mouse buttons was reversed previously, before the function was called, the return value is non-zero. If the meaning of the mouse buttons was not reversed, the return value is zero. [ 09. September 2003, 01:06: Message edited by: Shawn ]
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 905 anonymous users online.
|
|
|