Script: Screensaver / Screenlock
#1
Posted 26 October 2008 - 11:49 AM
Hi all,
Here is a script that integrates Cworks Screenlock. The script runs on LiveXP and VistaPE.
[attachment=6627:ScreenLock.zip] "Script deleted, because of upload size exceeded. If you need the script, send me a message with your email address. I'll send you the script"
ScreenLock.exe is a program for configuring and using screen savers in XPE also has a locking feature that when enabled will disable the system untill the F11 key is pressed and correct password is entered. It is probably not 100% secure, but better than nothing at all :-) Should be run with Explorer as shell.
More information/history about Screenlock here: http://www.911cd.net...;hl=screensaver
Cheers,
Dave
#2
Posted 26 October 2008 - 09:11 PM
Regards,
Galapo.
#3
Posted 26 October 2008 - 11:41 PM
Cheers,
Dave
#4
Posted 27 October 2008 - 05:46 AM
Please try the script here: http://galapo.boot-l...reenLock.script
Place it in the \tweaks\ folder.
Regards,
Galapo.
#5
Posted 27 October 2008 - 07:59 AM
looks like you improved my script quite a bit. Unfortunately I could not test it, because of the following error:
Error - [ExtractFile %BaseDir%\Projects\VistaPE-Core\CUSTOM\ScreenLock.script GenPassword GenPassword.exe ProjectTemp%]
I am not sure whether you can include the code in your script (just in case you assume I did ask cworks already :-)
Cheers,
Dave
#6
Posted 27 October 2008 - 08:10 AM
I've adjusted ScreenLock.au3 slightly and have recompiled, so automated download isn't possible.
Regards,
Galapo.
#7
Posted 27 October 2008 - 08:37 AM
Wouldn't it be better to use "%BaseDir%\Temp" to make the script more portable?
Cheers,
Dave
#8
Posted 27 October 2008 - 08:55 AM
Is %GlobalTemp% defined? If so, you may add '%ProjectTemp%=%GlobalTemp%' to your script.project or define it to another path yourself.
Sorry, I know next to nothing about VistaPE.
Regards,
Galapo.
#9
Posted 27 October 2008 - 09:24 AM
Cheers,
Dave
#10
Posted 27 October 2008 - 10:19 AM
I agree, so I repeat that you make a request of the VistaPE developers to define the variable. It is useful and would aid cross-project compatibility. There are quite a number of scripts which use of the variable. Actually, some had it defined separately but this was removed a couple of weeks ago because it was thought that every project had this variable defined now.Galapo, the variables that you use are LiveXP specific. I think we can not expect from a user to define a variable. A script should work out of the box.
Note, though, that this variable is not LiveXP specific, but nativeEx and nativeEx-derivative specific. Since LiveXP has its roots in nativeEx, this variable, amongst other things, is carried across.
So I repeat that it would be useful if VistaPE defined this variable, maybe some others too.
Regards,
Galapo.
#11
Posted 27 October 2008 - 10:56 AM
I will post a new version for vistape in the meantime.
Cheers,
Dave
#12
Posted 27 October 2008 - 06:06 PM
Cheers,
Dave
#13
Posted 27 October 2008 - 07:55 PM
I would say that some projects are not independent, such as all the nativeEx-based ones. But then we also have the api which allows for cross-project portability of script -- but only so long as the project to which a particular script is being copied has necessary variables defined.
Regards,
Galapo.
#14
Posted 27 October 2008 - 09:20 PM
%TempFolder%=%basedir%\Temp\%ProjectName% (script.project)
Cheers,
Dave
#15
Posted 27 October 2008 - 10:00 PM
Regards,
Galapo.
#16
Posted 27 October 2008 - 10:31 PM
Regards,
Galapo.
#17
Posted 12 November 2008 - 05:32 PM
i tried ScreenLock.script at post4, i put password: asdf
but after lock, i couldnt unlock :>
am i missin sth ?
#18
Posted 12 November 2008 - 05:54 PM
hi
i tried ScreenLock.script at post4, i put password: asdf
but after lock, i couldnt unlock :>
am i missin sth ?
Yes, password "asdf" has been blacklisted, as being "too stupid a password to deserve living" besides giving only 8 points in Scrabble, ("qwer" is MUCH better, 14 points)
http://www.asdf.com/whatisasdf.html
Sorry, but I really couldn't resist.....
jaclaz
#19
Posted 12 November 2008 - 06:59 PM
oki i try another password: asdfasdfqwerqwer12341234
for test
still i cannot unlock with Screenlock.
#20
Posted 12 November 2008 - 08:05 PM
Thanks,
Galapo.
#21
Posted 12 November 2008 - 08:15 PM
Maybe it is better to write in gui with a text boxt & bold, i missed description
also i noticed another thing now,
if there are incorrect password attemps, a screen comes sayin:
"An incorrect password has entered xxx times"
(same screen comes when there is no incorrect pw attempts with xxx=0)
but screen goes out with a mouse move!!, i guess it is not it suppose to be, because there is "OK" button there.
#22
Posted 12 November 2008 - 08:19 PM
Regards,
Galapo.
#23
Posted 12 November 2008 - 08:24 PM
sorry i guess i couldnt describe
i like the idea to see someone attemps to access the system,
problem is, the informative screen comes and goes very quickly by a mouse move, without clicking OK.
i hope you understand when you make a trial.
just write password, and move your mouse a little.
#24
Posted 12 November 2008 - 11:49 PM
I could change this if it is desirable: a longer delay, say?
Regards,
Galapo.
#25
Posted 12 November 2008 - 11:55 PM
2 ideas:
1)
what about sth like penetwork?
"
An incorrect password has entered xxx times
(message will close after 10 seconds)
"
and we have two options, one we already have OK, maybe a second one that write "Dont close the message"
2)
or simply , lets make it 7 seconds.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users