Page 1 of 1 1
Topic Options
#101793 - 2003-06-02 08:57 PM Hide icons in application script
Microcyb Offline
Getting the hang of it

Registered: 2002-12-30
Posts: 95
Loc: Hell
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in body]

Is their a way to hide like the close button in another application to prevent the users from closing aplications when the kix script runs.

I have an auotmation script running, but the users keep closing out of the application required to run when kixart starts the application.

Would love to know if you are able to hide the close button in the third party aplications.

[ 02. June 2003, 21:19: Message edited by: sealeopard ]
_________________________
www.microcyb.com

Top
#101794 - 2003-06-02 09:20 PM Re: Hide icons in application script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
No, you cannot.
_________________________
There are two types of vessels, submarines and targets.

Top
#101795 - 2003-06-02 09:54 PM Re: Hide icons in application script
Microcyb Offline
Getting the hang of it

Registered: 2002-12-30
Posts: 95
Loc: Hell
Booooooooo Hiss Hiss Booooooooooo
_________________________
www.microcyb.com

Top
#101796 - 2003-06-02 09:57 PM Re: Hide icons in application script
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
there are apps that let you run apps hidden, but the user cannot access it.

you can also use a script that will watch for a process and start it again if it closes
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#101797 - 2003-06-02 10:34 PM Re: Hide icons in application script
Microcyb Offline
Getting the hang of it

Registered: 2002-12-30
Posts: 95
Loc: Hell
Rad do you know what that script might be called?
I was just thinking of making the application hidden, but did not want to do such a thing. If a scrip is out there that can sense if the application has been closed that would be perfect.
_________________________
www.microcyb.com

Top
#101798 - 2003-06-02 11:48 PM Re: Hide icons in application script
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
look at the enumproc() or findproc() UDFs

simply write a script that loops with a delay and wrap it around enumproc and an If statement

something like this...

break on
setconsole("hidden")
while not @error
if not enumproc("app.exe")
shell "path\app.exe"
endif
sleep 15
loop
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#101799 - 2003-06-03 09:54 AM Re: Hide icons in application script
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
A couple of other things you might look at.

  • Does the application you are running support an option to disable the close/exit feature itself?
  • What is the exit value of the application when it terminates normally and when it is manually closed? You may be able to check it and respawn the application.
  • Does the application update files? If the last file which should be updated hasn't been, pop up a message to tell your user not to be so bloody stupid and restart the application.

Top
#101800 - 2003-06-03 02:13 PM Re: Hide icons in application script
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
http://www.jsiinc.com/subh/tip3900/rh3986.htm

http://www.jsiinc.com/suba/tip0000/rh0093.htm
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#101801 - 2003-06-03 02:26 PM Re: Hide icons in application script
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
If you want to run an office application like Excel or MS-Access in the background, you can do that with a COM Object. If that is not the case, you can use Rad's solution... You you maybe able to run it using WinAT, Task Scheduler, or JT.EXE.

{Edit}
Something else just come to mind.. You may also be able to do this as a service using SRVANY.EXE/INSTSRV.EXE from the Resource Kit as well.
{/Edit}

HTH,

Kent

[ 03. June 2003, 14:29: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101802 - 2003-06-03 03:53 PM Re: Hide icons in application script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Basically, we'll need more information about your 'automation script' in order to effectively help you. It's currently a case of "not enough information to compute".
_________________________
There are two types of vessels, submarines and targets.

Top
#101803 - 2003-06-03 04:53 PM Re: Hide icons in application script
Microcyb Offline
Getting the hang of it

Registered: 2002-12-30
Posts: 95
Loc: Hell
Going to check out Rads trick.

Well the automation is looking for a program called connect remote, a communications application from sterling comerce.

The script I have just looks for the application, and then opens it, and does a CTRL-C for a connection.

The problem I have is that the users do not want it running if they happen to be on the system, so instead of like mimizing they just close it, and then I have to call them all that did.

If I could have the application auto minimize that application, or make sure they do not close the application then I would be fine.

Another option is to have the script on a timer to loop and look for the files that I need, and if the file has not been transmitted yet then reopen the application and try another connection.

[ 03. June 2003, 16:54: Message edited by: Microcyb ]
_________________________
www.microcyb.com

Top
#101804 - 2003-06-03 05:02 PM Re: Hide icons in application script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Not knwoing what the applications does, would it be possibel to either runt he application under a different user account through the Task Scheduler or as a service? Either of these solutions will prevent the application to show up on the logged-in user's desktop, unless the useraccount is the same as the one used for your app.
_________________________
There are two types of vessels, submarines and targets.

Top
#101805 - 2003-06-03 05:10 PM Re: Hide icons in application script
Microcyb Offline
Getting the hang of it

Registered: 2002-12-30
Posts: 95
Loc: Hell
I will try that as well. Still reasearching Rad's idea too, but thank you for pointing in diferect options as I know one of options given will do the trick just have to make sure the program still functions.
_________________________
www.microcyb.com

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1376 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.071 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

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