-
Notifications
You must be signed in to change notification settings - Fork 0
/
INTER.PAS
67 lines (55 loc) · 1.56 KB
/
INTER.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
unit inter;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, hcommon, Hresize, Buttons, ExtCtrls, RXClock, RXCtrls,
ShellAPI, jws99;
type
TFormInter = class(TForm)
TextListBox1: TTextListBox;
RxClock1: TRxClock;
BitBtn1: TBitBtn;
hgResizer1: ThgResizer;
Label1: TLabel;
procedure BitBtn1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure TextListBox1DblClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormInter: TFormInter;
SearchRec: TSearchRec;
implementation
{$R *.DFM}
procedure TFormInter.BitBtn1Click(Sender: TObject);
begin
Close;
end;
procedure TFormInter.FormCreate(Sender: TObject);
begin
TextListBox1.Items.Clear;
FindFirst(AppPath(0)+'inter\*.htm', faAnyFile, SearchRec);
// FindFirst('\uzi\inter\*.htm', faAnyFile, SearchRec);
TextListBox1.Items.Add(SearchRec.Name);
while (FindNext(SearchRec) = 0) do
begin
TextListBox1.Items.Add(SearchRec.Name);
end;
FindClose(SearchRec);
end;
procedure TFormInter.TextListBox1DblClick(Sender: TObject);
var PcharArj: Array[0..250] of char;
stringArj : string;
begin
StringArj:=
'C:\Program Files\Internet Explorer\iexplore -k '+
AppPath(0)+'INTER\'+TextListBox1.Items[TextListBox1.ItemIndex];
//showmessage(StringArj);
StrPCopy(PcharArj, StringArj);
WinExec(PcharArj, SW_NORMAL);
//ShellExecute(Application.Handle,'open',PcharArj, nil, nil, 0);
end;
end.