English
Forum

HTML Control

 

Georg
Bernhardt
Hi,
can someone help, How one from the HTML Control of Uwe Pascal detect can which url straight therein loaded is?

Georg
 
XProfan 10
12/05/05  
 




Uwe
''Pascal''
Niemeier
Hello Georg!

I knows not, which demonstration very You verwendest, but I Have there something gebastelt, the eigendlich with everything compatible his might, what here so rumschwirrt.
CompileMarkSeparation
window 10,10-750,500
usermessages 16
 $H Messages.ph---Standart
 $H Windows.ph----Standart
def AtlAxWinInit(0) !atl.dll,AtlAxWinInit
def AtlAxCreateControl(4) !atl.dll,AtlAxCreateControl
def AtlAxGetControl(2) !atl.dll,AtlAxGetControl
def CLSIDFromString(2) !ole32,CLSIDFromString
def SysFreeString(1) !oleaut32,SysFreeString

proc WideToMulti--------------------------------------------------------------

    parameters Quelle&,Ziel&
    return ~WideCharToMultiByte(0,0,Quelle&,-1,Ziel&,250,0,0)
    endproc-----------------------------------------------------------------------

    proc StringToGUID-------------------------------------------------------------

        parameters GUID$,GUID&
        declare Temp$
        Temp$=space$(80)
        ~MultiByteToWideChar(1,1,addr(GUID$),-1,addr(Temp$),80)
        CLSIDFromString(addr(Temp$),GUID&)
        endproc-----------------------------------------------------------------------

        proc CallMethod---------------------------------------------------------------

            parameters IFace&,Method&
            declare VTable&
            VTable&=long(IFace&,0)
            Method&=long(VTable&,Method&*4)
            case %pcount=2:return call( Method&,IFace& )
            case %pcount=3:return call( Method&,IFace&,&(3) )
            case %pcount=4:return call( Method&,IFace&,&(3),&(4) )
            endproc-----------------------------------------------------------------------
            declare IID#
            dim IID#,16
            declare dll&
            dll&=usedll(atl.dll)
            AtlAxWinInit()
            declare Web&
            Web&=control(AtlAxWin,Shell.Explorer.1,$50000000,300,10,400,400,%hwnd,0,0,$200)
            declare IUnknown&
            AtlAxGetControl(Web&,addr(IUnknown&))--IUnknown-Interface ermitteln
            declare IWebBrowser&
            StringToGUID {D30C1661-CDAF-11d0-8A3E-00C04FC9E26E},IID#-IID_IWebBrowser2
            CallMethod(IUnknown&,0,IID#,addr(IWebBrowser&))--IUnknown:QueryInterface
            CallMethod(IWebbrowser&,9)---------------------------------IWebbrowser:GoHome (Startseite)
            declare a&,a#
            dim a#,256

            while 1

                waitinput
                CallMethod(IWebbrowser&,30,addr(a&))--------------------IWebbrowser:get_LocationURL
                WideToMulti(a&,a#)
                settext %hwnd,URL :+string$(a#,0)
                SysFreeString(a&)--Buffer freigeben
                case %umessage=16:break

            endwhile

            destroywindow(Web&)
            case dll&:../function-references/XProfan/freedll/'>freedll dll&

Einziger disadvantage is, the one Click on a Link not to that Breakthrough of WaitInput führt; there must one first again elsewhere there clicking. but the liesse itself according to usage z.B. by SetTimer bypass.
hope it helps you!
Pascal
 
12/07/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.689 Views

Untitledvor 0 min.
Thomas Freier07/18/18
Peter Max Müller11/18/17
A.Tietz11/30/14
Dean Wood01/25/13
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie