SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jul 2000
    Location
    Boston MA
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there a setting for \"Cursor.GetType ( )\" to work ?

    Hello.
    As long as I can remember from QA partner, if I use "Cursor.GetType ( )"
    the function will return the current shape of cursor when the function is called. But it seems the function doesn't do the job in silktest which doesn't make any sense. Because it is too simple thing to be gone wrong. I am testing MFC based application. and When the cursor change it's shape that is time to move next step, in the script, but the shape of cursor is recognized as "POINTER" not "DELAY"( when it is shown as hour glass), the next step triggered too early.
    Can you think of any reason why the "Cursor.GetType ( )" doesn't work ?

    Thank you



  2. #2
    Member
    Join Date
    Jun 2000
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there a setting for \"Cursor.GetType ( )\" to work ?

    I think what you are experiencing is related the way windows deals with cursors. When you get the cursor type from within SilkTest, windows replies to give you the proper cursor type for the application your cursor is currently on. For example, if your mouse pointer was on top of SilkTest while running the GetType command, it would give you the proper cursor for SilkTest at that moment. It doesn't recognize that you would like to get the cursor type you would see over the application you're testing.

    From online Help file: "The GetType method asks the application over whose window the cursor is resting what its cursor is."
    What you need to do is make sure the cursor is over the application you're testing before you do a GetType(). To this end, you can do a wTestWindow.SetActive() then
    wTestWindow.Click(1, xpos, ypos) to click somewhere in your window, which would more the cursor there. Then your Cursor.GetTyoe() should work properly.

    Take a look at the online help file as well, it has some useful information.

    Cheers,
    Nir.

 

 

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 09:20 PM.

Copyright BetaSoft Inc.