Jump to content
Sign in to follow this  
Guest Mike99

Demo version help

Recommended Posts

Guest Mike99

Hi All.

Anyone have a sample script or sample code that stores a value (registry ?) so that the program only works for a specific amount of time??

For example, the program only works for 14 days and then they would have to purchase a registered version?

It doesn't have to be complex but I'd like any examples of any copy protection anyone has done.

Thanks. You all have been great!

Share this post


Link to post
Share on other sites

Hi All.

Anyone have a sample script or sample code that stores a value (registry ?) so that the program only works for a specific amount of time??

For example, the program only works for 14 days and then they would have to purchase a registered version?

It doesn't have to be complex but I'd like any examples of any copy protection anyone has done.

Thanks. You all have been great!

<{POST_SNAPBACK}>

Huhu :) i think use the autoit3 exampel and mody it for you look on the exampel folder on your autoit3 install he have great exampel :lmao:

I hoep this exampel from his folder help you out o:)

;
; AutoIt Version: 3.0
; Language:    English
; Platform:    Win9x/NT
; Author:        Jonathan Bennett (jon@hiddensoft.com)
;
; Script Function:
;   Demonstrates the InputBox, looping and the use of @error.
;


; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "AutoIt Example (English Only)", "This script will open an input box and get you to type in some text.  Run?")


; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "No" was clicked (7) then exit the script
If $answer = 7 Then
    MsgBox(4096, "AutoIt", "OK.  Bye!")
    Exit
EndIf

; Loop around until the user gives a valid "autoit" answer
$bLoop = 1
While $bLoop = 1
    $text = InputBox("AutoIt Example", "Please type in the word ""autoit"" and click OK")
    If @error = 1 Then
        MsgBox(4096, "Error", "You pressed 'Cancel' - try again!")
    Else
       ; They clicked OK, but did they type the right thing?
        If $text <> "autoit" Then
            MsgBox(4096, "Error", "You typed in the wrong thing - try again!")
        Else
            $bLoop = 0   ; Exit the loop - ExitLoop would have been an alternative too :)
        EndIf
    EndIf
WEnd

; Print the success message
MsgBox(4096,"AutoIt Example", "You typed in the correct word!  Congrats.")

; Finished!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...