Hi !
Two procedures where we could usefully to add
setClip() (with or without notifications).
I know, it's a detail; but it's more comfortable for HFS users.
procedure TmainFrm.Viewhttprequest1Click(Sender: TObject);
var
cd: TconnData;
begin
cd:=selectedConnection();
if cd = NIL then exit;
msgDlg(first([cd.conn.request.full, cd.conn.getBuffer(), '(empty)']), MB_OK, 'HTTP Request ');
setClip(first([cd.conn.request.full, cd.conn.getBuffer(), '(empty)']));
tray.balloon('The http request is copied to the clipboard.', 7);end;
******************************************************************************
procedure TmainFrm.Findexternaladdress1Click(Sender: TObject);
const
MSG = 'Can''t find external address'#13'( %s )';
var
service: string;
begin
// this is a manual request, try twice
if not getExternalAddress(externalIP, @service)
and not getExternalAddress(externalIP, @service) then
begin
msgDlg(format(MSG, [service]), MB_ICONERROR);
exit;
end;
setDefaultIP(externalIP);
msgDlg(externalIP);
setClip(externalIP);
tray.balloon('The IP address is copied to the clipboard.', 7);end;