Thanks Christof!
This is what I was looking for!

Christof Wollenhaupt wrote:
> Function KillTask
> Parameter tcWindowName
>
>   Declare Integer FindWindow in Win32Api Integer, String
>   Declare Integer PostMessage in Win32Api Integer, Integer, Integer, Integer
>
>   #Define WM_CLOSE     16
>
>   Local lnHwnd
>   lnHwnd = FindWindow(0, tcWindowName)
>   If lnHwnd = 0
>     Return
>   Endif
>   PostMessage( m.lnHwnd, WM_CLOSE, 0, 0 )  
>
> Return
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/4a85b6ba.9050...@netzero.net
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to