Jump to content











Photo
- - - - -

Script: Screensaver / Screenlock


  • Please log in to reply
29 replies to this topic

#1 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 26 October 2008 - 11:49 AM

[This script is probably only suitable for advanced users, because no documention, still beta etc ]

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 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 26 October 2008 - 09:11 PM

I'll take a look and get it working for you later today.

Regards,
Galapo.

#3 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 26 October 2008 - 11:41 PM

I just updated the script and added the autorun. Actually Screenlock.exe and Slock.exe is now copied to system32 (otherwise it didn't run properly with autorun). I also changed the default timeout from 1 to 10 minutes.

Cheers,
Dave

#4 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 05:46 AM

Hi Dave,

Please try the script here: http://galapo.boot-l...reenLock.script

Place it in the \tweaks\ folder.

Regards,
Galapo.

#5 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 27 October 2008 - 07:59 AM

Hi Galapo,

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 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 08:10 AM

Define %ProjectTemp% variable in your VistaPE project if it isn't already.

I've adjusted ScreenLock.au3 slightly and have recompiled, so automated download isn't possible.

Regards,
Galapo.

#7 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 27 October 2008 - 08:37 AM

Where would a user define it? I am pretty sure that an average user wouldn't know how to do it :-)

Wouldn't it be better to use "%BaseDir%\Temp" to make the script more portable?

Cheers,
Dave

#8 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 08:55 AM

I would have thought that such a variable should have been cross-project compatible by now. Suggest to VistaPE developers to add this standard variable to script.project.

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 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 27 October 2008 - 09:24 AM

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. If you use %BaseDir%\temp it would make our script also work for VistaPE. It would be only a small change :-) There already too many duplicated scripts (or scripts that are only in one project).

Cheers,
Dave

#10 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 10:19 AM

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.

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.

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 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 27 October 2008 - 10:56 AM

I agree, that would be the best. I actually thought you guys talk to each other to define some standards :-) I am new to Winbuilder, but I understand now that the projects are independent (unfortunately).

I will post a new version for vistape in the meantime.

Cheers,
Dave

#12 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 27 October 2008 - 06:06 PM

I posted a version that runs on VistaPE and LiveXP (see first post).

Cheers,
Dave

#13 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 07:55 PM

I dislike the use of '%BaseDir%\Temp'. Is there a vaiable in VistaPE which points there?

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 Dave7

Dave7

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 27 October 2008 - 09:20 PM

I only found this:

%TempFolder%=%basedir%\Temp\%ProjectName% (script.project)

Cheers,
Dave

#15 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 10:00 PM

Problem is that variable is VistaPE-specific. Looks like a wider discussion of this issue should be started.

Regards,
Galapo.

#16 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2008 - 10:31 PM

%TempFolder% is now a defined variable in LiveXP. Hopefully VistaPE will define some common variables used in nativeEx-based projects as per my suggestion here: http://www.boot-land...?showtopic=6095

Regards,
Galapo.

#17 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 November 2008 - 05:32 PM

hi

i tried ScreenLock.script at post4, i put password: asdf
but after lock, i couldnt unlock :>
am i missin sth :cheers: ?

#18 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

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 :cheers: ?


Yes, password "asdf" has been blacklisted, as being "too stupid a password to deserve living" :cheers: besides giving only 8 points in Scrabble, ("qwer" is MUCH better, 14 points)
http://www.asdf.com/whatisasdf.html
:cheers:


Sorry, but I really couldn't resist.....:cheers:

:cheers:

jaclaz

#19 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 November 2008 - 06:59 PM

ah jaclaz, my favorite test password is: asdf :cheers:,

oki i try another password: asdfasdfqwerqwer12341234
for test :cheers:

still i cannot unlock with Screenlock. :cheers:

#20 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 12 November 2008 - 08:05 PM

What is happening when you press F11 and then enter your password? The little password entry box appears? Then what?

Thanks,
Galapo.

#21 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 November 2008 - 08:15 PM

Thank you galapo :cheers: :cheers:
Maybe it is better to write in gui with a text boxt & bold, i missed description :cheers:

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 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 12 November 2008 - 08:19 PM

I think it's an alert to show you if someone has attempted to access your system. We'd have to code that out if we don't think it's needed, probably not too difficult as souce is provided in the script.

Regards,
Galapo.

#23 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 November 2008 - 08:24 PM

Galapo

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. :cheers:
just write password, and move your mouse a little.

#24 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 12 November 2008 - 11:49 PM

OK, I looked into the code. MsgBox is delected after 3 seconds, which I guess gives the appearance that it may be on a mouse-move which has done it.

I could change this if it is desirable: a longer delay, say?

Regards,
Galapo.

#25 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 November 2008 - 11:55 PM

Galapo:

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 :cheers: , lets make it 7 seconds.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users