Hey Leute ich nochmal^^

12/31/2009 14:18 ~kau~#1
ok ...miest Ich stell mal die Frage anders^^
Also hab nen Gui:
Quote:
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("BF Heroes", 170, 135, 192, 124)
$Button1 = GUICtrlCreateButton("LOS!", 8, 72, 153, 57, $WS_GROUP)
$Input1 = GUICtrlCreateInput("", 40, 8, 121, 21)
$Input2 = GUICtrlCreateInput("", 40, 40, 121, 21)
$Label1 = GUICtrlCreateLabel("I-Mail:", 8, 8, 32, 17)
$Label2 = GUICtrlCreateLabel("pw:", 8, 40, 21, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Dazu möchte ich gerne wissen wie der befehl heist damit es auf der
[Only registered and activated users can see links. Click Here To Register...] Seite ausgegeben wird^^
12/31/2009 14:30 Busti#2
Hi.
Erstmal,
Schreib Codes bitte in den [Code] Tag's. Der Übersicht zuliebe :).
Ist $oForm, bzw. $oPass überhaupt richtig ?! Hast du $oForm überhaupt einen Wert gegeben ?
12/31/2009 16:52 | Moep |#3
Mit GUICtrlRead kannst du die eingegebenen Werte aus deiner GUI auslesen und dann damit arbeiten.
12/31/2009 16:56 Busti#4
Wie |Moep| Gesagt hat, auslesen mit GUICtrlRead und dann _IESetValue* setzen.
12/31/2009 21:05 ~kau~#5
THX schon aml aber jetzt hänge ich hier xD
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include<IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 195, 150, 192, 124)
$Label1 = GUICtrlCreateLabel("Email", 16, 16, 36, 17)
$Label2 = GUICtrlCreateLabel("pw", 16, 40, 36, 17)
$Input1 = GUICtrlCreateInput("", 72, 16, 113, 21)
$Input2 = GUICtrlCreateInput("", 72, 40, 113, 21)
$Button1 = GUICtrlCreateButton("GO", 8, 72, 177, 73, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
_IECreate("http://www.battlefieldheroes.com/")
GUICtrlRead($Input1)
_IESetValue()
EndSwitch
WEnd
12/31/2009 22:32 kknb#6
vielleicht schreibst du noch dazu was nicht funktioniert? zum beispiel kenne ich die funktion _IESetValue() nicht
01/01/2010 01:53 ~kau~#7
Habs jetzt nochaml anders gemacht ... aber 1 problem ist noch da ^^
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 299, 54, 192, 124)
$Input1 = GUICtrlCreateInput("", 16, 16, 121, 21)
$Button1 = GUICtrlCreateButton("blub", 152, 16, 129, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
$Ini = @ScriptDir & "/testini.ini"
IniWrite($ini, "Section","Key",$input1)

$iniread = IniRead($ini,"Section","Key","Sorry es hat nicht geklappt")

MsgBox(0,"Iniread","In der IniDatei Steht : " & $iniread)
EndSwitch
WEnd
;das problem ist das es gibt nur 3 aus
01/01/2010 05:40 kknb#8
guictrlread($input1)
01/01/2010 09:46 ~kau~#9
THX jetzt gets:Hier nochmal der code^^
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 299, 54, 192, 124)
$Input1 = GUICtrlCreateInput("", 16, 16, 121, 21)
$Button1 = GUICtrlCreateButton("blub", 152, 16, 129, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
$Ini = @ScriptDir & "/testini.ini"
IniWrite($ini, "Section","Key",$input1)

$iniread = GUICtrlRead($input1)

MsgBox(0,"Iniread","In der IniDatei Steht : " & $iniread)
EndSwitch
WEnd
01/01/2010 10:09 ~kau~#10
THX jetzt gets:Hier nochmal der code^^
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 299, 54, 192, 124)
$Input1 = GUICtrlCreateInput("", 16, 16, 121, 21)
$Button1 = GUICtrlCreateButton("blub", 152, 16, 129, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
$Ini = @ScriptDir & "/testini.ini"
IniWrite($ini, "Section","Key",$input1)

$iniread = GUICtrlRead($input1)

MsgBox(0,"Iniread","In der IniDatei Steht : " & $iniread)
EndSwitch
WEnd
01/01/2010 10:21 ~kau~#11
so von einem zum anderen PRoblem xD
Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include<IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("xD", 193, 126, 192, 124)
$Label1 = GUICtrlCreateLabel("Email", 8, 8, 36, 17)
$Input1 = GUICtrlCreateInput("", 56, 8, 129, 21)
$Input2 = GUICtrlCreateInput("", 56, 32, 129, 21)
$Label2 = GUICtrlCreateLabel("pw", 8, 32, 36, 17)
$Button1 = GUICtrlCreateButton("GO!", 8, 64, 177, 57, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
$Ini = @ScriptDir & "/testini.ini"
$iniread = GUICtrlRead($input1)
$iniread = GUICtrlRead($input2)

$oIE = _IECreate ("https://www.battlefieldheroes.com/")
$oAdress = _IEFormElementGetObjByName($oIE, "Email:") ; hier solte er die Email lesen
$oPass = _IEFormElementGetObjByName ($oIE, "password:") ;hier das pw
$oEmail = _IEFormElementGetValue($oAdress)

_IEFormElementSetValue ($oPass, GUICtrlRead($input2)) ; hier solte er es schreiben
_IEFormElementSetValue ($oEmail,GUICtrlRead($input1)) ;hier auch xD

EndSwitch
WEnd
Ich bin woscheinlich zu doof das auf die seite anzupassen oder? xD
pls help^^