Jump to content

Recommended Posts

Posted (edited)

Hi how to click on link embeded in .js chk that site and let me know how to do that i tryed _IELinkGetCollection but nothing happend i want to click top link (ads by google ) help !!! me

#include <IE.au3>

$oIE = _IECreate("http://www.venntech.net")

Edited by autoitxp
Posted

What you're after is in an iFrame -- <IFRAME name=google_ads_frame marginWidth=0 marginHeight=0 ...

You'll need to use _IEFrameGetObjByName first

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

Posted (edited)

Well i donno y its giving me error

and im trying to get IEFrame name list

and how can i get IEFRAME name as list ?

_IEPropertyGet ($oFrame, "locationnamel")

#include <IE.au3>
$oIE = _IECreate("http://www.venntech.net/")
$oFrames = _IEFrameGetCollection ($oIE)
$iNumFrames = @extended

For $i = 0 to $iNumFrames 
    $oFrame = _IEFrameGetCollection ($oIE, $i)
   MsgBox(0, "Frame Info",  _IEPropertyGet ($oFrame, "locationurl") )
Next

Return $o_object.location.href ()

Return $o_object.location.href ()^ ERROR

Edited by autoitxp
Posted

Ah, because the iFrame source is in a different domain than the top level page source. Security restrictions prevent scripting accross domains/frames. _IEErrorHandlerRegister() will show you an Access is Denied error.

You'll need to open the frame source in a seperate window. You can get the src= from the iFrame by treating it as an element using _IEGetObjByName (rather than as a window with _IEFrameGetObjByName).

#include <IE.au3>

_IEErrorHandlerRegister()

$oIE1 = _IECreate("http://www.venntech.net/")
$oFrame = _IEGetObjByName ($oIE1, "google_ads_frame")
$oIE2 = _IECreate($oFrame.src)

_IELinkClickByText($oIE2, whatever)

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

Posted

Are you asking how to get a reference to each element on a page? _IETagnameAllGetCollection

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

Posted

DebugBar - see my sig

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

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
×
×
  • Create New...