Delphi传IP到NetMetting
来源:互联网 发布:淘宝商品链接在哪 编辑:程序博客网 时间:2024/05/01 17:20
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
h:HWND;
hCombox:HWND;
hConnect:HWND;
function EnumChildWndProc(AhWnd:LongInt;
AlParam:lParam):boolean;stdcall;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
h:=FindWindow(nil,'NetMeeting - 通話なし');
if (h<>0) then
begin
EnumChildWindows(h,@EnumChildWndProc,0);
end;
//showmessage(inttostr(childh));
SendMessage(hCombox,WM_SETTEXT,0,Integer(Pchar(edit1.Text)));
//showmessage(inttostr(hConnect));
//SendMessage(hCombox,WM_SETFOCUS,0,0);
//SendMessage(hCombox,WM_KEYDOWN,VK_RETURN,0);
setForegroundWindow(h);
keybd_event(vk_return,mapVirtualKey(vk_return,0),0,0);
end;
function EnumChildWndProc(AhWnd:LongInt;
AlParam:lParam):boolean;stdcall;
var
WndClassName: array[0..254] of Char;
WndCaption: array[0..254] of Char;
begin
GetClassName(AhWnd,wndClassName,254);
GetWindowText(aHwnd,WndCaption,254);
if (Strpas(wndClassName)='ComboBox') then
begin
hCombox:=ahwnd;
end;
{
if (strpas(wndClassName)='Button') then
begin
hConnect:=aHwnd;
end;
}
{
with form1.memo1 do
begin
lines.add( string(wndClassName));
lines.add( string(wndCaption));
lines.add('-------');
end;
}
result:=true;
end;
end.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
h:HWND;
hCombox:HWND;
hConnect:HWND;
function EnumChildWndProc(AhWnd:LongInt;
AlParam:lParam):boolean;stdcall;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
h:=FindWindow(nil,'NetMeeting - 通話なし');
if (h<>0) then
begin
EnumChildWindows(h,@EnumChildWndProc,0);
end;
//showmessage(inttostr(childh));
SendMessage(hCombox,WM_SETTEXT,0,Integer(Pchar(edit1.Text)));
//showmessage(inttostr(hConnect));
//SendMessage(hCombox,WM_SETFOCUS,0,0);
//SendMessage(hCombox,WM_KEYDOWN,VK_RETURN,0);
setForegroundWindow(h);
keybd_event(vk_return,mapVirtualKey(vk_return,0),0,0);
end;
function EnumChildWndProc(AhWnd:LongInt;
AlParam:lParam):boolean;stdcall;
var
WndClassName: array[0..254] of Char;
WndCaption: array[0..254] of Char;
begin
GetClassName(AhWnd,wndClassName,254);
GetWindowText(aHwnd,WndCaption,254);
if (Strpas(wndClassName)='ComboBox') then
begin
hCombox:=ahwnd;
end;
{
if (strpas(wndClassName)='Button') then
begin
hConnect:=aHwnd;
end;
}
{
with form1.memo1 do
begin
lines.add( string(wndClassName));
lines.add( string(wndCaption));
lines.add('-------');
end;
}
result:=true;
end;
end.
- Delphi传IP到NetMetting
- delphi修改电脑IP
- Delphi 取外网IP
- delphi读取纯真IP数据库
- DELPHI域名解析为IP地址
- Delphi-IP地址的隐藏
- delphi最小化到系统托盘
- 从 Delphi 7 到 Delphi 2010
- 从Delphi 7升级到Delphi XE
- .Delphi7升级到Delphi 2010、Delphi XE、Delphi XE2总结
- Delphi7升级到Delphi 2010、Delphi XE、Delphi XE2总结
- Delphi7升级到Delphi 2010、Delphi XE、Delphi XE2总结
- Delphi7升级到Delphi 2010、Delphi XE、Delphi XE2总结 .
- Delphi7升级到Delphi 2010、Delphi XE、Delphi XE2总结
- 转贴:Delphi-IP地址的隐藏(delphi实现)
- 从DELPHI到JAVA转换
- delphi导出数据到excel
- delphi 导入Excel到数据库
- 开放源代码的软件测试工具
- 打开 linux 防火墙端口
- JAVA的可变类与不可变类
- vc++ 调用web services
- linux 服务器mysql已经配置好,远程连接不上(已解决)
- Delphi传IP到NetMetting
- Spring中常用的操作数据库的(Dao)方法
- 中国经济这轮严冬到底有多重 ,有多长?(为什么说拉动消费性内需是个伪命题?)
- 深入解析MFC -- CString的内存结构
- igb 在 sles 10.1下的安装
- nokia 使用技巧
- 第二天 HellowWorld
- map
- verycd 发布资源教程