AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need Experts help!

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jul 03, 2004 4:23 am    Post subject: Need Experts help! Reply with quote

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
View user's profile Send private message
BoBo
Guest





PostPosted: Sat Jul 03, 2004 12:12 pm    Post subject: Reply with quote

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 Question

Arrow E.g. logging desktop activity is an illegal act in some countries if the user won't be informed about it in advance Exclamation
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Sat Jul 03, 2004 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jul 03, 2004 1:39 pm    Post subject: Clarification Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Sat Jul 03, 2004 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jul 03, 2004 3:40 pm    Post subject: Thanks Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group