AllSystemGo Posted October 4, 2006 Share Posted October 4, 2006 (edited) How can I go in a menu like that using the _IE functions??Trying to go click on the Hunt Group option.and I'm pasting the website.expandcollapse popup<BODY bgColor="#FFFFFF" text="#000000" marginheight="5px" marginwidth="10px" topmargin="5px" leftmargin="10px"> <!-- Standard Menus --> <!-- 'main.asp?pageStatus=NotImplemented' will take the page back to the main page --> <TABLE border="0" cellPadding="3" cellSpacing="0" width="745"> <TR><TD class="menuBar"> <SPAN id="menuSystem"> <TABLE border="1" bgColor="#003333" borderColor="#FFFFFF" cellSpacing="0" cellPadding="6" borderColorDark="#999999"> <TR> <TD valign="top" bgColor="#003333"> <TABLE cellSpacing="0" cellPadding="1" border="0"> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/serverlist.asp">Server</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/callmanagerlist.asp">Cisco CallManager</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/callmanagergrouplist.asp">Cisco CallManager Group</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/datetimegrouplist.asp">Date/Time Group</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/defaultdeviceconfig.asp?Action=New">Device Defaults</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/regionlist.asp">Region</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/devicepoollist.asp">Device Pool</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/aargrouplist.asp">AAR Group</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/enterpriseparamsnew.asp">Enterprise Parameters</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/locationlist.asp">Location</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> <TR> <TD class="menuItem"><A class="menu" onmouseover="java script: showHideMainMenu(1,0)" href="/ccmadmin/srstList.asp">SRST</A></TD> <TD><IMG src="images/blank.gif" height="1" width="1"></TD></TR> </TABLE></TD> </TR> </TABLE> </SPAN> <!-- Table to frame page contents - do not modify attributes --> <table border="0" cellpadding="10" cellspacing="0" width="745" height="80%"><tr> <td class="content" valign="top"><br> <!-- Page Contents Start --> <table border="0" cellSpacing="0" cellPadding="3"> <tr> <td><img src="images/masthead.jpg" border="0" hspace="5" vspace="5" WIDTH="196" HEIGHT="197"></td> <td> <h3>Cisco CallManager 3.3 Administration(auto_script)</h3> <p> <form id="form1" name="form1"> <input type="button" value="Details" name="cmdDetails" id=cmdDetails onclick="showDetail()"> </form> <P>Copyright © 1999 - 2004 Cisco Systems, Inc.<br> All rights reserved.</P> </td> </tr> </table> <!-- End of Page Contents - DO NOT add content below this line --> </td></tr></table> </body> </html> Edited October 4, 2006 by AllSystemGo Link to comment Share on other sites More sharing options...
lod3n Posted October 4, 2006 Share Posted October 4, 2006 Just find out the address of the Hunt Group page and _IENavigate() to it. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
AllSystemGo Posted October 4, 2006 Author Share Posted October 4, 2006 Thxs that worked!!! Now I need to click on a link on the side.. expandcollapse popup<TABLE border="0" cellPadding="0" cellSpacing="3" width="720" height="90%"><TR> <TD class="tableContrast" width="175" valign="top"> <TABLE border="0" width="175" cellSpacing="0" cellPadding="3"> <TR> <TH class="leftColumnListHeading" colspan="3">Pilot Points </TH> </TR> <tr> <td width="12"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={E28BB293-D83D-44DD-8875-5844E9AE467E}');" class="sideMenuItem" language="Javascript"> <img alt="2001" src="images/hunt_group.gif" WIDTH="22" HEIGHT="22" ALIGN="BOTTOM" border="0"> </td> <td width="140"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={E28BB293-D83D-44DD-8875-5844E9AE467E}');" alt="2001" class="sideMenuItem" language="Javascript">2001</a> </td> <td align="Right" width="50"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={E28BB293-D83D-44DD-8875-5844E9AE467E}');" class="sideMenuItem" language="Javascript">2001 </td> </tr> <tr> <td width="12"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={7C169CC5-A0AF-44CA-B669-4B61D426783C}');" class="sideMenuItem" language="Javascript"> <img alt="7595" src="images/hunt_group.gif" WIDTH="22" HEIGHT="22" ALIGN="BOTTOM" border="0"> </td> <td width="140"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={7C169CC5-A0AF-44CA-B669-4B61D426783C}');" alt="7595" class="sideMenuItem" language="Javascript">7595</a> </td> <td align="Right" width="50"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={7C169CC5-A0AF-44CA-B669-4B61D426783C}');" class="sideMenuItem" language="Javascript">7595 </td> </tr> <tr> <td width="12"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={95340D09-1B99-45D1-9D4D-02D4AD14EE45}');" class="sideMenuItem" language="Javascript"> <img alt="7777" src="images/hunt_group.gif" WIDTH="22" HEIGHT="22" ALIGN="BOTTOM" border="0"> </td> <td width="140"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={95340D09-1B99-45D1-9D4D-02D4AD14EE45}');" alt="7777" class="sideMenuItem" language="Javascript">7777</a> </td> <td align="Right" width="50"><a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={95340D09-1B99-45D1-9D4D-02D4AD14EE45}');" class="sideMenuItem" language="Javascript">7777 </td> </tr> </table> How do I click on the first link: <a href="java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={E28BB293-D83D-44DD-8875-5844E9AE467E}');" class="sideMenuItem" language="Javascript"> I tried _IEAction("java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={E28BB293-D83D-44DD-8875-5844E9AE467E}'), "click") but I need on object and I don't know how to get that object. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted October 4, 2006 Moderators Share Posted October 4, 2006 Look in the help file at the _IELinkClickBy* functions. Link to comment Share on other sites More sharing options...
AzKay Posted October 4, 2006 Share Posted October 4, 2006 You should be able to navigate to it _IENavigate($oIE, "java script:location.replace('pilothuntgroupconfig.asp?Action=Update&iPilot={E28BB293-D83D-44DD-8875-5844E9AE467E}');") $oIE beind the object, And remember to remove the space between java and script. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AllSystemGo Posted October 4, 2006 Author Share Posted October 4, 2006 (edited) One last things guys and I swear I'll stop asking stupid questions. If I have a ListBox on my web page how do I select the items inside the Listbox?? I tried $oListBoxEl = _IEFormElementGetObjByName($oIE, $oListBox) $oListBoxElements = _IEFormElementGetCollection($oListBoxEl) For $oListBoxElement In $oListBoxElements MsgBox(0, "Form Info", $oListBoxElement.name) Next I get the following error. For $oListBoxElement In $oListBoxElements Error: Variable must be of type "Object" Edited October 4, 2006 by AllSystemGo Link to comment Share on other sites More sharing options...
AllSystemGo Posted October 5, 2006 Author Share Posted October 5, 2006 Anyone?? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted October 5, 2006 Moderators Share Posted October 5, 2006 Anyone??You are using _IEFormElementGetObjByName() incorrectly. Please that a look at the examples in the help file for the correct syntax. Link to comment Share on other sites More sharing options...
AllSystemGo Posted October 5, 2006 Author Share Posted October 5, 2006 (edited) I think you were right. I modified the code for that and I still get the same kind of error!! Can you help me out! $oForm2 = _IEFormGetObjByName($oIE, "pilotForm") $oListBoxEl = _IEFormElementGetObjByName($oForm2, $oListBox) $oListBoxElements = _IEFormElementGetCollection($oListBoxEl, -1) MsgBox(0, "Test", "Test " & @extended) For $oListBoxElement In $oListBoxElements MsgBox(0, "Form Info", $oListBoxElement.name) Next I dion't think I'm using this stuff correctly. I need to get what ever is inside the listbox. Right now as I can understand the FormElementGetCollection is getting all the collection of elements in a specific form. Iss there a way to get the values inside a specific listbox??? Edited October 5, 2006 by AllSystemGo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now