Jump to content

Mozilla Activex Control


svennie
 Share

Recommended Posts

Hi,

If you would like to use Mozilla instead of IE for ActiveX, try out this :) .

You can download the ActiveX control here. It seems to also be included in newer versions of Mozilla or something, however it seems to not be included in Firefox. So just get it there.

Here's the example:

#include <GUIConstants.au3>
$oIE = ObjCreate("Mozilla.Browser.1")
GUICreate ( "Embedded Web control Test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX      = GUICtrlCreateObj   ( $oIE,     10, 40 , 600 , 360 )
$GUI_Button_Back    = GuiCtrlCreateButton   ("Back",     10, 420, 100,  30)
$GUI_Button_Forward = GuiCtrlCreateButton   ("Forward", 120, 420, 100,  30)
$GUI_Button_Home    = GuiCtrlCreateButton   ("Home",    230, 420, 100,  30)
$GUI_Button_Stop    = GuiCtrlCreateButton   ("Stop",    330, 420, 100,  30)
GUISetState()
$oIE.navigate("http://www.autoitscript.com")
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            $oIE.navigate("http://www.autoitscript.com")
        Case $msg = $GUI_Button_Back
            $oIE.GoBack
        Case $msg = $GUI_Button_Forward
            $oIE.GoForward
        Case $msg = $GUI_Button_Stop
            $oIE.Stop
    EndSelect
Wend
GUIDelete ()
Exit

It uses exactly the same API as IE so just read the IE ActiveX descriptions :D .

The ActiveX control doesnt require the whole Mozilla browser.

And it will also not install it... And its the Mozilla browser, not Firefox :oops: .

(get Mozilla here)

And this can help with auto-installing the ActiveX Control:

/D=x:\dirname

Install program to path.

/NCRC

Skip CRC check.

/S

Silent mode

Hope this helps some people.

Good luck!

I don't know if this should be here, it's more like a tutorial on using that thing :( , sorry if this is the wrong place.

And the ActiveX control is not my work, so don't ask my things about the ActiveX control itself.

Get the source here.

Sorry for my English, I'm Dutch... =DMedia UDFINet Adv UDF
Link to comment
Share on other sites

  • 6 months later...

If you add, at the beginning of script the code below:

RunWait('regsvr32.exe "'&@ScriptDir&'\mozctl.dll"')

.....script....

and copile all.

Then copy the compiled script in the installation directory of the Mozilla ActiveX Control (Ex. C:\Program Files\Mozilla ActiveX Control v1.7.12)

The final step is to put all the content of the directory in a CD-Rom (obviously burning it!).

WE CAN HAVE AN INDEPENDENT CD BROWSER RUNNING ON WIN98/98LITE WIN2000 WINXP ....

I THINK IT IS GOOD!

Link to comment
Share on other sites

If you add, at the beginning of script the code below:

RunWait('regsvr32.exe "'&@ScriptDir&'\mozctl.dll"')

.....script....

and copile all.

Then copy the compiled script in the installation directory of the Mozilla ActiveX Control (Ex. C:\Program Files\Mozilla ActiveX Control v1.7.12)

The final step is to put all the content of the directory in a CD-Rom (obviously burning it!).

WE CAN HAVE AN INDEPENDENT CD BROWSER RUNNING ON WIN98/98LITE WIN2000 WINXP ....

I THINK IT IS GOOD!

Yes, INDEED!

thanks for mentioning this possibility!

(svennie: bedankt ook!)

Groeten, greetings

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...