如何监控ie打开的网址,并作出提示?用ie浏览器,上网,当网址中含有指定的字符时候,给出提示,我的思路是做个timer,但是timer事件中怎么写?谢谢?
解决方案 »
- 如何向FlashFXP的TWinConsole窗口发送消息获取文本?
- idhttp post提交没有参数的数值
- delphi开发wince 程序?
- dephi single to int 类型转换
- 生成可视控件的问题?
- 如何用DELPHI编程控制家庭电器的开关,如电灯,门,音像等,要加中间设备吗?
- 在事件写一个赋值代码出现stack flow错误。
- win2000下为什么不能用这个api函数?
- 来者有分。学李维的《ADO/…》第九章时,出现“必须加载一个dll”,渴望!渴望解答!!
- 在Delphi中有没有调用网上邻居搜查在线电脑并保存到控件中的API函数
- 在delphi7中怎么将数据库内的数值写入stringgrid单元格中?
- 360如何计算开机所用的时间?
Function TForm1.geturl:string;
var
Cliente_DDE: TDDEClientConv;
temp:PChar;
begin
Cliente_DDE:= TDDEClientConv.Create( nil );
with Cliente_DDE do
begin
SetLink( 'Iexplore','WWW_GetWindowInfo');
temp := RequestData('0xFFFFFFFF');
Result := StrPas(temp);
StrDispose(temp);
CloseLink;
end;
Cliente_DDE.Free;
end;
第二部用timer监控
procedure TForm1.Timer1Timer(Sender: TObject);
var
hwnd:thandle;
begin
hwnd:=findwindow('IEframe',nil);
if hwnd<>0 then
begin
if pos('要监控的网址',geturl) then
begin
你要干的事情。。
end;
end;
end;