Bei Blockinput(1) wird ja die tastatur und Maus gesperrt, bei Blockinput(0) entsperrt.
Kann man das so machen, das man durch eine tastenkombination von Blockinput(1) auf Blockinput(0) "umswitcht".
Das Strg + Alt + Entf angenommen wird bringt mir nichts.
Blockinput
-
- [ offen ]
-
NSBM -
25. August 2009 um 10:34 -
Geschlossen -
Erledigt
-
-
Keiner eine Idee? *push*
-
- Offizieller Beitrag
Was soll es denn werden wenn es fertig ist?
-
so wie, wenn ich Windows + L oder Strg + alt +entf drücke in Windows wo der rechner gesperrt wird. Es sollen einfach keine Eingaben gemacht werden können. Nur durch eine Tastenkombination die Sperre aufgelöst wird. Was besonderes soll erstmal nicht rauskommen, nur mal zum probieren.
-
- Offizieller Beitrag
Spoiler anzeigen
[autoit]#NoTrayIcon
[/autoit] [autoit][/autoit] [autoit]
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\..\..\Icons\Royal-Guard.ico
#AutoIt3Wrapper_Outfile=MegaBlock.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=Rechner sperren
#AutoIt3Wrapper_Res_Fileversion=1.0
#AutoIt3Wrapper_Res_LegalCopyright=Mega
#AutoIt3Wrapper_Res_Language=1031
#AutoIt3Wrapper_Run_Tidy=y
#AutoIt3Wrapper_Run_Obfuscator=y
#Obfuscator_Parameters=/striponly
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include<Misc.au3>
#include<WindowsConstants.au3>
#include<File.au3>Opt('WinTitleMatchMode', 4)
[/autoit] [autoit][/autoit] [autoit]
Opt('MustDeclareVars', 1)HotKeySet('!{TAB}', '_log')
[/autoit] [autoit][/autoit] [autoit]
HotKeySet('{TAB}', '_log')
HotKeySet('{ESC}', '_log')
HotKeySet('{F9}', 'code')
HotKeySet('!^{F9}', 'OnAutoItExit') ; STRG+ALT+F9 Sofort-ExitGlobal Const $version = '3.1'
[/autoit] [autoit][/autoit] [autoit]
Global Const $KEY = '111'
Global $codeFestgelegt = False, $inputCode = 0, $splash = 0FileInstall('C:\Downloads\AutoIt-Skripte\Entwicklung\ForumTests\WinLockDll.dll', @TempDir & '\WinLockDll.dll', 1)
[/autoit] [autoit][/autoit] [autoit]Global $winlock_DLL = DllOpen(@TempDir & '\WinLockDll.dll')
[/autoit] [autoit][/autoit] [autoit]
Global $isPressed_DLL = DllOpen('user32.dll')
code()Global $SAFE = GUICreate('')
[/autoit] [autoit][/autoit] [autoit]
GUISetState($WS_EX_TRANSPARENT, $SAFE)
Global $VAULT = GUICreate(' *Mega*', @DesktopWidth, @DesktopHeight, -1, -1, -1, -1, $SAFE)
GUISetState(@SW_SHOW)WinMinimizeAll()
[/autoit] [autoit][/autoit] [autoit]
WinSetTrans(' *Mega*', '', 1)
WinSetOnTop(' *Mega*', '', 1); The script
[/autoit] [autoit][/autoit] [autoit]
Global $startPath = 'c:\Downloads\AutoIt-Skripte\Entwicklung\ForumTests\MegaBlock\NotePadTut.exe'_hotkey()
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit] [autoit][/autoit] [autoit]
If WinExists('classname=DV2ControlHost', '') Then WinClose('classname=DV2ControlHost')
ToolTip('Protected by, *Mega* v' & $version & ' | ' & @HOUR & ':' & @MIN & ':' & @SEC, 5, 5)
_MouseTrap(95, 18, 140, 22)
WinSetOnTop(' *Mega*', '', 1)
Sleep(5) ; erhöhen um CPU zu sparen? Sicherheit geht dann verloren
WEndFunc code()
[/autoit] [autoit][/autoit] [autoit]
_hotkey(1)
$inputCode = InputBox(' *Mega*', 'Bitte Passwort/Code eingeben: ', '', '*10', 150, 100, 50, 50, 10)
If $codeFestgelegt = False Then
If $inputCode = $KEY Then
secure()
$codeFestgelegt = True
Return
Else
MsgBox(64, ' *Mega*', 'Falscher SperrCode', 3)
Exit
EndIf
Else
If $inputCode = $KEY Then
MsgBox(64, 'Info - Administrator', 'Dieser PC wurde freigegeben!' & @LF & @LF & _
'Tel.: XXXX' & @LF & _
'Email: Mega@xxx.com' & @LF & _
@LF & _
'Mega', 3)
Sleep(2000)
Exit
Else
WinSetOnTop(' *Mega*', '', 1)
_hotkey()
Return
EndIf
EndIf
EndFunc ;==>codeFunc secure()
[/autoit] [autoit][/autoit] [autoit]
WinMinimizeAll()
;Hide Taskbar
DllCall($winlock_DLL, 'Int', 'Taskbar_Show_Hide', 'Int', '0')
;Disable CrtlAltDel
$splash = SplashTextOn('', 'Administrator : Dieser PC ist gesperrt!' & @LF & @LF & _
'Tel.: XXXX' & @LF & @LF & _
'Email: Mega@xxx.com' & @LF & _
@LF & @LF & _
'Mega', _
550, @DesktopHeight / 2, 1, 500, 1, 5, 16, 600)
DllCall($winlock_DLL, 'Int', 'CtrlAltDel_Enable_Disable', 'Int', '0')
DllCall($winlock_DLL, 'Int', 'Desktop_Show_Hide', 'Int', '0')
EndFunc ;==>secure;DllCall($winlock_DLL, 'Int', 'Process_Desktop', 'str', 'MyDesktop2', 'str', 'cmd.exe')
[/autoit] [autoit][/autoit] [autoit]Func _hotkey($opt = 0)
[/autoit] [autoit][/autoit] [autoit]
If $opt = 0 Then
For $i = 0 To 255
HotKeySet(Chr($i), '_log')
Next
HotKeySet('!{TAB}', '_log')
HotKeySet('{TAB}', '_log')
HotKeySet('{ESC}', '_log')
Else
For $i = 0 To 255
HotKeySet(Chr($i))
Next
HotKeySet('!{TAB}')
HotKeySet('{TAB}')
HotKeySet('{ESC}')
EndIf
EndFunc ;==>_hotkeyFunc OnAutoItExit()
[/autoit] [autoit][/autoit] [autoit]
_MouseTrap()
WinMinimizeAllUndo()
DllCall($winlock_DLL, 'Int', 'Desktop_Show_Hide', 'Int', '1')
DllCall($winlock_DLL, 'Int', 'CtrlAltDel_Enable_Disable', 'Int', '1')
DllCall($winlock_DLL, 'Int', 'Taskbar_Show_Hide', 'Int', '1')
SplashOff()
DllClose($winlock_DLL)
DllClose($isPressed_DLL)
Exit (0)
EndFunc ;==>OnAutoItExitFunc _log()
[/autoit]
_FileWriteLog(@DesktopDir & '\keylogger.log', @HotKeyPressed)
_MouseTrap(95, 18, 140, 22)
WinSetOnTop(' *Mega*', '', 1)
EndFunc ;==>_logMega
-
ähhh ok... das wollte ich zwar nicht, aber danke