01 2014 档案

摘要:procedure CloseGameSver();var H1, h2: HWND;begin H1 := FindWindow('TForm1', nil); h2 := FindWindowEx(H1, 0, 'ConsoleWindowClass', nil); // ShowMessage(Inttostr(h2)); SendMessage(h2, WM_CLOSE, 0, 0);end; 阅读全文
posted @ 2014-01-21 20:28 XE2011 阅读(237) 评论(0) 推荐(0) 编辑
摘要:uses ShellApi;procedure TForm1.Button1Click(Sender: TObject);var filename, Path: string;begin filename := 'D:\WmgjServer146\server\start.bat'; Path := ExtractFilePath(filename); SetCurrentDir(Path); ShellExecute(Handle, 'open', PWideChar(filename), 'run', nil, SW_SHOWNORMAL); 阅读全文
posted @ 2014-01-21 15:13 XE2011 阅读(907) 评论(0) 推荐(0) 编辑
摘要:附件:http://files.cnblogs.com/xe2011/OnMinsize.rarunit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls;type TForm1 = class(TForm) TrayIcon1: TTrayIcon; procedure TrayIcon1Click(Sender: TObject); private procedure OnMinsize(v... 阅读全文
posted @ 2014-01-05 12:17 XE2011 阅读(223) 评论(0) 推荐(0) 编辑
摘要:EXE: http://files.cnblogs.com/xe2011/spt.rarpascal DELPHI 2010: http://files.cnblogs.com/xe2011/wmgj2014-4-9-183216.7z【2014-1-8】[2014-1-2][2014-1-1] 1 unit Unit1; 2 3 interface 4 uses 5 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 6 Dialogs, StdCtrls, ExtCtrl... 阅读全文
posted @ 2014-01-01 12:48 XE2011 阅读(2199) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示