Solved

Ignore

Posted on 2002-06-19
5
238 Views
Last Modified: 2010-04-04
Ignore
0
Comment
Question by:ginsonic
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now