News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

get the current url from firefox

Started by ragdog, February 26, 2008, 08:40:50 PM

Previous topic - Next topic

ragdog

hi guys

i have a problem with get the current url from firefox
hav your an idea?

i have only found a autoit example!

greets and thanks in forward

ragdog

[attachment deleted by admin]

jj2007

Maybe ask Jerry: http://mozmonkey.com/tinyurl/ ?
I don't want to discourage you, but the AutoIt example works with DDE, which is notoriously buggy and officially unsupported. I say "officially" because DDE seems to work with XP - the MDG dashboard uses a 16-bit DDE implementation to export graphs to MS Word. Writing it was a nightmare, though...
Another option is to chase the Mozilla community. FindWindow fails with that browser, despite of the OpenSource hype. I still use it as a matter of principle, but those guys need a kick every now and then.

ragdog

thanks for your reply

is it possible to translate that into masm32 or something equal like API's ?



function GetActiveBrowsersURL(Service: string): String;
var ClDDE: TDDEClientConv; zwi:PChar;adr:String;
begin
Result:= '';
ClDDE:= TDDEClientConv.Create(nil);
with ClDDE do begin
SetLink(Service,'WWW_GetWindowInfo');
zwi:= RequestData('0xFFFFFFFF');
adr:= StrPas(zwi);
Result:= Copy(adr,2,pos(',',adr)-3);
StrDispose(zwi);
CloseLink;
end;
ClDDE.Free;
end;

Call:
url.text:= GetActiveBrowsersURL('firefox');


thanks in forward