SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: Update Meter

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Update Meter

    Can anyone tell me if it is possible to have the update meter always ontop (but not the active window)?

    I have the util running fine but it always goes to the back so I can not see how much is done, so whats the point of it if you can not monitor it :-)

    Thanks
    Martin [img]images/icons/wink.gif[/img]

  2. #2
    Junior Member
    Join Date
    May 2000
    Location
    USA
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Update Meter

    Assuming you have the win32api DLL loaded...this is an example of putting the WinRunner Print Log "Always on Top". Modify/Customize to meet your specific needs

    1) You will need to define the external interface somewhere...

    extern int SetWindowPos(in int, in int, in int, in int, in int, in int, in int);

    2) see the function below as an example

    public function SetPrintLogPosition () {
    ################################################## ########
    # Constant Definitions can be found in
    # C:\Progam Files\Microsoft\Visual Studio\VC98\Include
    ################################################## #######

    static const HWND_TOPMOST = -1;
    static onst SWP_NOSIZE = 1;
    static const SWP_NOMOVE = 2;
    static const SWP_SHOWWINDOW = 64;

    static rc;
    static printLogHandle;

    ################################################
    # Realize the WinRunner Print Log...
    # This is required in order to re-position
    ################################################
    print ("WinRunner Framework Print Log");
    rc = win_get_info("WinRunner Print Log","handle",printLogHandle);

    rc = SetWindowPos(printLogHandle, HWND_TOPMOST, 5, 500, 1000, 200, SWP_SHOWWINDOW);

    return(rc);

    }#end SetPrintLogPosition

 

 

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 11.54%
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 10:22 AM.

Copyright BetaSoft Inc.