svennie Posted May 14, 2006 Share Posted May 14, 2006 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 . The ActiveX control doesnt require the whole Mozilla browser. And it will also not install it... And its the Mozilla browser, not Firefox . (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 modeHope 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 More sharing options...
spyrorocks Posted May 14, 2006 Share Posted May 14, 2006 This is interesting. I think this should have been put in chat though. I think it is kinda useless. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center] Link to comment Share on other sites More sharing options...
MatteoGuallini Posted November 15, 2006 Share Posted November 15, 2006 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! http://www.vigevano-prabis.it/ Link to comment Share on other sites More sharing options...
dabus Posted November 15, 2006 Share Posted November 15, 2006 Does exist... 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 Link to comment Share on other sites More sharing options...
MatteoGuallini Posted November 15, 2006 Share Posted November 15, 2006 Does exist... wink.gifHave 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.comHave you got a link regarding "Older Firefox-installers"? http://www.vigevano-prabis.it/ Link to comment Share on other sites More sharing options...
ConsultingJoe Posted November 15, 2006 Share Posted November 15, 2006 (edited) This looks awsome. Down with IE Edited November 15, 2006 by zerocool60544 Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
heibel Posted November 15, 2006 Share Posted November 15, 2006 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 More sharing options...
ConsultingJoe Posted November 15, 2006 Share Posted November 15, 2006 I installed the mozilla browser and it still gave me an error in the script with ".navigate" command Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
NELyon Posted November 15, 2006 Share Posted November 15, 2006 I'm gonna test this later. If this works, I will be forever in your debt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now