Page 1 of 1
[03 Nov 2007] Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by Ferrule Media
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 03 Nov 2007 01:24:14 -0500
Hello
I have added a hollywood presentation into the wbstartup-drawer, so that it autostarts when the machine is turned on. However, because of security I would like to add some kind of protection, so that if people quits the presentation by pressing "esc" they will not be able to use the machine.
Do any of you know if this is possible using a 3rd-party application or other solution ? I would prefer if people were asked to write a password either to quit the presentation, or before the operationsystem is activated and is usable
Do any of you know if this is possible ?
Best regards
Torgeir
[02 Nov 2007] Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 2 Nov 2007 17:42:18 -0700 (PDT)
*You can disable both ESC and Ctrl-C for quitting your presentation.
*You can have the
StringRequest() function take care of your password issue (it even has a password option if you want the exact characters entered to be hidden).
[03 Nov 2007] Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by Elwood
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 03 Nov 2007 10:09:43 +0100
Hello,
Alternatively, you can close the WB so that nobody can touch the system, or reset the machine, and your presentation will run again.
[04 Nov 2007] Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by Elwood
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 04 Nov 2007 20:37:55 +0100
Hello,
Could you explain what you mean by closing the wb ? Is Hollywood able to close the workbench ?
I don't know. A program can do it easyly. If Hollywood can't do it, Andreas will make it for you in a few minutes
My project is aimed to be a commercial infochannel-product, and I need this extra security to keep people from snooping around in the computer. (I will own the machines, but I will lend them out to other people).
Understood.
Still, I need the ability to get access to workbench, so that the user may update the infochannel once in a while.
Hmm, maybe you could do the update through the Hollywood script directly. You probably can run an AmigaDOS script to get the update (maybe using Curl) and install it on disk. If you have several customers with systems to upgrade you will cut down your support costs like this.... Just an idea.
[04 Nov 2007] Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by Ferrule Media
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 04 Nov 2007 17:34:58 -0500
Hello Rev.
Thanks for the info
I'm making the infochannel using Hollywood Designer, and i'm not sure if hollywood Designer supports the function to disable ESC and Ctrl-C. Is this possible by modifying the hollywood script by hand ?
also - I looked up the StringRequest command in the hollywood Guide. But im not sure I understand how it works.. how is it possible to use this command to quit the hollywood presentation using a password ?
Lets say I wanted the password to be "test" - would it be possible to let the user press "esc" (or another key), to get up a requester promting the user to enter a password ? Once the user has entered "test" and pressed enter, the presentation quits into workbench. ?
Still, If I add a protection like this - would it be as simple as pressing "amgia+M" to multitask into the workbench ? Then I guess the user don't have to bother about the password at all ?
@ Philippe
Could you explain what you mean by closing the wb ? Is Hollywood able to close the workbench ?
My project is aimed to be a commercial infochannel-product, and I need this extra security to keep people from snooping around in the computer. (I will own the machines, but I will lend them out to other people).
Still, I need the ability to get access to workbench, so that the user may update the infochannel once in a while.
best regards Torgeir
[06 Nov 2007] Re: Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 6 Nov 2007 22:59:11 -0800 (PST)
**If you want to make sure that there can be no screen changing, have your presentation run in a fixed, boarderless, fullscreen window on the Workbench screen. The following preprocessor code should do the trick (just make sure you set the resolution to fill your screen):
Code: Select all
@DISPLAY {Mode="Windowed", Borderless=True,Fixed=True, Width=1024, Height=768}
;This is the code that you need to disable quiting your presentation:
EscapeQuit(FALSE)
CtrlCQuit(FALSE)
;The following code will cause the ESC key to work as a trigger for the password request:
Function p_EscFunc(msg)
Switch(msg.action)
Case "OnKeyDown":
If msg.key = "ESC"
Password$=StringRequest("Password", "To quit, enter your password.", "", #ALL, 0, TRUE)
If Password$="test"
End()
Else
SystemRequest("Oooops!", "I'm afraid that you entered the wrong password","Sorry")
EndIf
EndIf
EndSwitch
EndFunction
InstallEventHandler({OnKeyDown = p_EscFunc})
;You will want to end your code with something like this:
Repeat
WaitEvent
Forever
(If you are using Hollywood Designer, this last part is probably already going to be added automatically to the end of your script.)
I didn't test this code, but it should work.
Hope that helps,
[07 Nov 2007] Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by Ferrule Media
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 07 Nov 2007 20:17:22 -0500
Hello Paul and Philippe:)
Thank you very much for all help you have given me! Once again im impressed by the power of Hollywood, and the helpfullnes of its users!
best regards
Torgeir
[08 Nov 2007] RE: Re: Password protection?
Posted: Sat Jun 13, 2020 5:31 pm
by Juan Carlos
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 8 Nov 2007 11:31:37 +0100 (CET)
Hello Paul:
I'm Juan Carlos other Hollywood user, I have could see and test your code protection and I want to be grateful for you to have sent it, because for me it has been of help to discover the instruction StringRequest and like working with it, because I'm novice with Hollywood an also I have little time to programme.
Best regards and thanks, from your friend Juan Carlos.