Jump to content

IE_Create_Embedd


Recommended Posts

; *******************************************************
; Nelmen Browser by keen
; Special thanks to Dan!
; *******************************************************
;
#include <GUIConstants.au3>
#include <IE.au3>

_IEErrorHandlerRegister ()


$oIE = _IECreateEmbedded ()
GUICreate("Nelmen Browser", 640, 580, _
 (@DesktopWidth - 754) / 2, (@DesktopHeight - 580) / 2, _
 $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUI_Input = GUICtrlCreateInput("", 10, 10, 540)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 748, 360)
$GUI_Button_Go = GUICtrlCreateButton("Go", 560, 10, 50, 20, $BS_DEFPUSHBUTTON)
$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", 340, 420, 100, 30)

GUISetState()      ;Show GUI

_IENavigate ($oIE, "http://www.zetastyles.com")

; Waiting for user to close the window
While 1
$msg = GUIGetMsg()
Select
 Case $msg = $GUI_EVENT_CLOSE
  ExitLoop
 Case $msg = $GUI_Button_Home
  _IENavigate ($oIE, "http://www.zetastyles.com")
 Case $msg = $GUI_Button_Back
  _IEAction ($oIE, "back")
 Case $msg = $GUI_Button_Forward
  _IEAction ($oIE, "forward")
 Case $msg = $GUI_Button_Stop
  _IEAction ($oIE, "stop")
        Case $GUI_Button_Go
            $sUsername = GUICtrlRead($GUI_Input)
    EndSwitch
    EndSelect
WEnd

GUIDelete()

Exit

Alright so here's the problem I want a regular browser that will open up MAXZIMIED so the v scrollbar or h scroll bar dont appear.

And i want in input box that whatever you type it goes in the select page.

How would you go about? :P

[center]Cookyx.com :: Simple LAN Chat[/center]

Link to comment
Share on other sites

Is your question how to get rid of the scroll bars or something else?

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

  • Moderators

Is your question how to get rid of the scroll bars or something else?

Dale

I'm not quiet following you either.

First off, _IECreateEmbedded() does not create a "regular browser", so how do you expect to make it maximized? If your just wanting to get rid of the scroll bars you can use the scroll property to specify that.

Secondly, where do you want the input text to be inserted on the page? I made a script here a while back that was somewhat of a real-time html editor that might give you some ideas.

Link to comment
Share on other sites

I think he means he wants the scroll property set to no and I think he also wants to create an input box like so below:

#include <GUIConstants.au3>

$hGui = GUICreate("IE Example",300,500)

$oIE = ;;; whatever you do for _IECreateEmbedded 'cos I create my own without UDFs - set to 0,25 xy and 275,500 ;;;

$oIE.scroll = "no"

$hAddr = GUICtrlCreateInput("", 0, 0, 25, 500)

While 1 ;< GUIGetMsg Loop

    $vMsg = GUIGetMsg()

    Select ;< GUIGetMsg Select

    Case $vMsg = $GUI_EVENT_CLOSE

        Exit

    Case $vMsg = $hAddr

        $oIE.Navigate(GUICtrlRead($hAddr)) ;;; for some reason won't work but you know what it's about ;;;

    Case Else

        $iDummy = 0

    EndSelect ;< GUIGetMsg Select

WEnd ;< GUIGetMsg Loop

Etc...

[size="4"]YOU SHALL NOT PARSE!![/size]
Link to comment
Share on other sites

This is the script I was talking about.

HTML Editor

Not sure how to get rid of just one, but this shoud get rid of both.

$oIE.scroll = "no"

Dale

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

If you need to know what he is talking about i can help. He is making a web browser. He wants the embedded IE to expand when you press the button on you title bar. He wants it to expand with the GUI.

As for the imput box he wants it a imput box and when you press go it takes you to the website you typed in.

[center]Kesne's Bar & Grill[/center]

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...