Jump to content

Recommended Posts

Posted

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

Posted

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!!

Posted (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 by JonnyThunder
Posted

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.

Posted

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?
Posted

Without running as a service

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?

Posted

Surprisingly a lot of people do.

p.s. That IS a very good point. :D 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.

Posted

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. :D 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.
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...