?
Solved

simulate mouse

Posted on 2000-04-13
6
Medium Priority
?
230 Views
Last Modified: 2010-04-04
Hi,

need some code to use a mouse without a mouse.. i have got the moving arround part setcursorpos(x,y); but now i have to simulate a click and a double click and a right click.

giving all my points
0
Comment
Question by:ginamri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 2710986
Use mouse_event instead.
0
 
LVL 2

Accepted Solution

by:
craig_capel earned 52 total points
ID: 2711336
Madshi, getting less willing for examples?....

var
 ex,but: integer;
begin
setcursorpos(29,584);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,but,ex);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,but,ex);
end;

(Goto 800 x 600 for this example)
0
 
LVL 20

Expert Comment

by:Madshi
ID: 2711349
Hehe...  :-)  Yes, for 13 points I don't give examples!  (-:
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:FMayis
ID: 2711465
Perhaps you can try the windows function

SendInput
0
 
LVL 2

Expert Comment

by:craig_capel
ID: 2711541
FMayis, Please Withdraw your answer........
0
 

Expert Comment

by:FMayis
ID: 2711578
FMayis changed the proposed answer to a comment
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question