SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    May 2002
    Location
    Banglore,Karnataka,India
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Reading Windows Progress Bar

    How can i read a progress bar in a window.What i want is to check how much % is covered at a particular time in a progress bar in a window

    ------------------
    Vishal Jain
    Vishal Jain

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Location
    New Delhi, India
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Reading Windows Progress Bar

    I am not sure, how much this code will help u, but I found it in TSL help...check it out.....................

    In the following example, the test calculates the percentage shown in the progress bar of the sample Meter application. To make the calculation, WinRunner loads two functions declared in an external DLL.

    # Declare two meter.dll functions for retrieving the total size and completed size of the meter.

    extern int get_meter_total_size (unsigned int);
    extern int get_meter_completed_size (unsigned int);

    # Link with meter16.dll.

    function init_meter_cc(lib_path)
    {
    load_16_dll (lib_path & "meter16.dll");
    return(E_OK);
    }

    # Calculate the meter percentage.

    function calc_meter_percentage (meter, out completed_percent)
    {
    auto handle, total, completed;

    # Retrieve meter window handle with TSL function 'obj_get_info'.

    obj_get_info(meter, "handle", handle);

    # Use meter.dll functions to get meter total & completed sizes.

    total = get_meter_total_size (handle);
    completed = get_meter_completed_size (handle);

    # Calculate meter completed percentage.

    completed_percent = completed * 100 / total & "%";
    return(E_OK);
    }

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

  3. #3
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Reading Windows Progress Bar

    I've never tried that, but you might be able to do it with obj_get_text() and/or obj_get_info().

    ------------------
    Charles Reace

    charles{DOT}reace{AT}verizon{DOT}net
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)

 

 

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 05:33 AM.

Copyright BetaSoft Inc.