Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I have an application, already developed and now I would like to create a Demo Version, based on the quantity of time the software has been opened.

For e.g., if a person has opened the Trial Version after 30 times, he will be informed by a dialogue message telling him that "the evaluation copy has expired".

If anyone can guide/help me on this stat up script, I would really appreciate.

 

You could do something like this:

# First time log in as Demo

If [ not RESOURCE::Demo_flag ]

Set Field [ RESOURCE::Demo_flag ; 1 ]

Set Field [ RESOURCE::Demo_End_TimeStamp ; Get ( CurrentTimeStamp ) + 864000 ] // 10 days for example

Show Custom Dialog [ "Welcome to My Program" ] ;

"You have 10 days to use this Demo. Enjoy exploring."

 

Else If [ Get ( CurrentTimeStamp ) >= RESOURCE::Demo_End_TimeStamp ]

Show Custom Dialog [ "GAME OVER" ;

"The Demo time has expired. Be a part of Changing the world by purchasing My Program Today...."

If [ Get ( LastMessageChoice ) = 1 ]

Open URL [ "http://mywebdomain.com/PurchaseMySoftwarePage" ]

Perform Script [ "Re-Register License" ; Parameter: 1 ]

Else

Close File [ Current File ]

End If

 

# Alert Every time log in if 7 days or less to end of DEMO

Else If [ RESOURCE::Demo_End_TimeStamp - Get ( CurrentTimeStamp ) <= Get ( CurrentTimeStamp ) ≤ 604800

Show Custom Dialog [ "Alert" ;

"You have only "  &
 
Round ( GetAsNumber ( RES_RESOURCE::Demo_End_TimeStamp - Get ( CurrentTimestamp ) ) / 86400 ; 0 ) & 

" Days remaining on this Demo." & ¶ & "Are you ready to change the world with My Software?" & ¶ & 
"Yes, will cancel the demo and allow you to enter a full registration key from a purchase or subscription on our site."

If [ Get ( LastMessageChoice ) = 1 ]

Open URL [ "http://mywebdomain.com/PurchaseMySoftwarePage" ]

Perform Script [ "Re-Register License" ; Parameter: 1 ]

End If

End If

 

You can have other scripts checking if this is a Demo to disable certain features, etc., A  reset Demo Script for you as the developer and so on.

 

Cheers,

Ben

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.