#101793 - 2003-06-02 08:57 PM
Hide icons in application script
|
Microcyb
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 ]
|
|
Top
|
|
|
|
#101795 - 2003-06-02 09:54 PM
Re: Hide icons in application script
|
Microcyb
Getting the hang of it
Registered: 2002-12-30
Posts: 95
Loc: Hell
|
Booooooooo Hiss Hiss Booooooooooo
|
|
Top
|
|
|
|
#101796 - 2003-06-02 09:57 PM
Re: Hide icons in application script
|
Radimus
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
|
|
Top
|
|
|
|
#101797 - 2003-06-02 10:34 PM
Re: Hide icons in application script
|
Microcyb
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.
|
|
Top
|
|
|
|
#101798 - 2003-06-02 11:48 PM
Re: Hide icons in application script
|
Radimus
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
|
|
Top
|
|
|
|
#101799 - 2003-06-03 09:54 AM
Re: Hide icons in application script
|
Richard H.
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
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#101801 - 2003-06-03 02:26 PM
Re: Hide icons in application script
|
Kdyer
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 ]
|
|
Top
|
|
|
|
#101803 - 2003-06-03 04:53 PM
Re: Hide icons in application script
|
Microcyb
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 ]
|
|
Top
|
|
|
|
#101805 - 2003-06-03 05:10 PM
Re: Hide icons in application script
|
Microcyb
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.
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 675 anonymous users online.
|
|
|