fsquirrelgpr Posted August 10, 2005 Posted August 10, 2005 I would like to add code to a script that upon a real key press or mouseclick, runs a specified function (which will terminate the script and lock the PC (send win-L)). My initial idea was to use HotKeySet but after looking at it more closely, I do not think it would work. I looked at block input but again a user could hit alt-control-delete then have control. Basically I want to force anyone who might stumble across a computer running a script to be forced to enter the password to unlock the PC (or reboot it) before being able to do anything with the PC. I also want to use this functionality to protect passwords that are "sent" to web-sites (so the user could not just click on another window right before a password is sent to get it). Any suggestions on where to start or forum links to solutions to this problem?
seandisanti Posted August 10, 2005 Posted August 10, 2005 (edited) I would like to add code to a script that upon a real key press or mouseclick, runs a specified function (which will terminate the script and lock the PC (send win-L)).My initial idea was to use HotKeySet but after looking at it more closely, I do not think it would work.I looked at block input but again a user could hit alt-control-delete then have control.Basically I want to force anyone who might stumble across a computer running a script to be forced to enter the password to unlock the PC (or reboot it) before being able to do anything with the PC. I also want to use this functionality to protect passwords that are "sent" to web-sites (so the user could not just click on another window right before a password is sent to get it).Any suggestions on where to start or forum links to solutions to this problem?<{POST_SNAPBACK}>_IsPressed()?***edit*** realized that was kind of vague and needed some elaboration... check the forums for UDF _IsPressed() Edited August 10, 2005 by cameronsdad
MSLx Fanboy Posted August 10, 2005 Posted August 10, 2005 Also, for the website password part, you could do a ControlSend, and send it to the window itself... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
seandisanti Posted August 10, 2005 Posted August 10, 2005 I would like to add code to a script that upon a real key press or mouseclick, runs a specified function (which will terminate the script and lock the PC (send win-L)).My initial idea was to use HotKeySet but after looking at it more closely, I do not think it would work.I looked at block input but again a user could hit alt-control-delete then have control.Basically I want to force anyone who might stumble across a computer running a script to be forced to enter the password to unlock the PC (or reboot it) before being able to do anything with the PC. I also want to use this functionality to protect passwords that are "sent" to web-sites (so the user could not just click on another window right before a password is sent to get it).Any suggestions on where to start or forum links to solutions to this problem?<{POST_SNAPBACK}>regarding sending info to sites, you should check out dale's ie.au3 UDF. it has alot of useful functions for interacting with sites, you could have a site loaded in a page that isn't displayed, then the login info could be sent to the page (not just a 'send()' to the active window) and the page could be displayed AFTER the login, so to the end user, they don't see the login at all, they just see the page after the login.
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