Prevent users on using ctrl+alt+del to crash master stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Prevent users on using ctrl+alt+del to crash master stack
I really need your help . I really dont know how to do this
The objective of this task is to prevent users from using Ctrl-Alt-Del to crash the master stack program. One way to do this is to intercept all keystrokes looking for a control sequence before the key is passed along to the operating system.
In the LiveCoce master stack,if the the character ctrl D is received, then look for ctrl S ctrl I ctrl M when this squence is received, exit the program.
Please help me on this .
The objective of this task is to prevent users from using Ctrl-Alt-Del to crash the master stack program. One way to do this is to intercept all keystrokes looking for a control sequence before the key is passed along to the operating system.
In the LiveCoce master stack,if the the character ctrl D is received, then look for ctrl S ctrl I ctrl M when this squence is received, exit the program.
Please help me on this .
Re: Prevent users on using ctrl+alt+del to crash master stac
Hi Pzychi,
1. welcome to the forum!
2. I'm afraid this is not possible in LC!
At least not with the build-in means.
The system (Windows) will receive the shortcut Ctrl-Alt-Del FIRST and not
pass it over to LC (or your standalone) in that case!
Maybe this is possible with the help on an external, but I doubt that there is one avaiable.
Best
Klaus
1. welcome to the forum!
2. I'm afraid this is not possible in LC!
At least not with the build-in means.
The system (Windows) will receive the shortcut Ctrl-Alt-Del FIRST and not
pass it over to LC (or your standalone) in that case!
Maybe this is possible with the help on an external, but I doubt that there is one avaiable.
Best
Klaus
Re: Prevent users on using ctrl+alt+del to crash master stac
Code: Select all
on checkKeysLoop
local theTasks
if the keysDown contain "???" -- you have to find out the code for cntrl+alt+del
put shell("tasklist") into theTasks
repeat for each line theTask in theTasks
if theTask contains "taskmgr.exe" then
get shell("taskkill /F /IM taskmgr.exe")
answer warning "YOU CAN NOT USE TASK MANAGER"
end if
end repeat
end if
send checkKeysLoop to me in 30 millisec
end checkKeysLoop
Knowledge is meant to be shared.
Re: Prevent users on using ctrl+alt+del to crash master stac
That may work somehow, but will not actually PREVENT this inconvenience!
Re: Prevent users on using ctrl+alt+del to crash master stac
Klaus wrote:Hi Pzychi,
1. welcome to the forum!
2. I'm afraid this is not possible in LC!
At least not with the build-in means.
The system (Windows) will receive the shortcut Ctrl-Alt-Del FIRST and not
pass it over to LC (or your standalone) in that case!
Maybe this is possible with the help on an external, but I doubt that there is one avaiable.
Best
Klaus
I was very happy to know that I am very welcome here. I was task to do it but I havent any idea on doing it since I was just started to learn live code, thanks again KLAUS for the explanation. Thumbs uo for you buddy
Re: Prevent users on using ctrl+alt+del to crash master stac
zaxos wrote:Code: Select all
on checkKeysLoop local theTasks if the keysDown contain "???" -- you have to find out the code for cntrl+alt+del put shell("tasklist") into theTasks repeat for each line theTask in theTasks if theTask contains "taskmgr.exe" then get shell("taskkill /F /IM taskmgr.exe") answer warning "YOU CAN NOT USE TASK MANAGER" end if end repeat end if send checkKeysLoop to me in 30 millisec end checkKeysLoop
Thanks for this buddy , Im gonna try this one. I really appreciate your help. !,Im very greatful to be part in this community (^o^)
Re: Prevent users on using ctrl+alt+del to crash master stac
True :/, the only alternative is to hide the process from task manager, whitch is possible but requires some work to be done, if you are interested in this i can guide you through.That may work somehow, but will not actually PREVENT this inconvenience!
Knowledge is meant to be shared.
Re: Prevent users on using ctrl+alt+del to crash master stac
zaxos wrote:True :/, the only alternative is to hide the process from task manager, whitch is possible but requires some work to be done, if you are interested in this i can guide you through.That may work somehow, but will not actually PREVENT this inconvenience!
Please guide me through this , im very interested to,know more about it
Re: Prevent users on using ctrl+alt+del to crash master stac
I would not trust any exe that prevents the user from hitting Ctrl-Alt-Del!
I would think this is some kind of malware and delete it.
I would think this is some kind of malware and delete it.
Re: Prevent users on using ctrl+alt+del to crash master stac
Klaus wrote:I would not trust any exe that prevents the user from hitting Ctrl-Alt-Del!
I would think this is some kind of malware and delete it.
I dont really understand why I have given a task for this (-_-;), I am on my OJT training now so I might lose my job if cant get it sir and thats what Im afraid of. All I can do is follow them .But Im very thankful from all of your suggestions (*_*)
Re: Prevent users on using ctrl+alt+del to crash master stac
No idea what OJT Training is, I'm from germany, but I only wanted to express my very personal own opinion!
Good luck with your job!
Good luck with your job!
Re: Prevent users on using ctrl+alt+del to crash master stac
Who would? , hopefully hes not writing a virus or anything...I would not trust any exe that prevents the user from hitting Ctrl-Alt-Del!
I would think this is some kind of malware and delete it.
Check this Pzychi, it does what you want and more, but it requires some work to be done:
http://www.madshi.net/madCodeHookDescription.htm
Knowledge is meant to be shared.
Re: Prevent users on using ctrl+alt+del to crash master stac
An easier aproach (the one i personaly use) would be to use a seperate program made with AutoIt give it the name of a system process (winlogon.exe, svhost.exe...) and script it to check if your process is running, if its not then it starts up your stack. Altho this doesen't prevent your program from being closed from task manager at least it makes sure that if the process closes then it gets restarted. I used this technich in an Internet cafe management program so that users cant close the client.
Knowledge is meant to be shared.
Re: Prevent users on using ctrl+alt+del to crash master stac
Hi,
For programs running on kiosks, one method of preventing ctrl+alt+del is to remove the keyboard and provide an onscreen keyboard that does not include the ctr or alt keys.
Tom B.
For programs running on kiosks, one method of preventing ctrl+alt+del is to remove the keyboard and provide an onscreen keyboard that does not include the ctr or alt keys.
Tom B.
Re: Prevent users on using ctrl+alt+del to crash master stac
This, or a special keyboard.tomBTG wrote:Hi,
For programs running on kiosks, one method of preventing ctrl+alt+del is to remove the keyboard and provide an onscreen keyboard that does not include the ctr or alt keys.
Tom B.
There are other ways to call up the task manager you would have to block
You can use Ctrl-Shift-Esc instead of Ctrl-Alt-Delete, you will get to the task manager faster.
You can also right click on the taskbar and click "start task manager".
Paul