Hi @ all,
ich versuche gerade ein programm zu schreiben das einen AutoIT Code aus dem Internet downloadet und ihn dann je nach eingaben im input auch anpasst.
Das downloaden und anzeigen in einem edit schaffe ich nur das StringReplace will nicht gehen. Hier der Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <String.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 607, 185, 68)
$Edit1 = GUICtrlCreateEdit("", 8, 112, 609, 489)
GUICtrlSetData(-1,"Seas"&@CRLF&"Seas" )
$Input1 = GUICtrlCreateInput("", 16, 32, 121, 21)
$Label1 = GUICtrlCreateLabel("Servermainpage", 16, 8, 81, 17)
GUICtrlCreateInput("", 160, 32, 121, 21)
$Label2 = GUICtrlCreateLabel("Accountpage:", 160, 8, 71, 17)
GUICtrlCreateInput("", 304, 32, 121, 21)
$Label3 = GUICtrlCreateLabel("Forum:", 304, 8, 36, 17)
GUICtrlCreateInput("", 448, 32, 121, 21)
$Label4 = GUICtrlCreateLabel("Realmlist: (Mit Set Realmlis)", 448, 8, 133, 17)
$Button1 = GUICtrlCreateButton("Code erzeugen", 256, 56, 91, 25, 0)
$Label5 = GUICtrlCreateLabel("AutoIT Code: ", 264, 88, 70, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $BUtton1
$Load=InetGet("http://hostingtotal.ho.funpic.de/upload/files/may/launcher.txt",@TempDir&"\launcher.txt")
$File2=FileOpen(@TempDir&"\launcher.txt",0)
GuiCtrlSetData($Edit1,FileRead($File2))
StringReplace($Edit1,"http://uwcrew.eu",GuiCtrlRead($Input1))
EndSwitch
WEnd
Was mache ich Falsch?
Habe bei StringReplace auch
GuiCtrlRead($Edit1)
[/autoit]versucht.
Gruß Roggazzz