Hallo, kann mir wer Helfen bitte der sich mit der IE und Javabefehle auskennt?
Ich versuche ein Button zu klicken mit IE.au3
zb:
_IEJavaScript($oIE, _IEJavaScript($oIE, "document.getElementById('HudNavigation.colony_2') .onload ; ?
; onload='this.__gwtLastUnhandledEvent="load"
Es kommt zumindest kein Fehler, aber er macht auch nichts.
im Quelltext steht das:
<script>
var preloader = document.getElementById('tip'),
preloaderTipId = 'preloader.tip6';
preloader.innerHTML = Language[preloaderTipId];
</script>
<script type="text/javascript">
Ich denk mal das ist der relevante Teil.
hab nun 2 Tage Google durchsucht und 1000 Scripte aber keins brachte den Erfolg. Und da Java für mich Neuland ist :rtfm:
Danke schon mal vorneweg für Hilfe
vg Emil
Ich versuche ein Button zu klicken mit IE.au3
zb:
_IEJavaScript($oIE, _IEJavaScript($oIE, "document.getElementById('HudNavigation.colony_2') .onload ; ?
; onload='this.__gwtLastUnhandledEvent="load"
Es kommt zumindest kein Fehler, aber er macht auch nichts.
im Quelltext steht das:
<script>
var preloader = document.getElementById('tip'),
preloaderTipId = 'preloader.tip6';
preloader.innerHTML = Language[preloaderTipId];
</script>
<script type="text/javascript">
Ich denk mal das ist der relevante Teil.
HTML Code:
<div tabindex="0" class="HudNavigation"> <div class="HudNavigation-Content"> <div class="HudNavigation-WorldmapButton-Icon" id="HudNavigation.worldmap" aria-hidden="false"></div> <table class="HudNavigationColonyPanel" aria-hidden="false" cellspacing="0" cellpadding="0"> <tbody> <tr> <td align="left" style="vertical-align: top;"> <div tabindex="0" id="HudNavigation.colony_0" aria-hidden="false"> <div class="HudNavigationColonyButton" style="overflow: hidden; position: relative;"> <div class="HudNavigationColonyButton-BackgroundImage-Selected"></div> <div class="HudNavigationColonyButton-NameLabel HudNavigationColonyButton-NameLabel-Selected">kaeptn_1</div> <img class="HudNavigationColonyButton-ResourceImage" style='background: url("http://belize3.de.battleofcrowns.com/assets/gfx/bundles/resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -343px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="http://belize3.de.battleofcrowns.com/cc/clear.cache.gif" border="0"> <div class="HudNavigationColonyButton-AlertImage" aria-hidden="true" style="display: none;"></div> </div> </div> </td> </tr> <tr> <td align="left" style="vertical-align: top;"> <div tabindex="0" id="HudNavigation.colony_1" aria-hidden="false"><div class="HudNavigationColonyButton" style="overflow: hidden; position: relative;"> <div class="HudNavigationColonyButton-BackgroundImage"></div> <div class="HudNavigationColonyButton-NameLabel">kaeptn_2</div> <img class="HudNavigationColonyButton-ResourceImage" style='background: url("http://belize3.de.battleofcrowns.com/assets/gfx/bundles/resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -281px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="http://belize3.de.battleofcrowns.com/cc/clear.cache.gif" border="0"> <div class="HudNavigationColonyButton-AlertImage" aria-hidden="true" style="display: none;"></div> </div></div> </td> </tr> <tr> <td align="left" style="vertical-align: top;"> <div tabindex="0" id="HudNavigation.colony_2" aria-hidden="false"> <div class="HudNavigationColonyButton" style="overflow: hidden; position: relative;"> <div class="HudNavigationColonyButton-BackgroundImage"></div> <div class="HudNavigationColonyButton-NameLabel">kaeptn_3</div> <img class="HudNavigationColonyButton-ResourceImage" style='background: url("http://belize3.de.battleofcrowns.com/assets/gfx/bundles/resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -250px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="http://belize3.de.battleofcrowns.com/cc/clear.cache.gif" border="0"> <div class="HudNavigationColonyButton-AlertImage" aria-hidden="true" style="display: none;"></div> </div> </div> </td> </tr> <tr> <td align="left" style="vertical-align: top;"> <div tabindex="0" id="HudNavigation.colony_3" aria-hidden="false"> <div class="HudNavigationColonyButton" style="overflow: hidden; position: relative;"> <div class="HudNavigationColonyButton-BackgroundImage"></div><div class="HudNavigationColonyButton-NameLabel">kaeptn_4</div> <img class="HudNavigationColonyButton-ResourceImage" style='background: url("http://belize3.de.battleofcrowns.com/assets/gfx/bundles/resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -405px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="http://belize3.de.battleofcrowns.com/cc/clear.cache.gif" border="0"> <div class="HudNavigationColonyButton-AlertImage" aria-hidden="true" style="display: none;"></div> </div> </div> </td> </tr> <tr> <td align="left" style="vertical-align: top;"> <div tabindex="0" id="HudNavigation.colony_4" aria-hidden="true" style="display: none;"> <div class="HudNavigationColonyButton" style="overflow: hidden; position: relative;"> <div class="HudNavigationColonyButton-BackgroundImage"></div> <div class="HudNavigationColonyButton-NameLabel">Dummy_#4</div> <img class="HudNavigationColonyButton-ResourceImage" style='background: url("http://belize3.de.battleofcrowns.com/assets/gfx/bundles/resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -312px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="http://belize3.de.battleofcrowns.com/cc/clear.cache.gif" border="0"> <div class="HudNavigationColonyButton-AlertImage" aria-hidden="true" style="display: none;"></div> </div> </div> </td> </tr> <tr> <td align="left" style="vertical-align: top;"> <div tabindex="0" id="HudNavigation.tradeCrate" aria-hidden="true" style="display: none;"> <div class="HudNavigationColonyButton" style="overflow: hidden; position: relative;"> <div class="HudNavigationColonyButton-BackgroundImage"></div> <div class="HudNavigationColonyButton-NameLabel">Handelscon...</div> <img class="HudNavigationColonyButton-ResourceImage" style='background: url("http://belize3.de.battleofcrowns.com/assets/gfx/bundles/resource1__A588D34DEE6FEED88A4C416E82F0CF49.png") no-repeat -100px -467px; width: 31px; height: 31px;' onload='this.__gwtLastUnhandledEvent="load";' src="http://belize3.de.battleofcrowns.com/cc/clear.cache.gif" border="0"> <div class="HudNavigationColonyButton-AlertImage" aria-hidden="true" style="display: none;">0</div> </div> </div> </td> </tr> </tbody> </table> </div> </div>
hab nun 2 Tage Google durchsucht und 1000 Scripte aber keins brachte den Erfolg. Und da Java für mich Neuland ist :rtfm:
Danke schon mal vorneweg für Hilfe
vg Emil