Sign in to follow this  
Followers 0
svennie

Mozilla Activex Control

9 posts in this topic

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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Does exist... :whistle:

Have a look at Mozilla Embedded -- works out of the box.

Older Firefox-installers were also available as zip-files -- same result.

Off-by-one is the world smallest browser with 3.2 html.

Look here: http://www.offbyone.com

Share this post


Link to post
Share on other sites

Does exist... wink.gif

Have a look at Mozilla Embedded -- works out of the box.

Older Firefox-installers were also available as zip-files -- same result.

Off-by-one is the world smallest browser with 3.2 html.

Look here: http://www.offbyone.com

Have you got a link regarding "Older Firefox-installers"?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

This looks awsome. Down with :whistle: IE ;)

Edited by zerocool60544

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I installed the mozilla browser and it still gave me an error in the script with ".navigate" command


[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

I'm gonna test this later. If this works, I will be forever in your debt :whistle:

Share this post


Link to post
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
Sign in to follow this  
Followers 0