Source language: Translate to:

help : exit button with password

General questions about NeoBook

Moderator: Neosoft Support

help : exit button with password

Postby shariya » Sun May 07, 2017 1:36 am

Dear friends,

i need to make a kiosk program, that prevent a user to exit my program with out my permission.

what is can do is a simple exit button with confirmation like this,

1.i made a button

2.on left click i insert a code

Exit "Exit" "Do You Really Want to Quit?"

but i need a password protection before exit, anybody help :-(
shariya
 
Posts: 6
Joined: Fri Nov 16, 2007 4:22 am

Re: help : exit button with password

Postby Gaev » Sun May 07, 2017 5:56 am

Shariya:

From the Help file for InputBox ...
Code: Select all
InputBox "Welcome" "Enter your access code" "[ExitCode]"
If "[ExitCode]" "=" "JB5276H"
  GotoPage "Start"
Else
  AlertBox "Sorry" "That’s not a valid access code."
  Exit "" ""
EndIf

For your requirement, you can use Button code like ...
Code: Select all
InputBox "Exit Request" "Enter your Exit code" "[ExitCode]"
If "[ExitCode]" "!=" "JB5276H"
  AlertBox "Sorry" "That’s not a valid Exit code."
Else
  Exit "" ""
EndIf
User avatar
Gaev
 
Posts: 3728
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: help : exit button with password

Postby StarterPack » Sun May 07, 2017 7:39 am

What Gaev suggested works fine, but there is a possibility that they can close the app with Task Manager.

Goto Book\Book Properties\Security and click checkbox "Require password to exit publication" Enter your desired password there
StarterPack
 
Posts: 115
Joined: Fri Feb 19, 2016 6:55 am

Re: help : exit button with password

Postby shariya » Thu May 18, 2017 9:01 pm

thank you so much
shariya
 
Posts: 6
Joined: Fri Nov 16, 2007 4:22 am


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest