Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My friend has a Mac mouse on a windows.

When he clicks the mouse, its a right-click because the settings are reversed.

Is there a console command to switch it back? Seeing as he can't fix it with his current mouse, because he can't click the appropriate elements in the GUI.

share|improve this question
up vote 1 down vote accepted

Can't he use the keyboard to get to the location in Control Panel to change the settings?

For what it's worth, you type control mouse from the command line to get into the right place, but you can get there using the Start Menu (Ctrl + Esc) and navigating with the keyboard.

share|improve this answer
    
he can only right click, so it wont work. – Joseph Nov 10 '10 at 5:39
    
I didn't suggest anything about the mouse. I can navigate quite comfortably with the arrows, the tab key, the space bar and the Enter key. – user3463 Nov 10 '10 at 5:45

Keyboard way of switching mouse buttons on Windows Vista (perhaps 7) and above:

  1. Windows Key
  2. type "mouse"
  3. Spacebar
  4. Enter
share|improve this answer

Change between left and right handed and back with one script - click once it changes then click again and it changes it back vs. the RUNDLL32.EXE USER32.DLL,SwapMouseButton" which only swaps to left hand but not back

Note:: if you want to email this file after you create this into MouseHandSwitch.vbs copy the following script and save it as a .vbs file on desktop and now you get it.

'> Mouse change Left to Right handed
'> and repeat to set Left to Right handed again.
'> By William Anderson July 1715
Sub DoAction(str, ms)

'> Check status until ready
status = (WshShell.AppActivate)(cPanel.ProcessID)
Do Until status = true
    WScript.Sleep 100
    status = (WshShell.AppActivate)(cPanel.ProcessID)
    WScript.Sleep 100
Loop

if status = true then
    WshShell.SendKeys str
    WScript.Sleep ms
End if
End Sub

'> Set windows for best performance
Set WshShell = CreateObject("WScript.Shell")
Set cPanel = WshShell.Exec("rundll32.exe shell32.dll,Control_RunDLL main.cpl")
status = (WshShell.AppActivate)(cPanel.ProcessID)
Do Until status = true
WScript.Sleep 100
status = (WshShell.AppActivate)(cPanel.ProcessID)
WScript.Sleep 100
Loop

if status = true then
'> Send alt S to mouse panel
DoAction "%S", 20 
DoAction "{ENTER}", 20
End if 
share|improve this answer
    
Please edit your post - some of the code is not formatted. – suspectus Jul 17 '15 at 19:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.