Jump to content

Recommended Posts

Posted (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 prog

you 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 by NegativeNrG

[size=20]My File Upload[/size]Register at my site and upload.

Posted

sorry i cant help but to laugh :mellow:

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.

Posted

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.
Posted

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.

Posted

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.

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."

 

WindowsError.gif

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

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
×
×
  • Create New...