SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2002
    Location
    Ste-Foy, Quebec, Canada
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Reading Registry Values with get_register_value

    Hi.

    I've been fooling around with the get_registry_value function from Mercury's CSOLIB and obviously I am doing something wrong.

    In October 2001 Allogene mentioned this example:

    -----
    auto SubKey = "Software\Mercury Interactive\WinRunner\TestNumber",
    Key = "TestNumber",
    oldvalue;

    get_registry_value("HKEY_LOCAL_MACHINE",SubKey,Key ,oldvalue);
    -----

    I made certain the TestNumber value was available and have tried the above script but I never get a value in the "oldvalue" variable.

    There are just so many ways I can change my strings and right now I have run out of ideas.

    Has anyone come across this same problem?

    Thanks.

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

  2. #2
    Member
    Join Date
    Mar 2002
    Location
    Ste-Foy, Quebec, Canada
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Reading Registry Values with get_register_value

    Sorry. It works now.

    I was originally attempting to run only the part of the script that declard the variables and called get_registry_value and that didn't allow me to see the variable's value.

    I tried running the whole script and the value was visible as desired and could be displayed via report_msg().

    A bit of a pain but at least I know the function works.



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

 

 

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 12.50%
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 04:11 PM.

Copyright BetaSoft Inc.