Und wenn Du es so in eine Text-Datei schreibst und dann weiter nutzt. Hilft das weiter? Verstehe noch nicht ganz was Du möchtest und ich bitte um Entschuldigung, wenn ich es falsch verstanden habe.
Spoiler anzeigen
txtmake ()
Func txtmake ()
Local const $now = @ScriptDir & "\textdat.txt"
FileWrite ($now, "$Form1 = GUICreate(""Form1"", 377, 160, 192, 124)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Button1 = GUICtrlCreateButton(""Button1"", 0, 0, 75, 25, 0)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Button2 = GUICtrlCreateButton(""Button2"", 0, 32, 75, 25, 0)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Button3 = GUICtrlCreateButton(""Button3"", 0, 64, 75, 25, 0)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Button4 = GUICtrlCreateButton(""Button4"", 0, 96, 75, 25, 0)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Button5 = GUICtrlCreateButton(""Button5"", 0, 128, 75, 25, 0)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Edit1 = GUICtrlCreateEdit("""", 80, 0, 289, 153)' & @CRLF _" & @CRLF)
FileWrite ($now, "GUISetState(@SW_SHOW, $Form1)' & @CRLF _" & @CRLF)
FileWrite ($now, "$x = InputBox(""Hallo"", ""Irgendwas"")' & @CRLF _" & @CRLF)
FileWrite ($now, "GUICtrlSetData($Edit1, $x)' & @CRLF _" & @CRLF)
FileWrite ($now, "Sleep(3000)' & @CRLF _" & @CRLF)
FileWrite ($now, "$Form2 = GUICreate(""Form2"", 700, 700)' & @CRLF _" & @CRLF)
FileWrite ($now, "GUISetState(@SW_SHOW, $Form2)' & @CRLF _" & @CRLF)
FileWrite ($now, "WinSetOnTop($Form2, """", 1)' & @CRLF _" & @CRLF)
FileWrite ($now, "GUIDelete($Form1)' & @CRLF _" & @CRLF)
FileWrite ($now, "WinSetOnTop($Form2, """", 0)' & @CRLF _" & @CRLF)
FileWrite ($now, "Sleep(1000)' & @CRLF _" & @CRLF)
FileWrite ($now, "GUIDelete($Form2)' & @CRLF _" & @CRLF)
FileWrite ($now, "MsgBox(0, """", ""Ende"")' & @CRLF _" & @CRLF)
FileWrite ($now, "" & @CRLF)
EndFunc