Epulone Posted December 22, 2018 Share Posted December 22, 2018 I have created a small macro script . To avoid the user could block the progress of the automate sequence (about 20 seconds) I would like to block Alt+Ctrl+del just the time the script end in about 20 seconds. How can I do it? Thanks Link to comment Share on other sites More sharing options...
rudi Posted December 22, 2018 Share Posted December 22, 2018 Hello, BlockInput() might help you? Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Epulone Posted December 22, 2018 Author Share Posted December 22, 2018 Hi Rudi, unfortunately BlockInput() doesn't block Alt+Ctrl+del Link to comment Share on other sites More sharing options...
AutoBert Posted December 22, 2018 Share Posted December 22, 2018 3 minutes ago, Epulone said: unfortunately BlockInput() doesn't block Alt+Ctrl+del this is for security reasons, to avoid scripts wich trying hijacking a system. Link to comment Share on other sites More sharing options...
Epulone Posted December 22, 2018 Author Share Posted December 22, 2018 In my case I mus block the user (student) to use them otherwise they will do (for sure). Maybe I could disable by the register at the beginning and re-enable at the end. Could it work? Link to comment Share on other sites More sharing options...
careca Posted December 22, 2018 Share Posted December 22, 2018 I can do it, but the forum is sensitive about scripts that look like keyloggers. AutoBert 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Somerset Posted December 22, 2018 Share Posted December 22, 2018 I also would not be asking for a keylogger neither. Against the forums. Link to comment Share on other sites More sharing options...
Epulone Posted December 22, 2018 Author Share Posted December 22, 2018 (edited) No, here there is a misunderstand. Mine is a genuine request. The script I am speaking about open a free legal software (Toolwiz Time Freeze) insert the admin password and activate it only when a student logon using the local student account of a university testing LAB. This to preserve the PC for any unwanted user change. The activation of the software require about 20 seconds where the student can use Alt+Ctrl+del to terminate the script and then mess all around .... I hope you can see that here there isn't any key-loggers scope .... I believe it is exactly the contrary .....avoid any action from students that could prevent the activation of the program by the script before they use the PC. Edited December 23, 2018 by Epulone Link to comment Share on other sites More sharing options...
iamtheky Posted December 23, 2018 Share Posted December 23, 2018 (edited) i believe what they are intimating is that a keylogger is the only way to do it, and we cant help you down that path. As well, there are new built in defenses to Windows that warn the user when something is preventing the security screen from displaying when ctrl+alt+del is pressed. google 'autoit ctrl+alt+del'. There is no magic to be had, it's just thread after thread of futile efforts. Edited December 23, 2018 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
careca Posted December 23, 2018 Share Posted December 23, 2018 (edited) @Epulone you could set the group policy: "Prevent Task Run or End", would that work for you? Also maybe you could just disable the del or one of the other keys entirely using scancode. Edited December 23, 2018 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Nine Posted December 23, 2018 Share Posted December 23, 2018 7 hours ago, careca said: Also maybe you could just disable the del or one of the other keys entirely using scancode. I believe that could work, but you will require to rummage into the registry. You could use #requireadmin along with regwrite function to do it for you. But remember, you will need to reboot the computer in order to activate the change. It is still possible to complete the script after reboot, but it will require some more scripting... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Juvigy Posted January 2, 2019 Share Posted January 2, 2019 Isnt it easier to limit the students accounts in Windows so they cant kill the script? Link to comment Share on other sites More sharing options...
orbs Posted January 2, 2019 Share Posted January 2, 2019 that program, "Toolwiz Time Freeze", is rather poorly designed and extremely poorly documented. i installed it on a VM just to see if there was a help file available (there wasn't), and the "Help" section in the program UI sums up to this: To active the Time Freeze mode with command line, you can try this way: c:\xxx\ToolwizTimeFreeze.exe /freeze If you have set a password to protect the program, you can try this way: c:\xxx\ToolwizTimeFreeze.exe /freeze /usepass=mypassword To deactive the Time Freeze mode with command line, you can try this way: c:\xxx\ToolwizTimeFreeze.exe /unfreeze If you have set a password to protect the program, you can try this way: c:\xxx\ToolwizTimeFreeze.exe /unfreeze /usepass=mypassword This operation will reboot your system automatically To set the Time Freeze mode to be auto on with command line, you can try this way: c:\xxx\ToolwizTimeFreeze.exe /freezealways If you have set a password to protect the program, you can try this way: c:\xxx\ToolwizTimeFreeze.exe /freezealways /usepass=mypassword --------------------------------------------------------- To install the Time freeze to your pc with command line, you can try this way: c:\xxx\ToolwizSetup.exe /install /alwaysprotect=1 /reboot=1 /setpass=xxx /showtoolbar=1 /safemodequit=1 /cachesize=2000 then restart your computer to make the engine work. To uninstall the Time freeze from your pc with command line, you can try this way: c:\xxx\ToolwizSetup.exe /uninstall /reboot=1 then restart your computer to make the uninstall complete. -------------------------------------------------- To get the protect state with command line, you can try this way: c:\xxx\\ToolwizTimeFreeze.exe /check /usepass=mypassword you can read the flag in the Registry. HKEY_CURRENT_USER\Software\Toolwiz\TimefreezeNew CURRENT_PROTECT_MODE = 1 means Time Freeze is ON. NEXT_BOOT_PROTECT = 1 means next reboot, Time Freeze will be ON. now, although minimalist, that description provides pretty much all you need - in the first two paragraphs. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff 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