unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ShellApi, StdCtrls, ImgList, ExtCtrls;
type
TForm3 =
class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure XPColorMap1ColorChange(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form3: TForm3;
implementation
{$R *.dfm}
procedure TForm3.Button1Click(Sender: TObject);
begin
ShellExecute(Application.Handle,
nil , '
http://google.de',
nil,
nil, SW_SHOWNORMAL);
sleep(2500);
Keybd_Event (VK_TAB, 1, 0, 0);
sleep(20);
Keybd_Event (VK_TAB, 1, 0, 0);
sleep(150);
Keybd_Event (VK_RETURN, 1, 0, 0);
sleep(1500);
close();
end;
end.