Jump to content

Selecting Registry Key

Recommended Posts

Hello together, how one can select Registry key, I know and can these on process. Now a question to a somewhat more complex topic: Is it to be scanned possible, if into the Registry Key under the following key "HKEY_LOCAL_MACHINE\SOFTWARE\PP COM\MRS\IsdnApl\Protocols" are several "Ordner" like "01, 02, 03... 20", these successively for a certain value and be handed over then to an input field?

For example:

I want to search for the value "Xpressions-PhoneMail-Skript", if this will be found, then read out the following key "da=397 ga=398 ca=399 -officepro tbd=120".

I hope that is possible and understandably!

Thank you for helping!

Link to post
Share on other sites

Ok, thanks, another question:

I want to have the code, so:

If the Description value = "Xpressions-PhoneMail-Skript", then

Messagebox "Yes" and the code should be ending, else the code

should be search so long, until this script find "Xpressions-PhoneMail-Skript". Can you help me?

$i = 1
While 1
   $key = RegEnumKey("HKLM\SOFTWARE\PP-COM\MRS\IsdnApl\Protocols",$i)
   If @error Then ExitLoop
   $str = RegRead("HKLM\SOFTWARE\PP-COM\MRS\IsdnApl\Protocols\" & $key,"Description")
   $i = $i + 1 
   If $str = ("Xpressions-PhoneMail-Skript") Then
       Msgbox(0,"Hallo Welt","Dies ist der richtige Key")
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...