Search the Community
Showing results for tags 'srvany'.
-
I'm trying to create an app which will run as a service and appear in the system tray. I've created the service using SRVANY and it works fine until the user logs off, the app closes down. Initial tests at home made me think I had resolved the issue but in work it still fails, this drove me crazy until I replicated the exact environment, i.e. the version of AutoIT. When using the latest version the script will close everytime a user logs off the PC. I then ran a test with one of the help examples (traycreatemenu) compiled in the latest version and an older version (3.2.4.9) which I was using at home. Lo and behold the script remains when the user logs off then back on etc. using the old version of autoit (aut2exe) but running the same script compiled in the latest version the script closes everytime. Unfortunately I can't compile my script using the old version of autoit due to the commands and 'includes' used, so I'm stuck. I've read numerous postings about using SRVANY and even contemplated using the service.au3 options but this although more impressive as a service doesn't work well with GUI's (at least with what I've tried). There may be something written somewhere in the myriad of text, small print and help which may explain this but does anyone have any ideas as to why an older version of this great tool should allow me run a GUI interactively as a service but the latest not? Is this something to do with complying more rigidly with Microsoft or other coding standards?