Jump to content

Embedded in GUI


vi6ora
 Share

Recommended Posts

Hi. I want to make a embedded window in my gui. Here is my code:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>




$Form1 = GUICreate("Form1", 696, 481, 193, 125)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\My Documents\Моите получени файлове\V3 copy.jpg", 0, 0, 692, 476, 0)
$Input1 = GUICtrlCreateInput("", 80, 312, 185, 21)
$Button1 = GUICtrlCreateButton("...", 280, 312, 35, 17, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetTip(-1, "Browse")
$Label1 = GUICtrlCreateLabel("Please select your Aion Folder", 80, 288, 146, 17)
GUICtrlSetBkColor(-1, 0xFFFBF0)
$Launch = GUICtrlCreateButton("Launch", 136, 352, 75, 25, 0)
GUICtrlSetFont(-1, 9, 800, 0, "Myriad Pro")
GUICtrlSetBkColor(-1, 0xD4D0C8)
GUICtrlSetTip(-1, "Launch Vitality Aion")
GUICtrlSetCursor (-1, 0)
$Vote = GUICtrlCreateButton("Vote", 352, 336, 75, 25, 0)
GUICtrlSetFont(-1, 9, 800, 0, "Tahoma")
GUICtrlSetColor(-1, 0x008080)
GUICtrlSetBkColor(-1, 0xDCDCDC)
GUICtrlSetTip(-1, "Vote for Vitality Aion")
$Button2 = GUICtrlCreateButton("Button2", 312, 360, 75, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUICtrlSetTip(-1, "Visit Aion Vitality Web Page")
$Button3 = GUICtrlCreateButton("Button3", 376, 360, 75, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUICtrlSetTip(-1, "Visit Vitality Aion Forum")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

I want to place the embedded window at

Left: 232

Top: 104

The Url is lets say google.com

If it is possible to make it without framework.

Thank you in advance

Link to comment
Share on other sites

Maybe..

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>


 $oIE = ObjCreate("Shell.Explorer.2")


$Form1 = GUICreate("Form1", 696, 481, 193, 125)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\My Documents\????? ???????? ???????\V3 copy.jpg", 0, 0, 692, 476, 0)
GUICtrlSetState( -1, $GUI_DISABLE)

$GUIActiveX = GUICtrlCreateObj ($oIE, 232, 104, 400, 200)

$oIE.navigate("http://www.autoitscript.com")


$Input1 = GUICtrlCreateInput("", 80, 312, 185, 21)
$Button1 = GUICtrlCreateButton("...", 280, 312, 35, 17, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetTip(-1, "Browse")
$Label1 = GUICtrlCreateLabel("Please select your Aion Folder", 80, 288, 146, 17)
GUICtrlSetBkColor(-1, 0xFFFBF0)
$Launch = GUICtrlCreateButton("Launch", 136, 352, 75, 25, 0)
GUICtrlSetFont(-1, 9, 800, 0, "Myriad Pro")
GUICtrlSetBkColor(-1, 0xD4D0C8)
GUICtrlSetTip(-1, "Launch Vitality Aion")
GUICtrlSetCursor (-1, 0)
$Vote = GUICtrlCreateButton("Vote", 352, 336, 75, 25, 0)
GUICtrlSetFont(-1, 9, 800, 0, "Tahoma")
GUICtrlSetColor(-1, 0x008080)
GUICtrlSetBkColor(-1, 0xDCDCDC)
GUICtrlSetTip(-1, "Vote for Vitality Aion")
$Button2 = GUICtrlCreateButton("Button2", 312, 360, 75, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUICtrlSetTip(-1, "Visit Aion Vitality Web Page")
$Button3 = GUICtrlCreateButton("Button3", 396, 360, 75, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUICtrlSetTip(-1, "Visit Vitality Aion Forum")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

8)

NEWHeader1.png

Link to comment
Share on other sites

Maybe..

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>


 $oIE = ObjCreate("Shell.Explorer.2")


$Form1 = GUICreate("Form1", 696, 481, 193, 125)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\Administrator\My Documents\????? ???????? ???????\V3 copy.jpg", 0, 0, 692, 476, 0)
GUICtrlSetState( -1, $GUI_DISABLE)

$GUIActiveX = GUICtrlCreateObj ($oIE, 232, 104, 400, 200)

$oIE.navigate("http://www.autoitscript.com")


$Input1 = GUICtrlCreateInput("", 80, 312, 185, 21)
$Button1 = GUICtrlCreateButton("...", 280, 312, 35, 17, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetTip(-1, "Browse")
$Label1 = GUICtrlCreateLabel("Please select your Aion Folder", 80, 288, 146, 17)
GUICtrlSetBkColor(-1, 0xFFFBF0)
$Launch = GUICtrlCreateButton("Launch", 136, 352, 75, 25, 0)
GUICtrlSetFont(-1, 9, 800, 0, "Myriad Pro")
GUICtrlSetBkColor(-1, 0xD4D0C8)
GUICtrlSetTip(-1, "Launch Vitality Aion")
GUICtrlSetCursor (-1, 0)
$Vote = GUICtrlCreateButton("Vote", 352, 336, 75, 25, 0)
GUICtrlSetFont(-1, 9, 800, 0, "Tahoma")
GUICtrlSetColor(-1, 0x008080)
GUICtrlSetBkColor(-1, 0xDCDCDC)
GUICtrlSetTip(-1, "Vote for Vitality Aion")
$Button2 = GUICtrlCreateButton("Button2", 312, 360, 75, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUICtrlSetTip(-1, "Visit Aion Vitality Web Page")
$Button3 = GUICtrlCreateButton("Button3", 396, 360, 75, 25, 0)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetBkColor(-1, 0xA6CAF0)
GUICtrlSetTip(-1, "Visit Vitality Aion Forum")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

8)

@Valuater

Thanks very much.

I created a post My Post

Unfortunately no responses :( but this is kinda of what i am looking for. I don't mean to hijack this thread but if you have any ideas you could provide me over on my thread >_< something like what you have posted in this thread :( hehe

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