Jump to content

Recommended Posts

Posted

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!

Posted

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

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...