Page 1 of 1

help : exit button with password

PostPosted: Sun May 07, 2017 1:36 am
by shariya
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 :-(

Re: help : exit button with password

PostPosted: Sun May 07, 2017 5:56 am
by Gaev
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

Re: help : exit button with password

PostPosted: Sun May 07, 2017 7:39 am
by StarterPack
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

Re: help : exit button with password

PostPosted: Thu May 18, 2017 9:01 pm
by shariya
thank you so much