Jump to content

Question About Ie.au3


Recommended Posts

Hi

To use _IEFormGetObjByName( $oIE , $form ) in IE.au3 you need the name of form, what exactly Im supposed to look for in the source to find it.

Im not sure if this is a silly question. :">

thanks

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

Example form from this thread's source:

<form action="http://www.autoitscript.com/forum/index.php?" method="post" name="search">
            <input type="hidden" name="forums" value="2" />
            <input type="hidden" name="topic" value="24542" />
            <input type="hidden" name="act" value="Search" />
            <input type="hidden" name="CODE" value="searchtopic" />
            <input type="text" size="25" name="keywords" class="searchinput" value="Enter Keywords" onfocus="this.value = '';" /> 
            <input type="submit" value="Search Topic" class="button" />
        </form>

So you need to look for "form" in the source.

Link to comment
Share on other sites

Example form from this thread's source:

<form action="http://www.autoitscript.com/forum/index.php?" method="post" name="search">
            <input type="hidden" name="forums" value="2" />
            <input type="hidden" name="topic" value="24542" />
            <input type="hidden" name="act" value="Search" />
            <input type="hidden" name="CODE" value="searchtopic" />
            <input type="text" size="25" name="keywords" class="searchinput" value="Enter Keywords" onfocus="this.value = '';" /> 
            <input type="submit" value="Search Topic" class="button" />
        </form>

So you need to look for "form" in the source.

Is it possible that there is no form :think: , becuase I searched for the word "form" and I didn't find it.

the only thing I found was "class=formlabel" and this probably has nothing to do with what I want.

Edit: thanks for the quick answer.

@Valuater: I already used your cool IE builder but I couldn’t use it with https for some reason.

Edited by rbhkamal

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

whats the url?

8)

Its privet you cant access it from the internet.

Can I post the source instead?

Edit: its https

Edit: Here is the source:

Edit: Attachment removed

Edited by rbhkamal

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

OK, I looked in Firefox and there was nothing under the "Forms" tab.

I'm trying to click on "BG Manager" then " VPN" is there any way to do that without a form.

Edit: to find BG Manager and VPN in the source look for:

1- slideMenu.makeMenu('top','BG Manager')

2- slideMenu.makeMenu('sub','VPN', '/BGM/bgmOverview.do')

Edited by rbhkamal

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

Try _IEClickLinkByText().

I tried _IEClickLinkByText( $oIE , "BG Manager" ) but it failed :think:

Edit: I managed to skip this step by using _IENavigate() but what am I supposed to do

if using "_IENavigate()" , "IEClickLinkByText()" or "IEFormGetObjByName()" was not possible?

Edited by rbhkamal

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

Yeah.. I see why that wouldn't work. What's strange to me is that the BG Manager link appears to link to the current page (meaning it doesn't do anything).

These notes in the source give you an idea of what to do for the VPN:

NOTE: I get mail about this all the time so I will try and explain more:

If you where to make a regular link that would open a link in another

frame you would probably do like this:

<a href="mylink.html" target="myOtherFrameName">Link</a>

To do the same for a slideMenu link you do like this:

slideMenu.makeMenu('top','My link','mylink.html','myOtherFrameName')

------------------------------------------------------------

mySlideMenu.makeMenu('TYPE','TEXT','LINK','TARGET')

I really don't know about that menu thing, it's not something I've seen before.

Edit - for IENavigate, just use the link directly to the page (if you can figure out the right page).

Edited by greenmachine
Link to comment
Share on other sites

I tried _IEClickLinkByText( $oIE , "BG Manager" ) but it failed :think:

Edit: I managed to skip this step by using _IENavigate() but what am I supposed to do

if using "_IENavigate()" , "IEClickLinkByText()" or "IEFormGetObjByName()" was not possible?

It's really just as simple as changing
_IEClickLinkByText( $oIE , "BG Manager")
to
_IEClickLinkByText( $oIE , "  BG Manager")

This is a dynamically generated Javascript. Because of this, a browser view source will not show you the actual HTML that is at play here. IE.au3 can show it to you though as _IEBodyReadHTML will show you the currently rendered HTML.

$source = _IEBodyReadHTML($oIE)
ConsoleWrite($source)

From this you see

<A class=clA0 onclick="if ((allowMenuClicks) &amp;&amp; (!slideMenu.going)) {slideMenu.switchMenu(20); if(document.getElementById) this.blur(); } else { return false; }return false" href="#">&nbsp;&nbsp;BG Manager</A>
the important part of this is
<A href="#">&nbsp;&nbsp;BG Manager</A>
. You were missing the two leading spaces.

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

Link to comment
Share on other sites

It's really just as simple as changing

_IEClickLinkByText( $oIE , "BG Manager")
to
_IEClickLinkByText( $oIE , "  BG Manager")
WOW! I didn't imagine its that simple, every thing is working now as expected. :think:

Thanks Dale

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...