Ok, well, With a bit of digging around, I found a solution which worked, BUT
now when the dialog box appears, (from doing CTRL+S (save)) I cant seem to
be able to send keys to the dialog box to enter a filename.
The Filename Textbox has the focus by defualt but nothing happens.
Anyone had tis experiance ??
Cheers, Jeremy Coulter
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jeremy Coulter
> Sent: Sunday, July 25, 1999 11:04
> To: Multiple recipients of list delphi
> Subject: [DUG]: SendKeys Problems
>
>
> Hi all.
> I have a need to pass some key strokes to a program I have.
> I found a wee component that does just this.
>
> This is fine, but one of the small limitations it has is that I
> have to pass
> char codes, i.e. #13 for enter.
>
> But the main thing I need to do is pass CTRL+S to the window I
> need to send
> the key strokes to.
>
> I wrote a wee app. ages ago (D1 I think) that tells me a keypress's char
> value.
> So I did CTRL+S and it told me its value was 19 (or #19).
> But when I pass this it doesn't like it.....I have been sending CTRL+Z to
> notepad (#26) but that only puts a Z into the edit area !
> Does anyone know of anyother way to do a Sendkeys that they have
> found works
> well? esp. with CTRL+ combonations.....or can anyone provide me with some
> code that works well ??
> I would hate to have to do this in VB.....agh.......
>
> Thanks, Jeremy Coulter
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz