Re: Opening external and editing


[ DelphiLand FAQ ]

Posted by RBH on April 15, 2004 at 14:56:58:

In Reply to: Re: Opening external and editing posted by Justin on April 15, 2004 at 01:31:14:

: : try with keybd_event from Windows SDK
: What do i do with that and what do i put in my uses when i want to use shellopen as a procedure... it was something like shell open api

You have to put ShellAPI in your uses.

this code send F9 to an App

procedure SendKey;
begin
keybd_event(VK_F9, 0, KEYEVENTF_EXTENDEDKEY, 0);
keybd_event(VK_F9, 0, KEYEVENTF_KEYUP, 0);
end;



Related Articles and Replies:


[ DelphiLand: free Delphi source code, tips, tutorials ]