Jump to content

_IEFormGetObjByName doesnt work ?


Recommended Posts

please see a.htm (attach file)

I had tried many times but still doesnt work

Here is my code:

#include <IE.au3>
$oIE = _IEAttach ("ABC")
$oForm = _IEFormGetObjByName ($oIE, 'POST')
$oText = _IEFormElementGetObjByName ($oForm, "newCreditCardMonth")
MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText))oÝ÷ ØäZºÚ"µÍÚ[ÛYH ÒQK]LÉÝÂÌÍÛÒQHHÒQP]XÚ
    ][ÝÐPÐ][ÝÊBÌÍÛÑÜHHÒQQÜQÙ]ÛÛXÝ[Û
    ÌÍÛÒQK
BÌÍÛÕ^HÒQQÜQ[[Y[Ù]ØS[YH
    ÌÍÛÑÜK ][ÝÛ]ÐÜY]Ø[Û  ][ÝÊBÙÐÞ
    ][ÝÑÜH[[Y[[YI][ÝËÒQQÜQ[[Y[Ù][YH
    ÌÍÛÕ^
J

But it doesnt work

Please help me

Link to comment
Share on other sites

please see a.htm (attach file)

I had tried many times but still doesnt work

Here is my code:

#include <IE.au3>
$oIE = _IEAttach ("ABC")
$oForm = _IEFormGetObjByName ($oIE, 'POST')
$oText = _IEFormElementGetObjByName ($oForm, "newCreditCardMonth")
MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText))

Or

#include <IE.au3>
$oIE = _IEAttach ("ACB")
$oForm = _IEFormGetCollection ($oIE,0)
$oText = _IEFormElementGetObjByName ($oForm, "newCreditCardMonth")
MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText))

But it doesnt work

Please help me

Add _IEErrorHandlerRegister() to the top and run it from SciTE to get more useful symptoms than "doesnt work". Is the form inside a Frame or iFrame? Is $oIE valid? Is $oForm valid? Is $oText valid? Exactly how does it "doesnt work"?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...