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 

Windows Services

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Mon Jun 07, 2004 6:14 pm    Post subject: Windows Services Reply with quote

Would it be possible to add the ability to Add, Edit, Delete, Query, Start, Stop NT Services?

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Mon Jun 07, 2004 6:28 pm    Post subject: Reply with quote

I currently use net start and net stop to start and stop services using AHK.

syntax
NET START [service]
NET STOP [service]
NET PAUSE [service]
NET CONTINUE [service]

key
[service] : The service name as shown in Control Panel, Services
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Mon Jun 07, 2004 6:46 pm    Post subject: Reply with quote

Quote:
Would it be possible to add the ability to Add, Edit, Delete, Query, Start, Stop NT Services?

Since I think most of those things can be done from the command line (possibly requiring a resource kit or 3rd party utility to add/edit a service?) or even by automating the GUI, it'd be a pretty low priority. Do you have any particular tasks that can't be easily accomplished by automating OS features?
Back to top
View user's profile Send private message Send e-mail
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Sat Jun 19, 2004 12:51 am    Post subject: Reply with quote

I use both net start and net stop, as well as a 3rd party tool sc.exe that lets you start and stop services on Remote computers. I could always use %comspec% to do most of the AHK FileXXX commands. I could also use a 3rd party tool named reg.exe to modify the registry on local and Remote computers instead of using AHK RegXXX commands.

Quote:
Do you have any particular tasks that can't be easily accomplished by automating OS features?

No, the reason why I asked for this is it is always easier to program something using AHK Functions as well as less CPU and memory than using an external application with the Run and RunWait commands.

I also figured that there might be some built-in Windows functions to hopefully implement this in AHK. If added to the To Do list, low priorty since there are of course alternate solutions.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Sat Jun 19, 2004 2:23 am    Post subject: Reply with quote

Of course, you're right that there are a lot of features built in that have 3rd part or OS alternatives. My previous post was inaccurate and badly written.

Anyway, I will add it to the list. For future reference, these are the criteria I use to determine the priority of feature requests:

- What percentage of users would be expected to use the feature.
- How much value the feature adds (and this considers the availability built-in OS features and/or 3rd party utilities).
- How hard it is to implement.

This feature scores low on the first two but probably not too bad on the last. Usually when a low-scoring feature is requested, I try to avoid putting it on the list at all because realistically it would be months before I got to it (unless someone else codes it).

I will try to publish the highest priority list items soon so there is visibility of what is planned. A visible list might also help justify my shameful reluctance to claim that things are going on the list Smile
Back to top
View user's profile Send private message Send e-mail
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Sat Jun 19, 2004 2:51 am    Post subject: Reply with quote

Being able to kill a process by it's file name e.g. notepad.exe would be useful. I found something called taskkill but it doesn't seem to work on XP home (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/taskkill.mspx)

Thanks, Jon
Back to top
View user's profile Send private message Send e-mail
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Sat Jun 19, 2004 2:54 am    Post subject: Reply with quote

Rkill that I is described at http://www.autohotkey.com/forum/viewtopic.php?t=95 works with process name or process ID.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Sat Jun 19, 2004 3:39 am    Post subject: Reply with quote

Support for acting upon processes is planned, though once again it's not something commonly used. That's why things such as better auto-replace, hot strings, and snazzy progress bars take precedence.
Back to top
View user's profile Send private message Send e-mail
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Sat Jun 19, 2004 3:46 am    Post subject: Reply with quote

Quote:
I will try to publish the highest priority list items soon so there is visibility of what is planned. A visible list might also help justify my shameful reluctance to claim that things are going on the list Very Happy

For those people who don't believe in the list, everything I have ever suggested (that was reasonable), Chris has delivered.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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