Sign in to follow this  
Followers 0
goodTweetieBird

Clicking a line that has no ID

8 posts in this topic

There is a button in the middle of a page labeled "Download Software" but the Info Window cannot see it, it has no control ID, and the className "Internet Explorer_Server1" applies to the whole page or frame.

I tried to click it with

$result = _IELinkClickByText ($Hwnd, "Download Software")

Is the first arg, $o_object, the same as the handle obtained by

$Hwnd = WinGetHandle("Classname=IEFrame") ?

Share this post


Link to post
Share on other sites



Bad title, should have said link instead of line.

Share this post


Link to post
Share on other sites

You are misinterpreting how to use the IE Functions. The first parameter of almost all the IE Function is an object variable, not a HWnd.

If you can provide a link or the section of source that contains this button we should be able to help.

Share this post


Link to post
Share on other sites

Thanks for the post.

Yes, I should have phrased my question better. I should have asked how do I obtain the object variable for the page?

Here's the page source (less the user ID on line 14).

Thanks Again,

jh (AKA goodTweetieBird when he loses his login ID and his mind....)

~~~~~~~~~~~~~~~~~~

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />

<title>eBLVD - Access and share your PC from anywhere!</title>

<link href="styles/main.aspx" rel="stylesheet" media="screen" />

</head>

<body>

<form name="Form1" method="post" action="ra.aspx?user=" id="Form1">

<input type="hidden" name="__VIEWSTATE" value="dDwtMTgyOTg2NTA1MTs7PrCkkapmTaLJMluIEvkzKbh6RQ3X" />

<div id="_header__standard">

<div style="height:26; background-image:url(images/top-bluebar.gif); " >

<div style="width:800;text-align:right;padding-top:4;" ><img src="images/telephone-number.gif" alt="" border="0" style="height:17px;width:111px;" /></div>

</div>

<div style="height:88; background-image:url(images/top-orangebar.gif);" >

<table width="800" border="0" cellspacing="0" cellpadding="0" >

<tr>

<td style="width:273;height:79;"><img src="images/top-logoblock.gif" alt="" border="0" /></td>

<td><img src="images/top-orange-boxes.gif" alt="" border="0" style="height:79px;width:300px;" /></td>

<td style="width:227;background-color:#7d8aa2; border-right: solid 1 #3d3d3d;" >&nbsp;</td>

</tr>

<tr>

<td style="width:273; height:9; background-image:url(images/top-left-orangebar.gif);" ></td>

<td colspan="2" style="height:9; background-image:url(images/top-middle-orangebar.gif);" ></td>

</tr>

</table>

</div>

</div>

<div style="background-image:url(images/main-header-background-2.gif); height:20;" ></div>

<div id="bodyback" >

<table id="bodycontent" cellspacing="0" >

<tr>

<td id="content" >

<p><img src="images/header-setupremoteaccess.gif" alt="" height="31" /></p>

<noscript>

<p class="error">

<b>Your browser does not have Javascript enabled.</b><br />

You must enable the use of Javascript for this browser to install the software.<br /><br /></p>

</noscript>

<table id="main2col" cellspacing="0" >

<tr>

<td id="leftcol" >

<div id="_mainpanel">

<p>

You have been requested to set up your PC for remote access by <span id="_name">dataVoice International, Inc.</span>.

<br /><br />

The following process installs the eBLVD Host Applet, which manages connections to your PC over the eBLVD network.

You may uninstall the software at any time from "Add/Remove Programs" in the Windows control panel.

<br /><br />

</p>

<p><b>1. Begin Download</b></p>

<p>Click the button to download and launch the setup wizard.</p>

<div style="text-align:center;margin-bottom:8px;margin-top:8px;">

<input name="_setupbutton" id="_setupbutton" type="button" value="Download Software" class="flat" style="cursor:pointer;" onclick="java script:setup('872A97C1-704C-4C09-B2CF-C2F13F0989BD');" />

</div>

<p><i>Estimated download time -

56K: 33 sec,&nbsp;&nbsp;Broadband: 5 sec,&nbsp;&nbsp;T1: 1 sec</i><br /><br /><br /></p>

<p><b>2. Set PC Access Details</b></p>

<p><img align=right src="images/fig_setup1.gif" />

After you accept the license agreement, the setup wizard will prompt you to name the PC and set a password.<br /><br />

Only someone with this password can connect to the PC, otherwise you will

have to be present to grant them permission when they attempt to connect.<br /><br /><br /></p>

<p><b>3. Manage Software</b></p>

<p><img alt="System Tray" src="images/fig_systray.gif" align="left" vspace="3" />Once the setup wizard has completed, if you see the icon in your system tray,

the PC is ready for remote access.<br /><br /><br /></p>

<p>You can start and stop the host software through<br />

Start -> Programs -> eBLVD -> eBLVD Options.<br /><br />

<p><b>Note:</b> <i>If the host is started in "Restricted Access" mode,

screen savers and the Windows Login screen will prevent remote access.</i><br /><br />

</div>

</td>

<td id="rightcol">

<img src="images/header-sub-sysrequirements.gif" alt="" height="23" width="130" /><br />

<p class="rightcol">

<b>OS:</b> Windows 95, 98, ME, NT, 2000, XP <i>(2000/XP users must have Admin or Power User rights)</i><br /><br />

<b>Browser:</b> Internet Explorer (ver 5.5 or higher), Firefox 1.0, or Netscape 7.1<br /><br />

<b>Network:</b> Any working internet connection<br /><br />

</p>

<img src="images/header-sub-hostdetails.gif" alt="" height="23" width="130" /><br />

<p class="rightcol"><b>Current Version:</b><br /><span id="Version1__version">6.1 (build 522)</span><br /><br />

<b>Release Date:</b><br /><span id="Version1__updated">Apr 4 2007 3:40PM</span></p>

</td></tr>

</table>

</td></tr>

</table>

</div>

<div class="footer">

<a target="_blank" href="http://eBLVD.com" title="Get a free trial"></a>

<a id="_footer__home" href="default.aspx">Home</a> | <a id="_footer__company" href="about.aspx">Company</a> | <a id="_footer__products" href="products-om.aspx">Products</a> | <a id="_footer__support" href="support.aspx">Support</a> | <a id="_footer__contact" href="contact.aspx">Contact</a>

<br /><br />

<a href="java script:footerWindowOpen('http://www.eBLVD.com/legal.aspx', 400, 400);" >&copy; 2007</a> eBLVD by ENC Technology Corp.

<div id="_footer__prodlinks">

<a id="_footer_omfoot" href="products-om.aspx">Online Meetings</a> |

<a id="_footer_rdfoot" href="products-rd.aspx">Remote Desktop</a> |

<a id="_footer_scfoot" href="products-sc.aspx">Support Center</a>

</div>

</div>

<script language="javascript" type="text/javascript">

function footerWindowOpen(url,width,height) {

var str = "height=" + height + ",innerHeight=" + height;

str += ",width=" + width + ",innerWidth=" + width;

if (window.screen) {

var ah = screen.availHeight - 30;

var aw = screen.availWidth - 10;

var xc = (aw - width) / 2;

var yc = (ah - height) / 2;

str += ",left=" + xc + ",screenX=" + xc;

str += ",top=" + yc + ",screenY=" + yc;

}

str += "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

myWindow = window.open(url,"",str);

if (!mywindow.opener)

mywindow.opener = self;

}

</script>

<script language=javascript>

strDest = "getcontrol.aspx?dest=www.eblvd.com/ra.aspx%3Fuser=872A97C1-704C-4C09-B2CF-C2F13F0989BD";

if (window.navigator.userAgent.indexOf("SV1") != -1

|| window.navigator.userAgent.indexOf("MSIE 7") != -1)

strDest += "&sp2=1";

try {

var launchObj = new ActiveXObject("Ebie.Launcher.3");

}

catch (e) {

window.location = strDest;

}

// check for most current version of launcher

if (launchObj.GetVersion() != "3.3.0.365")

window.location = strDest;

</SCRIPT>

<script src="https://www.eblvd.com/include/LauncherFncs.js" language=javascript></SCRIPT>

</form>

</body>

</html>

Share this post


Link to post
Share on other sites

Great, works like a hose. Thanks for researching my source page. I opened the source and think I have a pretty good handle on what you did. Only change I made was change

_IEAction($oInput, "click") to _IEAction($oButton, "click").

Sure beats the heck out of the newbie trash I generated:

unc eBlvd()

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE")

Opt("WinTitleMatchMode", 4)

WinWait("Classname=IEFrame")

;Msgbox(0,"First Window Wait is over", "")

$Hwnd = WinGetHandle("Classname=IEFrame")

Sleep(800)

ControlSetText("Classname=IEFrame", "", "Edit1", "http://dvint.com/eblvd")

Sleep(800)

;MsgBox(0,"Text is set", "")

ControlClick("Classname=IEFrame", "", "ToolbarWindow321")

Opt("WinTitleMatchMode", 1)

WinWait("eBLVD", "")

;MsgBox(0,"Done waiting for eBLVD","")

$Hwnd = WinGetHandle("eBLVD")

MsgBox(0,"handle", $Hwnd)

Sleep(800)

;Stuck here trying to click link for Download Software.....

ControlClick("eBLVD", "","Internet Explorer_Server1")

Sleep(800)

$result = _IELinkClickByText ($Hwnd, "Download Software")

MsgBox(0, "CBT", $result)

MsgBox(0,"@error", @error)

EndFunc

Thanks again,

jh

Share this post


Link to post
Share on other sites

Only change I made was change

_IEAction($oInput, "click") to _IEAction($oButton, "click").

Good catch, I edited an example I posted yesterday and forgot to change that.

Share this post


Link to post
Share on other sites

Good catch, I edited an example I posted yesterday and forgot to change that.

Hey, even an old blind hogs find an acorn every now and then.

Great links on your reply sigline.

jh

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