Results 1 to 5 of 5

Thread: Registry writing

  1. #1
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Registry writing

    Soo... I have heard that the savesetting function in SCAR writes a string to a section of the registry. I am worried that the strings I write to the registry will be deleted by anti-virus apps. They look for stuff in the registry that was written by unregistered apps, and deletes that entry. I don't have the energy to recreate the SaveSettings procedure in Misc>PlayerForm that writes a .txt file to the SCAR 3.11 folder, and can read it and retrieve the data with LoadSettings.... I just want to know if my entries from savesetting will be deleted, and if they will be... then It'll take a helluva lot of time (for me) to learn and recreate the SRL functions for my script...

    Wow, lotta writing
    Btw, whats the code for a TEdit box that makes the viewable text ***** instead of your password?
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

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

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Savesetting works fine with every antivirus I've used.

    Edit1.PasswordChar, I think.
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Smartzkid View Post
    Savesetting works fine with every antivirus I've used.

    Edit1.PasswordChar, I think.
    same with me.. i have McAfee if you have heard of it.. and ive been playing with play and load setting.. and i havent had a problem

  4. #4
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I find INIs less intrusive than Registry entries. They can also be written to and read from very easily.

    SCAR Code:
    program New;

    var
      TempUser, TempPass: String;

    begin
      WriteINI('Player1', 'Username', 'John3825', 'C:\Players.ini');
      WriteINI('Player1', 'Password', 'mypassrocks', 'C:\Players.ini');
      WriteINI('Player2', 'Username', 'Bobby95', 'C:\Players.ini');
      WriteINI('Player2', 'Password', 'hispassrocks', 'C:\Players.ini');
      ClearDebug;
      TempUser := ReadINI('Player1', 'Username', 'C:\Players.ini');
      TempPass := ReadINI('Player1', 'Password', 'C:\Players.ini');
      Writeln(TempUser + ' - ' + TempPass);
      TempUser := ReadINI('Player2', 'Username', 'C:\Players.ini');
      TempPass := ReadINI('Player2', 'Password', 'C:\Players.ini');
      Writeln(TempUser + ' - ' + TempPass);
    end.

  5. #5
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, thanks you guys all answered my questions, and I really appreciate it! I'm gonna use .ini's and stuff.

    BTW, I cant find a function called WriteINI. I think its writefileint or string or byte depending on what you want to write.

    EDIT: Nvm, I think I understand the SRL functions and I'm gonna re-write it to fit my script.

    EDIT2: I am actualy gonna use savesetting. Writing to a .ini took a long time and I keep getting out of range XD
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PC Optimiser: Registry Cleaner / Fixer - Any Good?
    By Mafishioso in forum News and General
    Replies: 2
    Last Post: 02-25-2009, 09:54 PM
  2. The Writing Game!
    By Tniffoc in forum NOTA
    Replies: 10
    Last Post: 02-06-2009, 11:54 PM
  3. Replies: 2
    Last Post: 09-24-2008, 01:45 PM
  4. File Writing
    By Metagen in forum OSR Help
    Replies: 7
    Last Post: 08-04-2008, 05:47 PM
  5. Do you like writing?
    By lakerzz8 in forum Discussions & Debates
    Replies: 3
    Last Post: 02-24-2008, 08:23 PM

Posting Permissions

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