In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Stop external application

Xailer professional forum in English
Responder
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

Hello!!!
I want to make a program to be always running. It should use a timer to
every day run an external program at 1:00 AM and stops it at 8:00 AM . To
run it is easy, but how do i end an external program ? Is there a Xailer or
xHarbour way ?
TIA.
Aguiar !!!
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

Is it KillProcess ?
TIA.
Aguiar !!!
"Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Hello!!!
>
> I want to make a program to be always running. It should use a timer to
> every day run an external program at 1:00 AM and stops it at 8:00 AM . To
> run it is easy, but how do i end an external program ? Is there a Xailer
> or xHarbour way ?
> TIA.
> Aguiar !!!
>
>
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

Is it KillProcess ?
TIA.
Aguiar !!!
"Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Hello!!!
>
> I want to make a program to be always running. It should use a timer to
> every day run an external program at 1:00 AM and stops it at 8:00 AM . To
> run it is easy, but how do i end an external program ? Is there a Xailer
> or xHarbour way ?
> TIA.
> Aguiar !!!
>
>
>
_support_
Mensajes: 146
Registrado: Lun Abr 10, 2006 1:29 pm

Stop external application

Mensaje por _support_ »

Aguiar,
That will be fine. You can also send a PostQuitMessage (WM_QUIT) to its main
window.
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:[email=44eb2442@news.xailer.com...]44eb2442@news.xailer.com...[/email]
> Is it KillProcess ?
> TIA.
> Aguiar !!!
>
> "Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
> news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> Hello!!!
>>
>> I want to make a program to be always running. It should use a timer to
>> every day run an external program at 1:00 AM and stops it at 8:00 AM . To
>> run it is easy, but how do i end an external program ? Is there a Xailer
>> or xHarbour way ?
>> TIA.
>> Aguiar !!!
>>
>>
>>
>
>
>
_support_
Mensajes: 146
Registrado: Lun Abr 10, 2006 1:29 pm

Stop external application

Mensaje por _support_ »

Aguiar,
That will be fine. You can also send a PostQuitMessage (WM_QUIT) to its main
window.
Regards,
"Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
news:[email=44eb2442@news.xailer.com...]44eb2442@news.xailer.com...[/email]
> Is it KillProcess ?
> TIA.
> Aguiar !!!
>
> "Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
> news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> Hello!!!
>>
>> I want to make a program to be always running. It should use a timer to
>> every day run an external program at 1:00 AM and stops it at 8:00 AM . To
>> run it is easy, but how do i end an external program ? Is there a Xailer
>> or xHarbour way ?
>> TIA.
>> Aguiar !!!
>>
>>
>>
>
>
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

Ignacio,
I'm doing it like this: hProcess := ShellExecute() (Execute() is not
working), and KillProcess(hProcess), but it does not work because the
returned value from ShellExecute is not an handle.
How do i use PostQuitMessage (WM_QUIT)? How do i get the main window of the
the external application ?
I dont understand nothing about windows functions.... :(
Thanks for your help.
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <_support_@xailer.com> escreveu na mensagem
news:[email=44ec159b@news.xailer.com...]44ec159b@news.xailer.com...[/email]
> Aguiar,
>
> That will be fine. You can also send a PostQuitMessage (WM_QUIT) to its
> main window.
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:[email=44eb2442@news.xailer.com...]44eb2442@news.xailer.com...[/email]
>> Is it KillProcess ?
>> TIA.
>> Aguiar !!!
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
>> news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>> Hello!!!
>>>
>>> I want to make a program to be always running. It should use a timer to
>>> every day run an external program at 1:00 AM and stops it at 8:00 AM .
>>> To run it is easy, but how do i end an external program ? Is there a
>>> Xailer or xHarbour way ?
>>> TIA.
>>> Aguiar !!!
>>>
>>>
>>>
>>
>>
>>
>
>
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

Ignacio,
I'm doing it like this: hProcess := ShellExecute() (Execute() is not
working), and KillProcess(hProcess), but it does not work because the
returned value from ShellExecute is not an handle.
How do i use PostQuitMessage (WM_QUIT)? How do i get the main window of the
the external application ?
I dont understand nothing about windows functions.... :(
Thanks for your help.
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <_support_@xailer.com> escreveu na mensagem
news:[email=44ec159b@news.xailer.com...]44ec159b@news.xailer.com...[/email]
> Aguiar,
>
> That will be fine. You can also send a PostQuitMessage (WM_QUIT) to its
> main window.
>
> Regards,
>
> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
> news:[email=44eb2442@news.xailer.com...]44eb2442@news.xailer.com...[/email]
>> Is it KillProcess ?
>> TIA.
>> Aguiar !!!
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
>> news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>> Hello!!!
>>>
>>> I want to make a program to be always running. It should use a timer to
>>> every day run an external program at 1:00 AM and stops it at 8:00 AM .
>>> To run it is easy, but how do i end an external program ? Is there a
>>> Xailer or xHarbour way ?
>>> TIA.
>>> Aguiar !!!
>>>
>>>
>>>
>>
>>
>>
>
>
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

It's working ok now, with the help of José Lalin....I'm using Execute() and
KillProcess()
Thank you.
Regards.
Aguiar !!!
"Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
news:44ec2396$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Ignacio,
>
> I'm doing it like this: hProcess := ShellExecute() (Execute() is not
> working), and KillProcess(hProcess), but it does not work because the
> returned value from ShellExecute is not an handle.
> How do i use PostQuitMessage (WM_QUIT)? How do i get the main window of
> the the external application ?
> I dont understand nothing about windows functions.... :(
> Thanks for your help.
> Aguiar !!!
>
>
> "Ignacio Ortiz de Zúñiga" <_support_@xailer.com> escreveu na mensagem
> news:[email=44ec159b@news.xailer.com...]44ec159b@news.xailer.com...[/email]
>> Aguiar,
>>
>> That will be fine. You can also send a PostQuitMessage (WM_QUIT) to its
>> main window.
>>
>> Regards,
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>> news:[email=44eb2442@news.xailer.com...]44eb2442@news.xailer.com...[/email]
>>> Is it KillProcess ?
>>> TIA.
>>> Aguiar !!!
>>>
>>> "Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
>>> news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>>> Hello!!!
>>>>
>>>> I want to make a program to be always running. It should use a timer to
>>>> every day run an external program at 1:00 AM and stops it at 8:00 AM .
>>>> To run it is easy, but how do i end an external program ? Is there a
>>>> Xailer or xHarbour way ?
>>>> TIA.
>>>> Aguiar !!!
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Stop external application

Mensaje por Aguiar Costa »

It's working ok now, with the help of José Lalin....I'm using Execute() and
KillProcess()
Thank you.
Regards.
Aguiar !!!
"Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
news:44ec2396$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Ignacio,
>
> I'm doing it like this: hProcess := ShellExecute() (Execute() is not
> working), and KillProcess(hProcess), but it does not work because the
> returned value from ShellExecute is not an handle.
> How do i use PostQuitMessage (WM_QUIT)? How do i get the main window of
> the the external application ?
> I dont understand nothing about windows functions.... :(
> Thanks for your help.
> Aguiar !!!
>
>
> "Ignacio Ortiz de Zúñiga" <_support_@xailer.com> escreveu na mensagem
> news:[email=44ec159b@news.xailer.com...]44ec159b@news.xailer.com...[/email]
>> Aguiar,
>>
>> That will be fine. You can also send a PostQuitMessage (WM_QUIT) to its
>> main window.
>>
>> Regards,
>>
>> "Aguiar" <aguiar.costa@sisbit.pt> escribió en el mensaje
>> news:[email=44eb2442@news.xailer.com...]44eb2442@news.xailer.com...[/email]
>>> Is it KillProcess ?
>>> TIA.
>>> Aguiar !!!
>>>
>>> "Aguiar" <aguiar.costa@sisbit.pt> escreveu na mensagem
>>> news:44eb215b$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>>> Hello!!!
>>>>
>>>> I want to make a program to be always running. It should use a timer to
>>>> every day run an external program at 1:00 AM and stops it at 8:00 AM .
>>>> To run it is easy, but how do i end an external program ? Is there a
>>>> Xailer or xHarbour way ?
>>>> TIA.
>>>> Aguiar !!!
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
>
Responder