Jump to content

IE.au3


 Share

Go to solution Solved by HiNoTora,

Recommended Posts

Hihi i made one Gui, but i have somekind error in it.

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

_IEErrorHandlerRegister()

Local $oIE = _IECreateEmbedded()
GUICreate("EmbeddedWebControl-Test", 1000, 1200, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 10, 40, 400, 200)

GUISetState() 
_IENavigate($oIE, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")


While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
         
            
       
WEnd
GUIDelete()

Exit

And as u can see GUI is big enough, So id like to add one more frame in it with different webpage. but as much i try, it allways opens up new gui with new page. How i can have second one ion side in this GUI?

Link to comment
Share on other sites

Hihi i made one Gui, but i have somekind error in it.

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

_IEErrorHandlerRegister()

Local $oIE = _IECreateEmbedded()
GUICreate("EmbeddedWebControl-Test", 1000, 1200, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 10, 40, 400, 200)

GUISetState() 
_IENavigate($oIE, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")


While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
         
            
       
WEnd
GUIDelete()

Exit

And as u can see GUI is big enough, So id like to add one more frame in it with different webpage. but as much i try, it allways opens up new gui with new page. How i can have second one ion side in this GUI?

And one more thiing, NO scroll bars and Gui shold be topmost >.<

Link to comment
Share on other sites

Something like this?

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

_IEErrorHandlerRegister()

Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded()
Global $iGUIWidth = @DesktopWidth-30, $iGUIHeight = @DesktopHeight-70
$hGUI = GUICreate("EmbeddedWebControl-Test", $iGUIWidth, $iGUIHeight, 0, 0, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$hObj1 = GUICtrlCreateObj($oIE1, 10, 10, $iGUIWidth-20, ($iGUIHeight/2) - 5)
$hObj2 = GUICtrlCreateObj($oIE2, 10, ($iGUIHeight/2) +15, $iGUIWidth-20, ($iGUIHeight/2) - 25)
GUISetState()
_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IENavigate($oIE2, "http://www.autoitscript.com")
While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd
GUIDelete()
Exit

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Solution

 

Something like this?

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

_IEErrorHandlerRegister()

Global $oIE1 = _IECreateEmbedded(), $oIE2 = _IECreateEmbedded()
Global $iGUIWidth = @DesktopWidth-30, $iGUIHeight = @DesktopHeight-70
$hGUI = GUICreate("EmbeddedWebControl-Test", $iGUIWidth, $iGUIHeight, 0, 0, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$hObj1 = GUICtrlCreateObj($oIE1, 10, 10, $iGUIWidth-20, ($iGUIHeight/2) - 5)
$hObj2 = GUICtrlCreateObj($oIE2, 10, ($iGUIHeight/2) +15, $iGUIWidth-20, ($iGUIHeight/2) - 25)
GUISetState()
_IENavigate($oIE1, "http://fxsignals.fxmarketleaders.com/shortsignalsng.aspx")
_IENavigate($oIE2, "http://www.autoitscript.com")
While 1
    Local $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd
GUIDelete()
Exit

YUSH! Thanks man.. $oIE2 = _IECreateEmbedded() was the thing i didnt know xD thanks again

Link to comment
Share on other sites

:)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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