Solved

Ignore

Posted on 2002-06-19
5
241 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

Industry Leaders: 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

Suggested Solutions

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 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