Page 1 of 1 1
Topic Options
#193303 - 2009-04-01 03:22 PM Break command (Break Off)
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
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?
Top
#193304 - 2009-04-01 03:31 PM Re: Break command (Break Off) [Re: kelp7]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
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.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#193306 - 2009-04-01 03:37 PM Re: Break command (Break Off) [Re: Gargoyle]
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
An interesting solution! \:\) Thanks... any drawbacks to this or anything that could be potentially hazardous about this?
Top
#193309 - 2009-04-01 05:16 PM Re: Break command (Break Off) [Re: kelp7]
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
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 \:\)
Top
#193310 - 2009-04-01 06:10 PM Re: Break command (Break Off) [Re: kelp7]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Glad it worked out for you. Personally I prefer to have no screen output for my login script.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#193327 - 2009-04-02 09:25 AM Re: Break command (Break Off) [Re: Gargoyle]
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
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....
Top
#193333 - 2009-04-02 02:31 PM Re: Break command (Break Off) [Re: kelp7]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
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
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193355 - 2009-04-03 01:40 PM Re: Break command (Break Off) [Re: Glenn Barnas]
kelp7 Offline
Starting to like KiXtart

Registered: 2002-08-12
Posts: 124
Loc: UK
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!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.059 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org