Jump to content
Sign in to follow this  
Emilio

Help Plz click IEJavaScript

Recommended Posts

Emilio

Hello,

Excuse first my English is not so good, from Germany.
I have a problem with Clicken of Java badge. Maybe who Can help me here please.

mine script:

#include <IE.au3>

_IELoadWait($oIE)

ClipPut(_IEDocReadHTML($oIE))
Global $source = ClipGet()
Sleep(100)

_IEJavaScript($oIE, "document.getElementById('Navigation_0')     ; ? 

Func _IEJavaScript(ByRef $o_IE, $sCmd)
    If StringRight($sCmd,1) <> ";" Then $sCmd &= ";"
    If Not IsObj($o_IE) Then Return SetError(1)
       ;ConsoleWrite("+> _IEjavascript: " & $sCmd & @CRLF)
    $o_IE.document.parentwindow.execScript($sCmd)
EndFunc   ;==>_IEJavaScript

<div tabindex="0" class="HudNavigation">
    <div class="HudNavigation-Content">
        <div class="Navigation" id="Navigation.worldmap" aria-hidden="false"></div>
            <table class="Panel" aria-hidden="false" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td align="left" style="vertical-align: top;">
                            <div tabindex="0" id="Navigation_0" aria-hidden="false">
                                <div class="NavigationButton" style="overflow: hidden; position: relative;">
                                    <div class="NavigationButton-BackgroundImage"></div>
                                    <div class="NavigationButton-NameLabel NavigationButton-NameLabel-Selected">kep_1</div>
                                    <img class="NavigationButton-ResourceImage" style='background: url("resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -343px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="clear.cache.gif" border="0">
                                    <div class="NavigationButton-AlertImage" aria-hidden="true" style="display: none;"></div>
                                </div>
                            </div>
                        </td>
                    </tr>

<script>
        var preloader = document.getElementById('tip'),
            preloaderTipId = 'preloader.tip4';
        
        preloader.innerHTML = Language[preloaderTipId];
    </script>
    <script type="text/javascript">

If one has an idea like one this can make which is clicked on the badge.

I sga already to thanks in prerau

vg Emilio

Edited by Emilio

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  

×