Jump to content

_IECreateembedded behaving unexpectedly


Recommended Posts

Hi guys,

I have been playin around with node editors a bit, mainly this litegraph by jagenjo ,but I cant run the demo on my Internet  explorer,The problem is that when I right click on a Node the menu that appears goes to the top left and the graph doesnt respond the clicks in the menu ,This problem doesnt exist in google chrome though.

 

Expected behaviour: The menu should appear where the user clicks and should respond to the clicks

Showing behaviour: The menu appears at top left and doesnt respond when 'adding nodes'  option is clicked

Code I am using,

; Trap COM errors so that 'Back' and 'Forward'
; outside of history bounds does not abort script
; (expect COM errors to be sent to the console)

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

Local $oIE = _IECreateEmbedded()
GUICreate("Embedded Web control Test", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 10, 40, 600, 360)

Global $g_idError_Message = GUICtrlCreateLabel("", 100, 500, 500, 30)
GUICtrlSetColor(-1, 0xff0000)

GUISetState(@SW_SHOW) ;Show GUI

_IENavigate($oIE, "http://localhost:8843")
_IEAction($oIE, "stop")

; Waiting for user to close the window
While 1
    Local $iMsg = GUIGetMsg()
    Select
        Case $iMsg = $GUI_EVENT_CLOSE
            ExitLoop

    EndSelect
WEnd

GUIDelete()

Exit

Func CheckError($sMsg, $iError, $iExtended)
    If $iError Then
        $sMsg = "Error using " & $sMsg & " button (" & $iExtended & ")"
    Else
        $sMsg = ""
    EndIf
    GUICtrlSetData($g_idError_Message, $sMsg)
EndFunc   ;==>CheckError

 

Attatched screenshots of whats happening.

Is this a problem with IE as it works good in Chrome and firefox

 

in chrome.png

in IE 2.png

in IE.png

in IEembedded.png

No matter whatever the challenge maybe control on the outcome its on you its always have been.

MY UDF: Transpond UDF (Sent vriables to Programs) , Utter UDF (Speech Recognition)

Link to comment
Share on other sites

I solved it by rearrangin the order of guictrlcreateobj,I had 2 tabs where there where 2 embedded IE ,I rearranged it in such a way that the this comes last in code,IDK why but it works,I guess there is some secret illuminati stuff going on the background,LOL

No matter whatever the challenge maybe control on the outcome its on you its always have been.

MY UDF: Transpond UDF (Sent vriables to Programs) , Utter UDF (Speech Recognition)

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