NegativeNrG Posted March 23, 2006 Posted March 23, 2006 (edited) the file i want to hide isnt and ini its a file that contains a key that the program reads to be sure that the computer is authorized to use the progyou should use an ini file for that solution. Example of an INI file: [Password] <<<----This is what you call a 'Section', surrounded by '[' and ']' mykey=myvalue <<<----mykey is your 'KEY' name, and myvalue is the value that is set to 'mykey' So you can use: if INIRead('myini.ini','Password','mykey','not found') = 'mypassword' Then ;stuff here... Else Msgbox(0,'Error!','You are not authorized to use this program.') Endif Edited March 23, 2006 by NegativeNrG [size=20]My File Upload[/size]Register at my site and upload.
Nuffilein805 Posted March 23, 2006 Posted March 23, 2006 how bout storing the pw in the registry on first run? maybe check the drivegetserial() or do something else to secure your file a bit filesetattrib ("your file", "+SH") so its harder to find i love this thread - haven't had such a good laugh for a while my little chatmy little encryption toolmy little hidermy unsafe clickbot
jacky_ckw Posted March 23, 2006 Posted March 23, 2006 sorry i cant help but to laugh i do agree that you should do more reading and understanding of how ini works. maybe you can check your computer and look for this file C:\boot.ini (not for Win98 or ME) its some configurations Windows used when booting up. New to script...But getting the hang of it.
CyberSlug Posted March 23, 2006 Posted March 23, 2006 I wonder which idea could be more dangerous: Mentioning the registry or mentioning boot.ini .... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Valik Posted March 23, 2006 Posted March 23, 2006 I wonder which idea could be more dangerous: Mentioning the registry or mentioning boot.ini ....When I read "boot.ini" I admit that the thought of the OP messing with it was slightly amusing.
jacky_ckw Posted March 24, 2006 Posted March 24, 2006 I wonder which idea could be more dangerous: Mentioning the registry or mentioning boot.ini ....equally dangerous, haha!well, sometimes you just need to explore a little more to learn. New to script...But getting the hang of it.
nitekram Posted March 24, 2006 Posted March 24, 2006 equally dangerous, haha!well, sometimes you just need to explore a little more to learn. I swear I learned more by breaking things than by anything else - when it comes to computers. You could always do a search on the internet - the one you are using to post with and do a search for *.ini or ini extension and I am sure that you will find all you are looking for. I would suggest not changing anything related to a computer without first making a backup - that will be in the help section of windows. 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
Nuffilein805 Posted March 24, 2006 Posted March 24, 2006 ok just backup your boot.ini to boot2.ini and delete boot.ini afterwards - this will be great fun (this is not as safe as it should be, but just have a try if you want to learn what the boot.ini does ) ok, don't do it! my little chatmy little encryption toolmy little hidermy unsafe clickbot
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now