Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7496989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:53:01+00:00 2026-05-29T18:53:01+00:00

The reason I’m trying to do this, is that I have a program that

  • 0

The reason I’m trying to do this, is that I have a program that when you push one of the buttons it records where your mouse was at the time, and then if you push another it moves your mouse to that location. If there is any simpler way to do this please tell me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:53:02+00:00Added an answer on May 29, 2026 at 6:53 pm

    I’m going to make some assumptions since I am missing some of the context into what you are trying to accomplish:

    • When you press the ‘0’ key on the numpad you will grab the mouse coordinates
    • When you press the ‘1’ key on the numpad you will move the mouse.

    That being said, you can accomplish what you are trying to do with the following code:

    private void YourControl_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
    {
        if (e.KeyCode == Keys.NumPad0) 
        {
           //Grab mouse coordinates
        }
        if (e.KeyCode == Keys.NumPad1) 
        {
           //Code to move the mouse
        }
    }
    

    Of course, this only works if your application is in focus, if you want to accomplish this when you application is minimized you will have to register global hotkeys.

    If you would like more details that are specific to your particular problem, please edit you question to include more specific information and I will do my best to help you out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The reason I am keen to do this is that we have a wiki
They reason i want to do this is so that I can actually have
The reason I ask is that I am trying to run MVC side-by-side with
The reason I'm asking is that this post http://amix.dk/blog/post/19577 Indicates that Node.js 0.2.2 seems
The reason I asked this question is that I wanted to create a helper
Reason: We have a new client that wishes for the database containing all their
The reason I am asking is I have an ocx that I don't want
The reason I am asking this is due to my observation that frameworks like
Any reason why this works every time in Safari but only SOME of the
The reason I'm asking this is that our app (The Elements) runs fine on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.