Jump to content
Sign in to follow this  
vladedoty

how do i make 2 day trial version of my script

Recommended Posts

vladedoty

first of all i want to tell everyone that the support here is amazing

all of u who have put in your help have helped me immensely!!!

I was just wondering what would be the best way to make my autoit script into a trial version of like 2 days?

Is it a simple code I just put into the beginning of the script or is it more complicated than this?

Share this post


Link to post
Share on other sites
vladedoty

Here. Search.

I thought this only worked with online scripts

what if the script is used not online?

would this still work?

Share this post


Link to post
Share on other sites
mdwerne

It's not my code, but I found this:

#include<date.au3>
#include<string.au3>
 
If RegRead("HKCU\Software\Microsoft\Windows\Current Version", "XPClean Menu") = "" Then
    RegWrite("HKCU\Software\Microsoft\Windows\Current Version", "XPClean Menu", "REG_SZ", _StringEncrypt(1, _NowCalc(), @ComputerName))
    SetError(0)
EndIf
$startdate = _StringEncrypt(0, RegRead("HKCU\Software\Microsoft\Windows\Current Version", "XPClean Menu"), @ComputerName)
 
If _DateDiff("D", $startdate, _NowCalc()) > 30 Then
    MsgBox(0, "*XPClean Menu*", "You're registration period has expired.")
    Exit
EndIf

Here: http://quadryders.com/phpcc/snippet.php?sid=3

which may help get you started.

-Mike

Share this post


Link to post
Share on other sites
vladedoty

It's not my code, but I found this:

#include<date.au3>
#include<string.au3>
 
If RegRead("HKCU\Software\Microsoft\Windows\Current Version", "XPClean Menu") = "" Then
    RegWrite("HKCU\Software\Microsoft\Windows\Current Version", "XPClean Menu", "REG_SZ", _StringEncrypt(1, _NowCalc(), @ComputerName))
    SetError(0)
EndIf
$startdate = _StringEncrypt(0, RegRead("HKCU\Software\Microsoft\Windows\Current Version", "XPClean Menu"), @ComputerName)
 
If _DateDiff("D", $startdate, _NowCalc()) > 30 Then
    MsgBox(0, "*XPClean Menu*", "You're registration period has expired.")
    Exit
EndIf

Here: http://quadryders.com/phpcc/snippet.php?sid=3

which may help get you started.

-Mike

sorry but will this only work for xp or will it work for vista as well?

Share this post


Link to post
Share on other sites
qazwsx

I thought this only worked with online scripts

what if the script is used not online?

would this still work?

What do you mean online scripts? Scripts that can connect to the internet? I think anything not requiring internet access could easily be bypassed.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.