kelp7
(Starting to like KiXtart)
2009-04-01 03:22 PM
Break command (Break Off)

Not good.... I now need to stop my scripts from being manually closed (I don't care about people trying to stop it in task manager), but I really don't want this whole logging out event handler going on at all, i just need the window the script is running in to not have the File->Close menu option and the X in the top right corner to be disabled. I presume this isn't possible?

Gargoyle
(MM club member)
2009-04-01 03:31 PM
Re: Break command (Break Off)

Try launching with WKIX32, and ensure that you have no screen output. Then your script is not seen and performs its magic behind the scenes.

kelp7
(Starting to like KiXtart)
2009-04-01 03:37 PM
Re: Break command (Break Off)

An interesting solution! \:\) Thanks... any drawbacks to this or anything that could be potentially hazardous about this?

kelp7
(Starting to like KiXtart)
2009-04-01 05:16 PM
Re: Break command (Break Off)

In fact, even better is that i've found if you just launch the script using the WKIX32 version you can still see the screen output that, really, i wanted to see but just can't close the window. Excellent \:\)

Gargoyle
(MM club member)
2009-04-01 06:10 PM
Re: Break command (Break Off)

Glad it worked out for you. Personally I prefer to have no screen output for my login script.

kelp7
(Starting to like KiXtart)
2009-04-02 09:25 AM
Re: Break command (Break Off)

Ah, it's not for a login script, see my "FTPing files" thread on here, it's a script that is going to run indefinitely and it would be best to see what it's up to at all times....

Glenn BarnasAdministrator
(KiX Supporter)
2009-04-02 02:31 PM
Re: Break command (Break Off)

If it needs to run all the time, why not run it as a service and monitor the logs. Output can be put to the log with a simple RedirectOutput() call.. Much more reliable to run server apps as services than deal with a process that requires someone be logged in.

Lots of info on Kix as a Service in the Vault.

Glenn


kelp7
(Starting to like KiXtart)
2009-04-03 01:40 PM
Re: Break command (Break Off)

Yeah I wondered about that, i'm slightly scared if I admit it to attempt to run something as a service \:\) Currently my script writes its own log files, all formatted nicely etc into a logs folder on a drive somewhere and it monitors keypresses on each cycle of the script for a couple of keys, one key to stop processing of files and the other just to exit the script. So... you're right, it's probably better not to have someone have to be logged in all the time but i'll have to see what my manager reckons \:\) thanks for the tip though!