Jump to content
Sign in to follow this  
Medic873

Send text to IE with no form name

Recommended Posts

Medic873

Okay im working with a website and I need to send some data to a field on there website. But there is no form name located in the view source. How can I still send it.

Im currently working with the _IeAttach function will this work and if so. How can I work it properly.

Thank You

Share this post


Link to post
Share on other sites
Rkey

Hi Medic,

I really depends on the format of the website you are trying to send something to.

Maybe you can work with the following function, after defining the object.

_IEPropertySet ( ByRef $o_object, $s_property, $newvalue ) with the $s_property "innertext"

; *******************************************************
; Example 1 - Open a browser with the basic example, check to see if the
;               addressbar is visible, if it is not turn it on. Then change
;               the text displayed in the statusbar
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("basic")
If Not _IEPropertyGet ($oIE, "statusbar") Then _IEPropertySet ($oIE, "statusbar", True)
_IEPropertySet ($oIE, "statustext", "Look What I can Do")
Sleep(1000)
_IEPropertySet ($oIE, "statustext", "I can change the status text")

Share this post


Link to post
Share on other sites
Tvern

Assuming there is a form (just not a named one), you could use _IEFormGetCollection($oIE,$index) where $index points to the instance of the form you want on that page.

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  

×