≡ Menu

How to move Mouse pointer automatically to OK button

If you use Windows graphical user interface extensively then this could be a useful tip to you. If you always deal with different windows in your Windows application you might be pressing OK, Cancel or Apply buttons lot of times. You have to move mouse cursor close to the buttons in these windows. You can avoid this by configuring your mouse settings to point to OK button whenever you open a new Window.
Let’s see how we can do this.

  • Open Run Window.
  • Execute Main.cpl and open Mouse Properties window.
  • Select Pointer Options tab


  • Select the check button ‘Automatically move pointer to the default button in a dialog box
  • Click on Apply and close the window.

This behavior is controlled by the registry key SnapToDefaultButton which can be found in the node HKEY_CURRENT_USERControl PanelMouse.  Setting the data in this registry key to 1 will enable the mouse to move to default button and setting it to 0 will disable the same. Note that the change in the registry key will not change the behavior immediately reason being the old registry value would still be in cache. Logging off and logging in will bring the changes into effect.

{ 3 comments… add one }
  • Brian November 6, 2010, 3:54 am

    Thanks for the info dude..I was wondering my mouse is automatically moving to the OK button whenever i open a new window..now i understand why it's doing that…some other user seems to have set his behavior on…

  • Anonymous May 1, 2011, 10:08 am

    I was searching for this tip, thanks a lot

  • Sanjay Kad January 6, 2015, 3:52 am

    very useful comments, it realy helps

Leave a Comment