Do you need any of the standard shell functionality, if not then why not
make your program the shell?

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Graham Mayes
> Sent: Thursday, 20 September 2001 12:16
> To: Multiple recipients of list delphi
> Subject: [DUG]: Simulating a mouse click
>
>
> Hi
> I am still stuck
> .. a desired action does not take place until form1 is clicked.
> I want this to take place automatically . . so
> from the help file..
>    The mouse_event function synthesizes mouse motion and button clicks.
> In the AppOnActivate I wrote
>   mouse_event(
>     MOUSEEVENTF_LEFTDOWN,     // flags specifying various
> motion/click variants
>     0,        // horizontal mouse position or position change
>     0,        // vertical mouse position or position change
>     0,        // unused, reserved for future use, set to zero
>     0 // 32 bits of application-defined information
>    );
> It works. (well messagebeep(0) in form1.click event says it does)
> But the desired action does not take place as it does when I physically
> click the form.
>
> Any ideas?
>
> ______________________________________________
> Graham Mayes
>
> http://www.answersoft.co.nz
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to