supersonic Posted September 15, 2016 Posted September 15, 2016 (edited) Hello - I'm trying to create a resizable GUI with two or more embedded IE objects using _IECreatedEmbedded(). Currently I'm not able to create more than one emb. IE object and furthermore it seems not to be possible to work with IE shortcuts (e. g. CTRL +/- for reszising or CTRL P for printing dialog). Here's a reproducer: expandcollapse popup#include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> GUICreate("TEST", 800, 600, (@DesktopWidth - 800) / 2, (@DesktopHeight - 600) / 2, $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) Local $oIE = _IECreateEmbedded() Local $iGUI1_O0 = GUICtrlCreateObj($oIE, 10, 10, 780, 285) Local $oIE2 = _IECreateEmbedded() Local $iGUI1_O1 = GUICtrlCreateObj($oIE2, 10, 305, 780, 285) GUISetState(@SW_SHOW) _IENavigate($oIE, "http://www.autoitscript.com") _IEAction($oIE, "stop") _IENavigate($oIE2, "http://www.autoitscript.com") _IEAction($oIE2, "stop") While 1 Local $iMsg = GUIGetMsg() Select Case $iMsg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() Exit Is there something I did wrong? How can I work around this behaviour? Edited September 15, 2016 by supersonic
genius257 Posted September 15, 2016 Posted September 15, 2016 Only problem i can see when i try to run your script is that the first _IENavigate seems to never finish (or maybe i just didn't give it enough time) if you change your _IENavigate Calls to: _IENavigate($oIE, "http://www.autoitscript.com", 0) The script does not wait for the object to finish, and both controls work. The "problem" with IE shortcuts i can't seem to solve. It works with $oIE, until $oIE2 is created then it works with $oIE2 My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser
supersonic Posted September 15, 2016 Author Posted September 15, 2016 genius257, thank you. Maybe anyone else?
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