Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2002
    Posts
    12

    Extracting Registry info from a txt file

    Hello there,

    I wonder if it's possible to extract information out of a mere txt file.
    How do I make my cd-browser read a text file and use the information to check my registry for certain entries?

    I bet there's a way to do that.

    Thanks!

    Mat

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Look in the Help file for actions that start with TextFile, String and Registry...

    There are plenty of actions to do what you want. The implementation is really up to you and the task at hand. Try getting in and fooling around with some of those actions and let us know where you get stuck.

  3. #3
    Join Date
    Oct 2002
    Posts
    12
    Well, at the moment I'm checking all registry information I need with a huge bunch of code within media studio. So, every time our customer changes a directory I have to open every project concerned and change the code and build. So, instead of doing that, there could be a txt file loaded with that code which can be changed easily.

  4. #4
    Join Date
    Jan 2000
    Posts
    2,002
    Shouldn't be a problem. Again, I can't really offer you more than that until you ask a specific question.

  5. #5
    Join Date
    Oct 2002
    Posts
    12
    Well, let's say there's a button that causes a mere dialog to pop up, like:

    result = Dialog.Message("Notice", "Your message here.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

    and I don't want this code to appear inside AutoPlay but inside a txt file located anywhere so it can be changed easily without touching AutoPlay. How do I get this read out?

  6. #6
    Join Date
    Jan 2000
    Posts
    2,002
    In that case I would use an INI file:

    [Messages]
    DialogTitle=Notice
    DialogText=Your message here.

    Then use the INI file actions to read the strings and use them in your code:

    strTitle = INIFile.GetValue("C:\\Temp\\MyIni.ini","Messages", "DialogTitle");
    strMessage = INIFile.GetValue("C:\\Temp\\MyIni.ini","Messages", "DialogText");

    Dialog.Message(strTitle,strMessage);

  7. #7
    Join Date
    Oct 2002
    Posts
    12
    Cool, that works fine! Thanks!

    Now I'll just have to make it read out the registry...
    Thanks for your help!

  8. #8
    Join Date
    Oct 2002
    Posts
    12
    Okay, another point: Is it possible to import all functions I set for a button from a txt or ini file (or whatever)? So all I got inside the OnClick Action field is a function that gets me all info out of a external file...

    Is that confusing? :confused:

  9. #9
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    Hi,

    take a look at the help file and go to
    Scripting guide / Other Built in Functions

    maybe the "dofile" action does what you want.

    Stefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts