Página 1 de 1
Stop external application
Publicado: Mar Ago 22, 2006 5:24 pm
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 !!!
Stop external application
Publicado: Mar Ago 22, 2006 5:37 pm
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 !!!
>
>
>
Stop external application
Publicado: Mar Ago 22, 2006 5:37 pm
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 !!!
>
>
>
Stop external application
Publicado: Mié Ago 23, 2006 10:45 am
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 !!!
>>
>>
>>
>
>
>
Stop external application
Publicado: Mié Ago 23, 2006 10:45 am
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 !!!
>>
>>
>>
>
>
>
Stop external application
Publicado: Mié Ago 23, 2006 11:46 am
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 !!!
>>>
>>>
>>>
>>
>>
>>
>
>
>
Stop external application
Publicado: Mié Ago 23, 2006 11:46 am
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 !!!
>>>
>>>
>>>
>>
>>
>>
>
>
>
Stop external application
Publicado: Mié Ago 23, 2006 6:56 pm
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 !!!
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
>
Stop external application
Publicado: Mié Ago 23, 2006 6:56 pm
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 !!!
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
>