jazzyjeff Posted July 29, 2010 Posted July 29, 2010 Before anyway replies with an RFTM message, I have read the documents and understand the answer to my question. I would like to create a program that will stop students at my school from exiting out with the ALT F4 shortcut. I was hoping to use the HotKeySet command, but after it didn't work and I did some reading up I have found that disabling the use of any command with the ALT key in is prohibited. Firstly, is there a way to get around this using another command? I have searched for a long time, so I feel like I know the answer to that question. Secondly, I feel like another option should be added to the HotKeySet function. If disabling the ALT key is a no go, can the function be given an option to disable the shortcut if any key specified is used i.e. {ALT}{F4} the alt is out of the question, but because F4 is listed this would stop the use of it. This would be useful for many people despite the pitfuls that it could have for some people. Thanks Jeff
JohnOne Posted July 29, 2010 Posted July 29, 2010 I doubt its the alt or F4 on its own that are the problem, its the combination of the 2 maybe. Its a windows thing. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Bert Posted July 29, 2010 Posted July 29, 2010 I googled around a bit, and there are methods of doing what you have in mind with code. http://www.google.co.uk/search?hl=en&q=disable+alt%2Bf4&btnG=Search&meta= The Vollatran project My blog: http://www.vollysinterestingshit.com/
jazzyjeff Posted July 30, 2010 Author Posted July 30, 2010 Thank you for your responses. After thoroughly reading through the help files, I found out how to disable this in AutoIT.
awmartin Posted February 22, 2011 Posted February 22, 2011 Thank you for your responses. After thoroughly reading through the help files, I found out how to disable this in AutoIT.You mind sharing how or where you found the ability to disable the Alt+F4 command?
jvanegmond Posted February 22, 2011 Posted February 22, 2011 (edited) You mind sharing how or where you found the ability to disable the Alt+F4 command? HotKeySet("!{F4}", "_HawkingHole") While 1 Sleep(500) WEnd Func _HawkingHole() ; Zoink EndFunc Edited February 22, 2011 by Manadar github.com/jvanegmond
KaFu Posted February 22, 2011 Posted February 22, 2011 Sadly found out that SteadyState has been discontinued recently. It's still out there for download though. And this article also lists nice alternatives: http://en.wikipedia.org/wiki/Windows_SteadyState OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
willichan Posted February 22, 2011 Posted February 22, 2011 (edited) Mandar's solution works really well, as long as it is either the only script is running that disables Alt-F4, or is the first run.If someone is feeling ambitious, maybe the following could be translated into AI from VB6:http://www.vbforums.com/showpost.php?p=3119120&postcount=2I've had too long and brain-frying a weekend to focus on right now.--- Edit ---This might also be a solution (again from VB6)// claim your program is a password protected screen saver, this disables ctrl-alt-del, alt-tab and ctrl+esc int old; SystemParametersInfo(SPI_SCREENSAVERRUNNING,true,(void*)&old,0);http://forums.devshed.com/showpost.php?p=245673&postcount=4 Edited February 22, 2011 by willichan My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash
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