Hallo ,
Ich sitze grade an einem Script was mir einen Teil eines Quelltextes für eine Website Ausspucken soll.
In einer Ersten Version wurde der Text per Send befehl Geschrieben.
Ich bin grade dabei das Script neu aufzulegen. Ich versuche dass der text in einer Inputbox ausgegeben wird und dass man diesen nurnoch Kopieren muss.
Ungefähr wie bei einem KeyGen.
Ich nutze dafür GUICtrlCreateEdit und GUICtrlSetData.
Problem1: Die Fehlerconsole sagt mir ich hätte $Combo01 nicht deklaiert. Das habe ich aber, oder ich hab es zumindest versucht....
Code
>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Herny\Desktop\Gallery-Bot.au3"
C:\Users\Herny\Desktop\Gallery-Bot.au3 (39) : ==> Variable used without being declared.:
GUICtrlSetData($Edit,"address = ""/gallery/"&$Combo01&"/vollbild-mouseover-funktion-"&$Input1&"/""", 1)
GUICtrlSetData($Edit,"address = ""/gallery/"&^ ERROR
>Exit code: 1 Time: 5.638
Problem2: Wie mache ich in der EditBox einen Absatz ? Sprich: Neue Zeile ?
Code:
C
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>
Global $Combo1
Global $Input1
Global $Input2
Global $Input3
Global $Edit
Global $bo = true
$Form1 = GUICreate("Form1", 572, 755, 193, 125)
$Label1 = GUICtrlCreateLabel("Letzte Mousoverfunktion:", 8, 8, 150, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Letze Bildnummer:", 224, 8, 113, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Katogorie:", 8, 40, 65, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("Anzahl Neue Bilder:", 168, 40, 121, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Input1 = GUICtrlCreateInput("", 168, 8, 41, 21)
$Input2 = GUICtrlCreateInput("", 336, 8, 41, 21)
$Input3 = GUICtrlCreateInput("", 288, 40, 89, 21)
$Combo1 = GUICtrlCreateCombo("", 72, 40, 81, 25)
GUICtrlSetData(-1, "nacht|tag|comet_2010|events|coulagen|hdr|menschen|stadt|tiere")
$Button1 = GUICtrlCreateButton("Quelltext Generieren", 384, 8, 171, 49, 0)
$Edit = GUICtrlCreateEdit(@CRLF, 8, 64, 553, 681,$ES_AUTOVSCROLL + $WS_VSCROLL)
GUISetState(@SW_SHOW)
Func Bot()
$Combo1=GUICtrlread($Combo1)
$Input1=GUICtrlread($Input1)
$Input2=GUICtrlread($Input2)
$Input3=GUICtrlread($Input3)
GUICtrlSetData($Edit,"<file", 1)
GUICtrlSetData($Edit,"winTitle = ""Max Muster Fotografie // "&$Combo1&"""", 1)
GUICtrlSetData($Edit,"address = ""/gallery/"&$Combo01&"/vollbild-mouseover-funktion-"&$Input1&"/""", 1)
GUICtrlSetData($Edit,"type = ""img""", 1)
GUICtrlSetData($Edit,"title = ""Max Muster Fotografie // "&$Combo1&"""", 1)
GUICtrlSetData($Edit,"thumbnail = ""gallery/"&$Combo01&"/"&$Combo01&"_"&$Input2&"_tn.jpg", 1)
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Bot()
EndSwitch
WEnd
Alles anzeigen
Vielen Dank im Vorraus ![]()
LG Klickboy