I am new to using autoit, i am opening an explorer shell in a tab of a gui. I would like to communicate with this webpage...what am i doing wrong?
here is my code
#include <IE.au3>
$Tab=GUICtrlCreateTab (0,0, 1000,700)
$Tab0=GUICtrlCreateTabitem ("Database")
$oIE = ObjCreate("Shell.Explorer.2")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 25, 900, 670)
GUICtrlSetStyle($oIE, $WS_VISIBLE)
$oIE.navigate("http://directbuy420.com/admin/admin/")
; get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByName($oIE, "logoninfo")
$o_login = _IEFormElementGetObjByName($o_form, "username")
$o_password = _IEFormElementGetObjByName($o_form, "password")
; Set field values and submit the form
_IEFormElementSetValue($o_login, "blank")
_IEFormElementSetValue($o_password, "blank")
_IEFormSubmit($o_form)
Exit
I relize i may need to use the ie attach function, but a m not sure as to how to do that
any help would be greatly appreciated.
Note - If in attempting to help someone checks the page i am loading, i understand that the form names in the above code are incorrect.
Thank you in advance
Edit - It returns the error that the objects declared must be valid objects, it is not finding the objects because it does not see the shell window i guess. how would i activate that window inside the tab to send functions to it?