iHonda Posted March 26, 2006 Share Posted March 26, 2006 ok ive made me a script yes its another 1 of my noob scripts but thats not wut im here for i would like to know if its possible to make like keyfile for a program so that the program wont run unless the keyfile is there. kind of like games that need a cdkey or something A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 26, 2006 Share Posted March 26, 2006 ok ive made me a script yes its another 1 of my noob scripts but thats not wut im here for i would like to know if its possible to make like keyfile for a program so that the program wont run unless the keyfile is there. kind of like games that need a cdkey or somethingHI,maybe have a look at. http://www.autoitscript.com/forum/index.ph...=23282&hl=trialSo long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
cppman Posted March 26, 2006 Share Posted March 26, 2006 (edited) something like this: Func _CheckKeyFile() $F = FileOpen("keyfile", 0) $Key = FileRead($F) If $Key = "YourKeyHere" Then _MainSoftwareCode() Else MsgBox(0, "Error", "You do not have a proper key!") EndIf EndFunc or their are ways to 'hide it' in the registry, like in the link that th.meger posted above... Edited March 26, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
NegativeNrG Posted March 26, 2006 Share Posted March 26, 2006 $checkauth = Inputbox('Enter Key','Enter Your Key to unlock this program') if $checkauth <> 'password' Then Msgbox(0,'Error!','Wrong Password Entered') Exit Endif Try That. [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
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