Jump to content
Sign in to follow this  
Armand

Object - IE - Need Help...

Recommended Posts

Armand

hey guys i've been creating an object that is hidden and i'd really like to know how can i navigate through it \ send keys without making it show !!!

here is the script:

#include <IE.au3>
$URL = "http://www.google.com/"
$oIE = _IECreate($URL,0,0,1)
$oForm = _IEFormGetCollection ($oIE, 0)

;_IELinkClickByText ($oIE,"תמונות")
;_IELinkClickByIndex ($oIE,1)
_IEAction($oIE,"visible")
_IEFormImageClick($oIE,"Google","alt")

- tried to use the "_IELinkClickByIndex ($oIE,1)" & "_IELinkClickByText ($oIE,"תמונות")" function to move through the links

to get to where it is i need to but it seems to be not that accurate and it fails to reach buttons on the page!

- if someone can tell me how to send DIRECT KEYS TO AN OBJECT i'll be most delighted !!!

- that func: "_IEFormImageClick($oIE,"Google","alt")" seems to dail reaching the picture and click on it!

- if there is no way to send DIRECT KEYS - how do i reach buttons ?!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
Hasher

I assume you are tryin to click the search button , not click the logo

#include <IE.au3>
$URL = "http://www.google.com/"
$oIE = _IECreate($URL,0,0,1)
$oForm = _IEFormGetCollection ($oIE, 0)
$btn = _IEFormElementGetObjByName($oForm,"btnG")
_IEAction($oIE,"visible")
_IEAction ( $btn, "click" )

I may be wrong and by looks of post you are from Thailand so English may not be your first language. If this doesnt help please try to explain more


Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of — shhh — extensions!

Share this post


Link to post
Share on other sites
Armand

@Hasher

hey mate thanks for the help !

i'm not from thailand - i'm from israel... (do i've got bad eng ?!)

i know that i can get to the button that way - but that's only if i know the button name from the source!

oky so back to my questions:

- without knowing anything regaurding the source code, just using the normal page view info, how can i reach that button?!

- how do i send keys directly to the object ?! -> LIKE SEND() func...

_____

i'll look up for: (if it exists, i'm from some other comp in the doorms)

_IEFormElementGetObjByText()

THANKS AGAIN !!!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
Armand

how illegal is it to jump msgs ?! couse i need an answer and i don't thing anyone will see it in there....


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites
DaleHohm

$hwnd = _IEPropertyGet($oIE, "hwnd")

$hwnd can then be used in place of Title in ControlSend commands. You can also use _IEAction( -an object-, "focus") to assign focus to a specific element before using ControlSend.

ControlSend($hwnd, "", "Internet Explorer_Server", -string to send-)

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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  

×