Jump to content

Closing a window closes everything....


Recommended Posts

I'm an utter non-expert coder, but my autoit window now has some nice html graphs to display.

The autoit window itself is to small to hold it. Using tabs utterly mess up my listboxes, and if I call the html in a new window, my whole autoit closes down when I close it.

So what am I doing wrong.

func creategui()

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
;GUICreate("Embedded Web control Test", 640, 580, _
  ;      (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
 ;       $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$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", 340, 420, 100, 30)
_IENavigate ($oIE, @ScriptDir& "\visifire.html")

; 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.autoitscript.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")
    EndSelect
WEnd
      ;Show GUI
endfunc

Is creates a new gui window.

So how do I close this without closing everything.

Sorry for being thick.

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