Solved

Ignore

Posted on 2002-06-19
5
237 Views
Last Modified: 2010-04-04
Ignore
0
Comment
Question by:ginsonic
  • 3
5 Comments
 
LVL 9

Author Comment

by:ginsonic
Comment Utility
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
Comment Utility
Already solve my problem.
0
 
LVL 27

Expert Comment

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

Accepted Solution

by:
Moondancer earned 0 total points
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

18 Experts available now in Live!

Get 1:1 Help Now