SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jun 2001
    Location
    Palo Alto, CA, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DragMouse problem

    Hi,

    I'm trying to do a simple DragMouse operation in one of the child windows of my application. The child window is a graphical layout and I'm trying to use the DragMouse to select objects in the child window.

    The child window is declared as "wEditor"

    The statement giving trouble is:
    wEditor.DragMouse(1, 183, 30, 290, 144)

    The statement fails in that it is clicking on the specified coordinated relative to the main window instead of the child window.

    I tried a similar example of:
    wEditor.DragMouse(1, 1, 1, 500, 500)

    with the same results, coordinates used are relative to the main rather than child window.

    Thinking there may be some problem with my child window declaration, in the same script I then tried:

    wEditor.Click(1, 1, 1)
    wEditor.Click(1, 500, 500)

    This time the coordinates used were correct, they were relative to the child window, not the main window.

    I don't see how it can use the correct coordinates relative to the child window for the click operation and the the incorrect coordinates relative to the main window for the drag operation in the same script.

    It seems that the DragMouse operation is ignoring that it is called for the child window rather than the main window. I also tried breaking down the operation using Begin & EndDragAt methods with the same problem.

    DragMouse shoould be very straightforward operation, does anyone have an idea why it is using the wrong coordinates.

    I am testing a standalone Java application, all other window & object recognition is working fine.

    Thanks,
    Greg



    ------------------

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DragMouse problem

    I tried here and it worked ok (SK version 5.0.2) but i'm not using a java app.

    Try using PressMouse(), MoveMouse(), and then ReleaseMouse()

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    161
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DragMouse problem

    User =?iso-8859-1?q?Vijayashree=20Lokesh?= (vijayashree_lokesh@yahoo.co.in.nospam) posted:

    Hi
    This application is not a web based one. Its a VB
    application (stand alone). The buttons i am talking
    about are a list of buttons which get highlighted when
    the cursor moves over it. Also can be invoked by
    pressing the space bar and aroow buttons thro'
    keyboard.
    I hope this gives you a clear picture.
    Please suggest
    Regards
    Vijayashree


    --- MSRKPrasad <prasadms@hcl.co.in> wrote: >
    __________________________________________________ ______________________

    __________________________________________________ ______________________
    Looking for a job? Visit Yahoo! India Careers
    Visit http://in.careers.yahoo.com


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 12:53 AM.

Copyright BetaSoft Inc.