Is there a 'hot key' that will bring mouse cursor to a 'home' position on the screen

Anonymous
2014-03-17T16:08:49+00:00

We currently use Windows 7 and Extended desktop in a dental office that we use to show images on  another screen.  Often we 'lose' the cursor on the screen when it accidentally gets pushed over to the extended desktop.   Is there any function that allows you to designate a 'hotkey' that when pushed, will automatically return the cursor "front and center' to the main screen?   We already use the 'location circles' function, but this does not help in this situation.

Thanks for your help, everyone.

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2014-03-17T19:25:56+00:00

    You sure can.  I adapted the instructions below from the following page:

    http://flamingkeys.com/2011/03/moving-the-mouse-cursor-with-windows-powershell/

    And it works well.  Here's how.

    1. Open Notepad and paste in these 3 lines.

    Add-Type -AssemblyName System.Windows.Forms

    $screen = [System.Windows.Forms.SystemInformation]::VirtualScreen

    [Windows.Forms.Cursor]::Position = "10,10" 2. Save the file with a .ps1 name (that's a number one at the end, not an I or L), being careful in the Save box to select "all files (*.*)" in the File type drop down when you save it.  Example:

    You can save this file anywhere you like. I recommend your C:\ drive or something, because this is not the file anyone will actually be using directly.  You need to create a shortcut to it instead.  I'll assume you saved it under C:\MoveMouse.ps1 for the rest of this post. 3. On your desktop, right-click and make a New > Shortcut.  Use the following as the location of your shortcut item:

    powershell.exe c:\MoveMouse.ps1 4. Right-click your newly created shortcut and go to properties, and assign a keyboard shortcut to it.  I used Ctrl-Shift-M for mouse.

    That's it.  Now whenever you press Ctrl-Shift-M, this script command file will run, and move your mouse to location 10,10 on the screen (just inside the top-left corner of the screen).

    Enjoy :)

    38 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful