Is this possible...

Discussion in 'Software' started by ArmyGroo, Jul 12, 2006.

  1. ArmyGroo

    ArmyGroo Private E-2

    I want to bind the [F6] key to the commands CTRL+ALT+DEL then K

    This would lock the computer with one key instead of the multiple keys needed with the first method. Just trying to simplify things for users.

    Thanks
     
  2. matt.chugg

    matt.chugg MajorGeek

    You can use the WIndows key + L to lock your computer

    (I know this works on XP not sure about earlier verisons)

    Matt
     
  3. ArmyGroo

    ArmyGroo Private E-2

    That is one step easier. Thanks!

    I would still like to know if it is possible to bind keys in windows to multiple key strokes. Anyone know if this is possible?
     
  4. matt.chugg

    matt.chugg MajorGeek

    Hi

    Perhaps instead you shouldn't think of it as keystroke but what the final program or function is that is run.

    In this case (Locking your workstation) it is using rundll.exe to run the function LockWorkstation in user32.dll

    Once you know this you can effectivly create a shortcut to this on your desktop or somewhere and bind a hotkey to it using windows.

    The exact command line you need for your shortcut is:

    Code:
    %windir%\System32\rundll32.exe user32.dll,LockWorkStation
    
    If you right click on the desktop you can create a short cut by going to new and then shortcut. for the location enter the above line. for the name enter anything.

    There should be a shorttcut on your desktop now. Double clicking it will lock your workstation. If you right click on it and select properties you will see you can assign a shortcut key to it.

    I know this will work on XP but I have no other OS to test it on. If anyone else wants to try it on an earlier OS and let me know i'd be greatfull.

    Matt
     
  5. ArmyGroo

    ArmyGroo Private E-2

    Nice,

    Thinking about it in that way is exactly what I needed to do.

    You rule!
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds