SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2003
    Location
    Russia
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Free movies and actions by mouse.

    Can I make simple click by mouse on the point like it's does low-level procedures or can I customize low-level procedure by giving in it some parameters. For example, I want to click on screen point given by it absolute coordinate, not on Onscreen object (Window etc.), look like this code:
    screen.Click(Point.X, Point.Y)
    Thank you in advance,
    Alexander.

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Free movies and actions by mouse.

    Hi Alexander,

    To simulate a left mouse button click at the point with the screen coordinates (X, Y), you can use the following function:

    [DelphiScript]
    procedure MClick(X, Y);
    begin
    Sys.MouseDown(VK_LBUTTON, X, Y);
    Sys.MouseUp(VK_LBUTTON, X, Y);
    end;

    Please see the Sys.MouseDown and Sys.MouseUp help topics for details.
    Regards,
    Leo - AQA Support

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    Russia
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Free movies and actions by mouse.

    May be my question were incomplete. My TC version is 2.0 and script language is JScript, and there is no topics about this function in built-in documentation independently of script language. In addition there is no such function in Code Completion window I can see. If there is another source where I can find that topic please tell me about it.

  4. #4
    Junior Member
    Join Date
    Aug 2003
    Location
    Canada
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Free movies and actions by mouse.

    Yes, there's nothing about Sys.MouseUp (MouseDown) in TC 2.0.
    I think you can use Sys.Screen method to get your screen as an onscreen object, and then apply standard Click() action to this object.

  5. #5
    Member
    Join Date
    Nov 2003
    Location
    Russia
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Free movies and actions by mouse.

    Hi Tanya,

    it seems to be what I want. I'm don't understand why early I didn't locate this function. Thanks a lot.

    Regards,
    Alexander.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:10 PM.

Copyright BetaSoft Inc.