| View previous topic :: View next topic |
| Author |
Message |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jul 03, 2004 4:23 am Post subject: Need Experts help! |
|
|
Hi,
I would like to create a script that will prevent unauthorized user(s) from shutting down a running process in the background or application from accidentally shutting down or close down. Also this script will prompt for a password if an authorize user need to shut the script down. I would like this script to be reliable and efficient. At this point I have no idea how to approach the script or wether ahk is capable of creating such script. An example of a script would be most helpful. Lastly, if anyone knows a software out there that does the same thing as this script please let me know, but however I like to create a script using ahk. Thanks in advance. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sat Jul 03, 2004 12:12 pm Post subject: |
|
|
As you've mentioned you want to run a script in the background, so you won't do any mouse or keyboard action on the frontend. Correct ? You could run a script as a service which would be started with the login and as I seems to know, needs some access permissions to be canceled.
BTW: What should this script do in the background
E.g. logging desktop activity is an illegal act in some countries if the user won't be informed about it in advance  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Sat Jul 03, 2004 12:26 pm Post subject: |
|
|
| You could have two scripts that restart each other if either is killed. However, the purest way to do this is to lock down the workstation so that users can't terminate processes via Task Manager. This might be achievable by using RunAs to run a script as a user with different permissions than the currently logged on user, disabling task manager with the registry / group policy editor, etc. |
|
| Back to top |
|
 |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jul 03, 2004 1:39 pm Post subject: Clarification |
|
|
| Regarding Chris's comment. I do not want to lockdown any user, but want to prevent a user from accidentally clicking on a critical application and shutting it down. I want this critical application to run 24/7 and made visible to users to see, however no interaction from the users to the application. Please provide some code to show me how to put this script together, if it's possible to acchieve in ahk. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Sat Jul 03, 2004 2:37 pm Post subject: |
|
|
If the user lacks admin rights, running the script using "RunAs" with an admin user's credentials might prevent the script from being terminated (you'd probably also have to hide the tray icon, or at least replace the standard tray menu by using Menu, tray, NoStandard).
In fact, if all you want to do is prevent accidental termination (assumes the user would not deliberately end-task the script from Task Manager), you might not even need RunAs. Just remove the tray icon or change the tray menu as described above. See the Menu command for details. |
|
| Back to top |
|
 |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Sat Jul 03, 2004 3:40 pm Post subject: Thanks |
|
|
| Thank You for the good inputs. I will gather the information you gave me and see what I can make of it, will post more if run into problems. Thanks |
|
| Back to top |
|
 |
|