Jump to content

Iframe configuration in tabbed window


iROKA
 Share

Recommended Posts

Greetings to all of you this is my first post after working in autoit for a few days im stilla complete noob, i have done searches but i can not find this specific problem in forums...ok here goes.

I have managed to get flashchat from tufat iframed into my application GUI, i'm able to load the chat without complex errors, however the IE object window exists on a tab in my application but none of the tabs are showing, the application is non responsive and has trouble closing the itself with out using the system tray to exit...

i have no idea what the proper syntax is used to keep the IE window with the chat system loaded as a tab in my application here is an example of what i managed to come up with:

CODE
$INVITESTAB = GUICtrlCreateTabItem("Help")

GUISetFont(8, 400)

$HEADERS = GUICtrlCreateLabel("Bug reports go to admin@mobmyspace.com Please Put " & $GAME & " 'BUG REPORT' in your title.", 10, 25, 600)

_IEErrorHandlerRegister()

$oIE = _IECreateEmbedded()

$GUI = GUICreate("MobMySpace Chat", 640, 580, _

(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _

$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_EX_MDICHILD)

$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 620, 480)

GUISetState() ;Show GUI

_IENavigate($oIE, "http://www.mobmyspace.com/chat/flashchat.php")

While 1

$msg = GUIGetMsg()

If $msg = -3 Then ExitLoop

WEnd

Is there anyone who can assist me with this problem iframe, single frame in tabbed window within autoit application.

or at least tell me why this code seems to be breaking my script?

I'm pulling hair out over here...thanks in advance!

Link to comment
Share on other sites

Hello iROKA,

try this:

;-Begin-----------------------------------------------------------------

  #Include "..\Include\IE.au3"
  #Include "..\Include\WindowsConstants.au3"
  #Include "..\Include\GUIConstantsEx.au3"

  Dim $INVITESTAB, $AnotherTab, $HEADERS, $GAME, $oIE, $GUI

  _IEErrorHandlerRegister()

  $GUI = GUICreate("MobMySpace Chat", 640, 580, _
    (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
    $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + _
    $WS_EX_MDICHILD)
  GUISetFont(8, 400)

  GUICtrlCreateTab(10, 10, 620, 560)
 ;-FirstTab----------------------------------------------------------
      $AnotherTab = GUICtrlCreateTabItem("Another")

 ;-SecondTab---------------------------------------------------------
      $INVITESTAB = GUICtrlCreateTabItem("Help")

      $HEADERS = GUICtrlCreateLabel("Bug reports go to " & _
        "admin@mobmyspace.com Please Put " & $GAME & _
        " 'BUG REPORT' in your title.", 25, 40, 600)

      $oIE = _IECreateEmbedded()
      $GUIActiveX = GUICtrlCreateObj($oIE, 25, 60, 590, 495)
      _IENavigate($oIE, "www.mobmyspace.com/chat/flashchat.php")

;-EndOfTab------------------------------------------------------------
  GUICtrlCreateTabItem("")

  GUISetState();Show GUI

;-MainLoop------------------------------------------------------------
    While 1
      $msg = GUIGetMsg()
      If $msg = $GUI_EVENT_CLOSE Then
        ExitLoop
      EndIf
      Sleep(25)  
    Wend

;-End-------------------------------------------------------------------

Solve this your problem?

Cheers

Stefan

Edited by StSchnell
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...