Solved

Ignore

Posted on 2002-06-19
5
243 Views
Last Modified: 2010-04-04
Ignore
0
Comment
Question by:ginsonic
[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
  • 3
5 Comments
 
LVL 9

Author Comment

by:ginsonic
ID: 7092731
My try :

    GetCursorPos(StartPos);
    EndPos.x := 200;
    EndPos.y := 200;
    PixelMov := 13;
    Mover.x := 0;
    Mover.y := Round(Sqrt(SumOfSquares([abs(EndPos.y-StartPos.y),abs(EndPos.x-StartPos.x)]))) div PixelMov;
    Radian1 := DegToRad(180 * (1 + ArcTan2(EndPos.y-StartPos.y, EndPos.x-StartPos.x) / Pi));

While (Mover.x < Mover.y) or (Mover.x < 1000) do begin
    SetCursorPos(Round(StartPos.x-Cos(Radian1)*(PixelMov*Mover.x)),
            Round(StartPos.y-Sin(Radian1)*(PixelMov*Mover.x)));
    Inc(Mover.x);
    Sleep(1);
   end;
SetCursorPos(EndPos.x, EndPos.y);
0
 
LVL 9

Author Comment

by:ginsonic
ID: 7093699
Already solve my problem.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7093916
? nick, what is the question ?
sorry, for not ignoring
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7093929
100 points refunded, questions closed.

You cannot delete a questions once comments by anyone have been added without posting in Community Support and requesting assistance.

Moondancer - EE Moderator
0
 
LVL 9

Author Comment

by:ginsonic
ID: 7094720
I wish to use a linear movement for my mouse without a timer . You have already the code. But when I remove the timer and use top code this don't work how I wish:(

I don't fix it, just I don't use it anymore in my help application.
0

Featured Post

Technology Partners: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

696 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