datkewlguy Posted January 15, 2005 Share Posted January 15, 2005 Okay i'll start from the begininning. My friends and i were trying to make a program that ads extra security to windows by having a user validation program run instead of the windows log on screensaver which runs whether you're logged on or not. Since windows banned exes from being replaced with the logon.scr file in the registry key, we replaced that with a batch file that ran the exe file for us. Pefect! ran like we wanted and the exe ran before any users were logged on. However, the program runs under the SYSTEM name and therefore hotkeys are disabled. I'm trying to figure out what process service or whatever causes the user hotkeys to work. If any of you have signed on the system account before, you'll that none of the natural hotkeys work anyway (such as alt + ctrl + delete). Just to double check myself however i told system to run explorer.exe first... No good... Anyway, i was comparing the processes but didn't find anything. SO! in conclusion, what does auto it/windows use to identify hotkeys of all sorts. I'm not sure if this is the right place for this question so please do not flame me for this since i am new but learning quickly. Is this even possible? Any help would be greatly appreciated, I've been working on this for a while but haven't had any break throughs. Thanks, Trey Link to comment Share on other sites More sharing options...
blakel Posted January 15, 2005 Share Posted January 15, 2005 there is an api for this to register them with the os (kernel explorer.exe ?). its been a while since i tried registering a hot key. the last time ended up in lot of wasted code becuase i was trying to use hot key to manipulate the gina, and there is a "windows rule" from doing whatever it was i was attempting to do. at any rate the function call is obvious and i think it starts with Register..... Link to comment Share on other sites More sharing options...
datkewlguy Posted January 15, 2005 Author Share Posted January 15, 2005 anybody know? please? Link to comment Share on other sites More sharing options...
datkewlguy Posted January 15, 2005 Author Share Posted January 15, 2005 plzzzz somebody help im still having trouble Link to comment Share on other sites More sharing options...
ezzetabi Posted January 15, 2005 Share Posted January 15, 2005 Autoit shoud use (Un)RegisterHotKey of user32.dll. user32.dll is not usable in the moment you execute that .bat file IFAIK. Link to comment Share on other sites More sharing options...
datkewlguy Posted January 15, 2005 Author Share Posted January 15, 2005 hey can you tell me the arguements for that? Link to comment Share on other sites More sharing options...
erifash Posted January 16, 2005 Share Posted January 16, 2005 I don't know exactly but I think MSDN could have it, try searching.http://msdn.microsoft.com/library/default.aspAlso, Trey, can you please help me with this?http://www.autoitscript.com/forum/index.php?showtopic=7617 My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
sugi Posted January 16, 2005 Share Posted January 16, 2005 1. rename a EXE file to .scr and voila, you got a screensaver (works the other way around, too). Screensaver are started with parameter /s when they're supposed to "save" the screen. 2. to catch CTRL+ALT+DELETE you'd need to manipulate gina which includes writing a dll meaning you've got no chance to do this with AutoIt. What I'd suggest is: let the normal winlogon take place just like usual (maybe even with autologin enabled, so that winlogon is basically skipped if you've got enough trust in your skills), but tell winlogon to use a different shell (not explorer.exe). And of course block the call to taskmanager until you've verified the user. The shell and the task manager can be modified by changing registry keys. AFAIR they're in HKCU and HKLM under \Software\Microsoft\Windows NT\Winlogon Link to comment Share on other sites More sharing options...
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