SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: HELP

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Location
    Banglore, Karnataka,India
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HELP

    Hi All,

    I am facing a peculiar problem writing testcase for an application where i need to interact with Graphics screen and i have options to Click mouse on the screen or give co-ordinate values. Now Clicking mouse to a desired location is not a fool proof method as it may fail on other Machines, So Specifying Co-ordinates is the right method, but at one place to select co-ordinate it requires to place MOUSE near to the co-ordinate location, Now using Movemouse method is an analog method so is ruled out,

    Is there any way to handle this type of situations?? Please Help me.

    Regards

    ------------------
    Vinjo
    Vinjo

  2. #2
    Member
    Join Date
    Dec 2001
    Location
    chennai,TN,India
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HELP

    Hi Vinjo,
    I too came across such a problem.For that, Using ScrollIntoView ,I scrolled an Unique Object, close to that position I wanted to Click,into view.Then ,leaving the screen in that position, Using Window Locations I recorded the Co-ordinates.Since the co-ordinates are relative to the Object scrolled into view,I think,it would work fine in all machines.Just try this.
    Rajesh.

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

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Location
    Rosemont, IL USA
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HELP

    vinodjoshi,
    ...to get the coordinates of any gui use the GetRect() function.

    RECT rRect = thisgui.GetRect()
    int iX = rRect.xPos
    int iY = rRect.yPos

    ...so there's your coordinates. type RECT also gives you lengths in both x and y so you can pretty much get the coords at any point inside your gui.
    john yu


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

 

 

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 08:55 PM.

Copyright BetaSoft Inc.