Board index » delphi » GetFocus & win95

GetFocus & win95

 GetFocus is thread dependent

so I can't post keydown message to over applications.

thanks ............

for any solutions .

        dominique.gi...@obspm.fr

 

Re:GetFocus & win95


In article <4qtmr4$...@upsn6.u-psud.fr>, sac...@omega4.obspm.fr writes
Quote
> GetFocus is thread dependent

>so I can't post keydown message to over applications.

>thanks ............

>for any solutions .

>       dominique.gi...@obspm.fr

You need to use AttachThreadInput to attach to the thread of the
application you want to send messages to. Remember to use it again to
detach from the thread afterwards.
--
Julian Moss                                      J M Technical Services
{*word*19}ermouth, Cumbria, UK                 Technical Writing and Software
(+44) 1900 826514                              jm...@jmtech.demon.co.uk
    Member of the Telework, Telecottage and Telecentre Association

Re:GetFocus & win95


Quote
>   sac...@omega4.obspm.fr writes:
>   GetFocus is thread dependent

>  so I can't post keydown message to over applications.

>  thanks ............

>  for any solutions .

>    dominique.gi...@obspm.fr

Try GetForeGroundWindow .

Michael Caracena
carac...@henge.com

Other Threads