Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



_IEFormElementSetValue

Discussion on _IEFormElementSetValue within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 77
Received Thanks: 1
_IEFormElementSetValue

Hi leute schon wieder ein Problem.
ich poste mal den code:

PHP Code:
#include <GUIConstants.au3>
#include <IE.au3>

$Form1 GUICreate("GUI"600200196133)
GUISetState(@SW_SHOW)

 
$Speer1 GUICtrlCreateInput("speer",30,50,50,20)
 
$Schwert1 GUICtrlCreateInput("schwert",30,70,50,20)
 


$oIE=_IECreate("http://de97.die-staemme.de/game.php?village=62138&screen=place"

$oForm _IEFormGetCollection($oIE,0)  
$oSpeer _IEFormElementGetObjByname($oForm,"spear")
$oSchwert _IEFormElementGetObjByname($oForm,"sword")


_IEFormElementSetValue ($oSpeer,$Speer1)
_IEFormElementSetValue ($oSchwert,$Schwert1)  






    While 
1
Sleep
(100)
WEnd 

normal sollte er doch die input boxen auslesen, und in die boxen ingame einsetzen oder? bei mir schickt er aber bei speer immer den wert3 und bei schwert den wert 4 in die ingame box, kann mir wer helfen?
inspi123 is offline  
Old 10/20/2013, 15:12   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Nimm statt
Code:
$oForm = _IEFormGetCollection($oIE,0)   
$oSpeer = _IEFormElementGetObjByname($oForm,"spear") 
$oSchwert = _IEFormElementGetObjByname($oForm,"sword")
Code:
$oSpeer = _IEGetObjByName($oIE, "spear") 
$oSchwert = _IEGetObjByName($oIE, "sword")
Gegebenfalls musst du den Index anpassen, falls der name öfters vorkommt.
alpines is offline  
Old 10/20/2013, 15:26   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 77
Received Thanks: 1
so, naja jetzt passiert das hargenau gleiche wieder..
bekomme wieder die werte 3 & 4ausgespuckt, wenn ich was in die inputboxen in der gui eintippe, passier nichts
inspi123 is offline  
Old 10/20/2013, 15:38   #4
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Hast du dich denn auch vorher angemeldet? Ansonsten kannst du dir doch nichts anzeigen lassen, oder?
alpines is offline  
Old 10/20/2013, 15:52   #5
 
elite*gold: 0
Join Date: Nov 2009
Posts: 77
Received Thanks: 1
klar bin ich vorher angemeldet sonst könnte er mir ja gar keine werte anzeigen, aber er zeigt mir immer 3 & 4 an..
inspi123 is offline  
Old 10/20/2013, 20:39   #6
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Ja natürlich zeigt er immer 3 und 4 an, weil 3 und 4 das Handle von den Controls sind
Code:
$sText = GUICtrlRead($Input1)
Liest den Inhalt und nicht das Handle vom Control aus!
alpines is offline  
Thanks
1 User
Old 10/21/2013, 14:07   #7
 
elite*gold: 0
Join Date: Nov 2009
Posts: 77
Received Thanks: 1
habs schon hinbekommen c0w hat mir geholfen
aber danke für die bemühungen!
inspi123 is offline  
Reply




All times are GMT +1. The time now is 07:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.