sb1920alk Posted July 17, 2009 Share Posted July 17, 2009 I'd like to block input and detect when it has been unblocked by someone pressing Ctrl-Alt-Del, then continue with code and so the script won't be stuck in an infinite loop (not so I can block it again). Something like this: ...do some stuff BlockInput(1) While InputIsBlocked sleep(50) WEnd ...do more stuff. Any ideas? Thanks, Link to comment Share on other sites More sharing options...
Yashied Posted July 17, 2009 Share Posted July 17, 2009 I'd like to block input and detect when it has been unblocked by someone pressing Ctrl-Alt-Del, then continue with code and so the script won't be stuck in an infinite loop (not so I can block it again). Something like this: ...do some stuff BlockInput(1) While InputIsBlocked sleep(50) WEnd ...do more stuff. Any ideas? Thanks, You decided to make the some filth? Say. Why you need it? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
sb1920alk Posted July 17, 2009 Author Share Posted July 17, 2009 You decided to make the some filth? Say. Why you need it? I want to use it while some .bats run in Windows PE. I'd prefer to lock the console, but I don't know of a way to do that in PE and this is the next best thing, but I don't want it to continue running after it's been unlocked. I suppose if there's no way to do it, I can call the .bat from the AutoIT script, but I prefer not since the others that need to use it all speak bat and not AutoIT. Link to comment Share on other sites More sharing options...
Yashied Posted July 17, 2009 Share Posted July 17, 2009 I want to use it while some .bats run in Windows PE. I'd prefer to lock the console, but I don't know of a way to do that in PE and this is the next best thing, but I don't want it to continue running after it's been unlocked. I suppose if there's no way to do it, I can call the .bat from the AutoIT script, but I prefer not since the others that need to use it all speak bat and not AutoIT.Sorry, but it does not look very plausible. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
sb1920alk Posted July 20, 2009 Author Share Posted July 20, 2009 Sorry, but it does not look very plausible.Ok. Thanks anyways. It won't hurt too much to have the "Block Input" script continue running after it's been unlocked with Ctrl-Alt-Del.Any other ideas for protecting an unattended WinPE console? 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