473,486 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to emulate system-wide mouse click?

The term 'system-wide' just means that click is dealt in whole-screen
wide level.
Just like the real mouse pointer.
What I'd like to do is to emulate mouse move and click.
For example, the command is something like
"Move the mouse to the 300,400 of the screen and click."
I know that I can send mouse clcik message to a specific window using
WinAPI. But can't I just emulate 300,400 click of the real screen?

I thought that I might need to deal with the mouse driver?

A workaround I came up with is to find the window at that screen
location using WindowFromPoint then translate the point to that
window's cordinate then send WM_MOUSEDOWN.
But is this the only way?

Please give me a hint. Thank you.

Aug 7 '07 #1
0 1998

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

Similar topics

1
1828
by: Bob Van Der Ploeg | last post by:
I need a DB design to emulate a operating system so I can add folders (Categories) with unlimited folders (Sub categories) in side folders Any suggestions? Bob
2
1579
by: bulk88 | last post by:
How can I emulate DOM level 1 removeChild in IE 4? I already figured out to emulate getElementById by doing this if((!document.getElementById) && document.all) {document.getElementById =...
61
16158
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
1
2618
by: VMI | last post by:
I have a Windows datagrid whose column values are (1,10,100,1000,101,10-1,103,11,1710,2). When the column's sorted (the column's of type String), it'll sort this way , which is wrong. But in...
2
2713
by: Starbuck | last post by:
HI In a edit form which has text boxes is it possible to emulate TAB and Shift-TAB with the UP & DOWN keys Thanks in advance
3
2102
by: mario.rossi | last post by:
Hello! I would like to write a pointer to type template that behaves exactly and completely like normal pointers, which I will use as starting point for other kinds of pointers that hold extra...
0
1337
by: Karch | last post by:
I am trying to marshal some binary data in my code before passing it to a SQL Service Broker queue. I found this code for marshaling the binary data, but I would like to also do this in my client...
7
1677
by: C a r l o s A n t o n i o | last post by:
Hello, I have to submit a file via HyperTerminal using my PC's internal modem on a daily basis. Does anybodoy know how to accomplish this in VS2005? Any language is good, VB preferred. ...
11
3942
by: Andrus | last post by:
I'm implementing entity object which should populate its properties from database when property is first referenced. In RDL reports I use object properties like MyObject.MyProperty MyObject...
14
1669
by: Eugeny Myunster | last post by:
Hello all, How can i emulate sizeof() only for integers?
0
7099
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,...
0
6964
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...
0
7123
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,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
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,...
1
4864
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...
0
3069
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...
0
3070
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.