xl0ap Posted March 20, 2007 Posted March 20, 2007 Hi all I have Windows XP installed ... and a server modification from microsoft .. so everytime if i want to work with my computer i must press CTRL- ALT - DEL and enter my password ... but in the background .. all programms are working ( so its possible that the computer is locked but it is still downloading in the background ) thats why: is it possible to run a script in the background which sends automatically CTRL-ALT-DEL ? If yes which is the command for CTRL-ALT-DEL ?? If no is there maybe another solution? THX ( really )
therks Posted March 20, 2007 Posted March 20, 2007 Nope. There may be another solution, but you can't send Ctrl+Alt+Del, says so right in the help for Send().Windows does not allow the simulation of the "CTRL-ALT-DEL" combination! My AutoIt Stuff | My Github
xl0ap Posted March 20, 2007 Author Posted March 20, 2007 Nope. There may be another solution, but you can't send Ctrl+Alt+Del, says so right in the help for Send().argh ... and there is no other way how i could send the buttons CTRL ALT DEL ? I mean i dont need the TASK Manager or somethike like that ... just this combination ... ??thx
seandisanti Posted March 20, 2007 Posted March 20, 2007 argh ... and there is no other way how i could send the buttons CTRL ALT DEL ? I mean i dont need the TASK Manager or somethike like that ... just this combination ... ??thxyou could edit your settings so that it doesn't auto lock...
jvanegmond Posted March 20, 2007 Posted March 20, 2007 argh ... and there is no other way how i could send the buttons CTRL ALT DEL ? I mean i dont need the TASK Manager or somethike like that ... just this combination ... ??thxNo, windows is locked up tight. This is impossible. github.com/jvanegmond
seandisanti Posted March 20, 2007 Posted March 20, 2007 No, windows is locked up tight. This is impossible.is this a work computer that you're not allowed to change things on?
xl0ap Posted March 20, 2007 Author Posted March 20, 2007 you could edit your settings so that it doesn't auto lock...hmm how could i do that? yes its a workstation but fortunately i have administrator rights :-) so i can change things in registry and system etc. thx for your help
dinodod Posted March 21, 2007 Posted March 21, 2007 So how does Dameware and SMS (System management Server) do it? They are able to simulate the ctrl-alt-del sequence. This sounds like a fun project... Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007
xl0ap Posted March 21, 2007 Author Posted March 21, 2007 but probably there is a way to disable in windows this locking thing ... otherwise i dont know how to simulate CTRL-ALT-DELETE
dinodod Posted March 22, 2007 Posted March 22, 2007 but probably there is a way to disable in windows this locking thing ... otherwise i dont know how to simulate CTRL-ALT-DELETETry toying around with SENDKEYS command in autoit. Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007
Xenobiologist Posted March 22, 2007 Posted March 22, 2007 Hi, maybe you can block the pc with another script, so you needn't windows doing that. expandcollapse popup#include <GuiConstants.au3> #include <File.au3> #include <misc.au3> #notrayicon $version = "2.0" Opt("WinTitleMatchMode", 4) Global $blockingKey = "111" Global $codeGiven = False, $inputCode, $splash = 0 code() HotKeySet("!{TAB}", "doNothing") HotKeySet("{TAB}", "doNothing") HotKeySet("{ESC}", "doNothing") HotKeySet("{F9}", "code") HotKeySet("!^{F9}", "OnAutoItExit") ; STRG+ALT+F9 Sofort-Exit $safeGUI = GUICreate('') GUISetState($WS_EX_TRANSPARENT, $safeGUI) $blockGUI = GUICreate(" *Mega*", @DesktopWidth, @DesktopHeight, -1, -1, -1, -1, $safeGUI) GUISetState() WinMinimizeAll() WinSetTrans(" *Mega*", "", 1) $dll = DllOpen("user32.dll") WinSetOnTop(" *Mega*", "", 1) ; The scriptyou want to run $startPath = "c:\Downloads\AutoIt-Skripte\Entwicklung\ForumTests\MegaBlock\NotePadTut.exe" While 1 For $i = 1 To 91 If _IsPressed($i, $dll) Or _IsPressed("0D", $dll) Then doNothing() EndIf ToolTip("Protected by, *Mega* v" & $version & " | " & @HOUR & ":" & @MIN & ":" & @SEC, 5, 5) Next _MouseTrap(95, 18, 140, 22) WinSetOnTop(" *Mega*", "", 1) Sleep(1) ; save CPU WEnd Func code() $inputCode = InputBox(" *Mega*", "The code please: ", "", "*10", 150, 120, 50, 50, 10) If $codeGiven = False Then If $inputCode = $blockingKey Then secure() $codeGiven = True Return Else MsgBox(64, " *Mega*", "Wrong code for blocking!", 3) Exit EndIf Else If $inputCode = $blockingKey Then DllClose($dll) SplashOff() MsgBox(64, "Info - Administrator", "This PC has been unlocked!" & @LF & @LF & _ "Tel.: XXXX" & @LF & _ "Email: Mega@xxx.com" & @LF & _ @LF & _ "Mega", 3) _MouseTrap() Sleep(2000) Exit Else WinSetOnTop(" *Mega*", "", 1) Return EndIf EndIf EndFunc ;==>code Func secure() WinMinimizeAll() ;Hide Taskbar DllCall("WinLockDll.dll", "Int", "Taskbar_Show_Hide", "Int", "0") ;Disable CrtlAltDel $splash = SplashTextOn("", "Administrator : This PC is locked!" & @LF & @LF & _ "Tel.: XXXX" & @LF & @LF & _ "Email: Mega@xxx.com" & @LF & _ @LF & @LF & _ "Mega", _ 550, @DesktopHeight / 2, 1, 500, 1, 5, 16, 600) DllCall("WinLockDll.dll", "Int", "CtrlAltDel_Enable_Disable", "Int", "0") DllCall("WinLockDll.dll", "Int", "Desktop_Show_Hide", "Int", "0") EndFunc ;==>secure ;DllCall("WinLockDll.dll", "Int", "Process_Desktop", "str", "MyDesktop2", "str", "cmd.exe") Func OnAutoItExit() WinMinimizeAllUndo() _MouseTrap() DllCall("WinLockDll.dll", "Int", "Desktop_Show_Hide", "Int", "1") DllCall("WinLockDll.dll", "Int", "CtrlAltDel_Enable_Disable", "Int", "1") DllCall("WinLockDll.dll", "Int", "Taskbar_Show_Hide", "Int", "1") SplashOff() Exit (0) EndFunc ;==>OnAutoItExit Func doNothing() _MouseTrap(95, 18, 140, 22) WinSetState("Windows Task-Manager", "", @SW_HIDE) WinSetOnTop(" *Mega*", "", 1) EndFunc ;==>doNothing So long, Mega P.S.: Just a quick start ... Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
bobneumann Posted September 12, 2007 Posted September 12, 2007 http://www.autoitscript.com/forum/index.php?showtopic=53154
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now