JonnyThunder Posted June 12, 2009 Posted June 12, 2009 Hello all! Without running as a service, how can I run an autoit script in the system tray on a server, so that all users who log in can see the icon, preferably as a specific user? Thanks, JT
Lars Posted June 12, 2009 Posted June 12, 2009 Set a tray icon, Don't create a gui on app start, and loop until you want something to happen. If the app starts to run crappy add 500ms sleep to the loop. That's it!!
JonnyThunder Posted June 15, 2009 Author Posted June 15, 2009 (edited) Thanks for the reply. Sadly, that's what I have done. But on a server, if I log in using my account and start up the application, other users cannot see it when they log in. I need it to be persistent for all users. (there is no GUI at all - only a tray icon with some tray options). Edited June 15, 2009 by JonnyThunder
James Posted June 15, 2009 Posted June 15, 2009 Use the help file and look at the Tray functions. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
JonnyThunder Posted June 15, 2009 Author Posted June 15, 2009 Not helpful. Would I be posting on a help forum if I hadn't already had a scan through the help file? Plus, posting comments like that assumes that a person knows what to search for in the documentation which is usually half the battle. That's kind of like telling me to look up the meaning for a word in the dictionary, when I don't know what the word is that I'm looking for. I can't see mention anywhere in the documents regarding server use of AutoIt. I can see lots of documentation about the tray icon, and none (that I have found) mentions multiple users on a server.
James Posted June 15, 2009 Posted June 15, 2009 Not helpful. Would I be posting on a help forum if I hadn't already had a scan through the help file?Surprisingly a lot of people do.Plus, posting comments like that assumes that a person knows what to search for in the documentation which is usually half the battle. That's kind of like telling me to look up the meaning for a word in the dictionary, when I don't know what the word is that I'm looking for.Use the help file and look at the Tray functions.I can't see mention anywhere in the documents regarding server use of AutoIt. I can see lots of documentation about the tray icon, and none (that I have found) mentions multiple users on a server.You just run a service on a server just like a computer. Just run the program on all of the client computers too? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
JonnyThunder Posted June 16, 2009 Author Posted June 16, 2009 Without running as a serviceLol.... okay okay. Lets start again. Is there any way to do this WITHOUT a service. Or are services the only way that apps can be run between various users without reloading them?
JonnyThunder Posted June 16, 2009 Author Posted June 16, 2009 Surprisingly a lot of people do.p.s. That IS a very good point. Thankfully I'm not one of them. I just thought the whole way of using an autoit program as a service is messy (read it in the FAQ). Wondered if there was a cleaner way to do it.
James Posted June 16, 2009 Posted June 16, 2009 Lol.... okay okay. Lets start again. Is there any way to do this WITHOUT a service. Or are services the only way that apps can be run between various users without reloading them?I'm not quite sure actually. You want to run one program where all users have access to it?Will the program share the same data?p.s. That IS a very good point. Thankfully I'm not one of them. I just thought the whole way of using an autoit program as a service is messy (read it in the FAQ). Wondered if there was a cleaner way to do it.We'll try. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
JonnyThunder Posted June 16, 2009 Author Posted June 16, 2009 Yes, the client which runs in the system tray also uses a SQLite database for incoming / outgoing messages from the server. But it's not a problem giving rights to all files required on the server.
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