mikajake Posted July 21, 2009 Posted July 21, 2009 Is it possible to add a time trial feature to a standalone app that I have generated? Mika
efen Posted July 21, 2009 Posted July 21, 2009 You could use a basic script to be run at start up. pseudo code for a time limit of 30 days could be: Allow User Abort [Off] If IsEmpty[gExpired] Set Field ["gExpired, Get[CurrentDate] + 30 End if If gLastOpened > Get [CurrentDate] Show dialog "System date has been changed" Close file End if Set Field gLastOpened; Get [CurrentDate] If Get [Account name] does not equal "Admin" and Get[CurrentDate] > gExpired Show dialog "The time limit has expired, and the file will close" Close file End if Fields used - all global date fields: The file will close if the system date has been changed or if it is not opened by the admin account after the date that was set in the date field gExpired. Make sure that this gExpired field is empty before the file is used. This is just a start - it can be improved to stop hacking attempts.
Recommended Posts
This topic is 5602 days old. Please don't post here. Open a new topic instead.
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