473,799 Members | 3,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

set mouse postion

Newbie needs to know how to set the mouse position.
Nov 17 '05 #1
3 2714
Hi Emjay,

Use the Cursor class and its Position property.
On Tue, 21 Jun 2005 15:15:03 +0200, Emjay <Em***@discussi ons.microsoft.c om> wrote:
Newbie needs to know how to set the mouse position.


--
Happy coding!
Morten Wennevik [C# MVP]
Nov 17 '05 #2
Thanks, all set now. I was trying to do it with the "mouse" not "cursor".

"Morten Wennevik" wrote:
Hi Emjay,

Use the Cursor class and its Position property.
On Tue, 21 Jun 2005 15:15:03 +0200, Emjay <Em***@discussi ons.microsoft.c om> wrote:
Newbie needs to know how to set the mouse position.


--
Happy coding!
Morten Wennevik [C# MVP]

Nov 17 '05 #3
On Tue, 21 Jun 2005 06:15:03 -0700, "Emjay"
<Em***@discussi ons.microsoft.c om> wrote:
Newbie needs to know how to set the mouse position.

If you're right handed, then grasp the mouse with your right hand
(careful not to press the buttons on the top, and don't put pressure
on the scrolling wheel, if your mouse is so equipped.) Gently apply
lateral pressure to the mouse with your hand in the direction you'd
like the mouse to go, moving the mouse across the mousepad. (Some
people don't use mousepads, preferring instead to move the mouse
directly on the top of the desk. This is also acceptable.) When your
mouse has reached the desired postion, terminate the lateral pressure
so the mouse stops exactly where you want it.

If you are left handed, do pretty much the same thing, except that you
would grasp the mouse with your left hand.

This might take some practice before you become proficient, but within
a few days you should be able to set the mouse position wherever you
want it.

Oh - BTW - if you reach the edge of the mouse pad or the desk surface
and the mouse is in danger of falling off, you may have miscalculated
the desired mouse position with respect to the cursor on the screen.
In these cases, you can lift the mouse off the mousepad or desk and
move it in the air and reposition it on your mousing surface without
affecting the position of the cursor on the screen.



(sorry - I guess I just couldn't resist...)
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2600
by: Martin Roos | last post by:
is it possible thru some libraries to move the mouse cursor under X11 from a C++ program and to call "click" ? if anyone has a good link to a lib desc or anything, all help is welcome.
4
13878
by: Jonne | last post by:
Hi, I haven't found anything like this anywhere with Google, so I'm posting it here, hoping one of you people knows how to do something like this. I'm trying to get the mouse coordinates in a div, as opposed to relative to the screen. _______________________________ | * | |_______________________________|
5
1506
by: Smoke | last post by:
What i want to do, is, in the Activate Event of my form, determine which is the mouse possition, or, maybe even easy, just determine if the mouse is over my form. I need to do two differents things on that event, based on if the mouse is over the form or not.. Any help? Thanks.
4
6670
by: Shawn | last post by:
I have an application that has a vb.Net client and an ASP.Net page. In the vb.Net form I use Panel1.PointToClient(Windows.Forms.Cursor.Position) to get the position on a panel where the mouse was clicked. I would like to do the same thing in my ASP.Net page, but can't find a way to. Any ideas???
1
2216
by: lg | last post by:
Is there a way to set/get vertical scroll postion without Javascript. At times I need to repaint the page but the page should scroll to certain postion depending on user input.
1
6227
by: Neeraj | last post by:
hi I want to use ContextMenuStrip .For that i use show() method.i can not bind it as control.ContextMenuStrip= menu; becouse its automatically comes on right mouse down. So i am using menu.show() .method. this method use parameter as point which is repect to screen . How i can get mouse postion with respect to screen.when i write mouse event of that control which add in on some other control. Or you have any simple idea so that i can get...
3
6395
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As you know, scroll position will be 0,0 after reloading page. But I want to go the postion where user click the link for popup windows.
0
955
by: a4andy | last post by:
Hi, This has got me pulling my hair out, all I want to do is get the cursor position within a client window in the same units as the window coordinates. If I use; Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Integer, ByRef lpRect As RECT) As Integer to get the coordinates of the client window and;
1
1243
by: barantamer | last post by:
Hello , Is there a way to get the mouse cursor position which is not inside a component ?
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10243
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.