Jump to content
Sign in to follow this  
thanh159

Embedded Selected Form in Ie ?

Recommended Posts

thanh159

i have login page:

Posted Image

how to embedded only fill form like this

Posted Image

sorry for my bad english :x

thank !!!

Share this post


Link to post
Share on other sites
thanh159

it here : http://thpt-nguyentrungtruc.net/Modules/Login/

#include <IE.au3>

#include <File.au3>

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()

GUICreate("Embedded Web control Test", 640, 580, _

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

$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)

$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)

$GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30)

$GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)

$GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30)

$GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)

GUISetState() ;Show GUI

_IENavigate ($oIE, "http://thpt-nguyentrungtruc.net/Modules/Login/")

Edited by thanh159

Share this post


Link to post
Share on other sites
DCCD

i just wanna tell you that you can login using _IEFormSubmit(), the easy and professional way.

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

_IEErrorHandlerRegister()

$oIE = _IECreateEmbedded()
GUICreate("GUI", 305, 282)
$GUIActiveX = GUICtrlCreateObj($oIE, -642, -293, 1000, 1000)


GUISetState() ;Show GUI

_IENavigate($oIE, "http://thpt-nguyentrungtruc.net/Modules/Login/Default.aspx")

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

GUIDelete()

Exit

Share this post


Link to post
Share on other sites
thanh159

exactly what i need :x

thank you ............... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.