Sign in to follow this  
Followers 0
Qousio

IE.au3 trying to click a button :(

3 posts in this topic

Hello!

I'm trying to make IE click a certain button for me, however I can't seem to understand why it won't work :D

I have tried

$Button = _IEGetObjByName($IE_Create_Variable_Here, "selectitem7");I have also tried IEFormGetObjByName
_IEAction ( $Button, "click" )

and

$Button = _IEGetObjByName($IE_Create_Variable_Here, "selectitem7");I have also tried IEFormGetObjByName
_IEFormSubmit ($Button)

I have also tried to insert "go" instead of "selectitem7".

But it wont work.

I'm quite sure this is the buttons source:

<form name="selectitem7" id="selectitem7" method="POST" action="java script: self_refresh(3, document.getElementById('selectitem7').elements['select'].value);"><input type="submit" name="submit" value="go">&nbsp;<input type="hidden" name="select" value="809"></form></td></tr>

Share this post


Link to post
Share on other sites



You use something like this:

$Form = _IEFormGetObjByName(...)

$Button = _IEFormElementGetObjByName(...)

then you should be able to click it.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

You use something like this:

$Form = _IEFormGetObjByName(...)

$Button = _IEFormElementGetObjByName(...)

then you should be able to click it.

Thanks, it works perfectly now ! :D

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  
Followers 0