Jump to content
Sign in to follow this  
NexTerren

Lock Computer using DellDirect Button

Recommended Posts

NexTerren

There's a small button on my laptop, that looks like a house. As it turns out this is the DellDirect media center button. Using Autoit, I followed a quick tutorial that showed how to make the button bring up any program (it involved a very simple one-lined RUN code, and then putting this code where the DellDirect program was with the same file name), and it works fine.

However, I was wanting to change the script so it locked the computer--in the same way that the Vista start menu "lock" does; sending you to the home screen, requesting that you pick your username/password without powering the laptop down, or sending it into hibernation.

Does anyone know what script I'd replace my current code with to do this?

Thanks!

Share this post


Link to post
Share on other sites
Andreik

There's a small button on my laptop, that looks like a house. As it turns out this is the DellDirect media center button. Using Autoit, I followed a quick tutorial that showed how to make the button bring up any program (it involved a very simple one-lined RUN code, and then putting this code where the DellDirect program was with the same file name), and it works fine.

However, I was wanting to change the script so it locked the computer--in the same way that the Vista start menu "lock" does; sending you to the home screen, requesting that you pick your username/password without powering the laptop down, or sending it into hibernation.

Does anyone know what script I'd replace my current code with to do this?

Thanks!

Look here


When the words fail... music speaks

Share this post


Link to post
Share on other sites
NexTerren

Alright, thanks for that code.

However is there a way to use the Window's locked screen?

Share this post


Link to post
Share on other sites
ProgAndy

This needs just one DLL call :)

DllCall("user32.dll","dword","LockWorkStation")

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.