Ich hab mal 2 fragen zum Thema GUI.
Und zwar:
1. Warum bekomm ich wen ich ein Bild in meinen GUI rein machen will immer folgendes ERROR ??
Code:
C:\Users\Hokler\AppData\Local\Temp\test.au3 (5) : ==> Variable used without being declared.: $Pic1 = GUICtrlCreatePic("C:\Users\Hokler\Desktop\guild_wars_main.jpg", 0, 0, 364, 284,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Pic1 = GUICtrlCreatePic("C:\Users\Hokler\Desktop\guild_wars_main.jpg", 0, 0, 364, 284,BitOR(^ ERROR
PHP Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ascalon Tutorial Bier-Bot by Hokler (v.1a)", 365, 285, 191, 125)
$Pic1 = GUICtrlCreatePic("C:\Users\Hokler\Desktop\guild_wars_main.jpg", 0, 0, 364, 284,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("Fenster Anpassen", 16, 24, 121, 49, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Button2 = GUICtrlCreateButton("Background Start", 16, 120, 121, 49, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Button3 = GUICtrlCreateButton("Over-Night Start", 16, 216, 121, 49, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Button4 = GUICtrlCreateButton("Help !", 216, 96, 121, 49, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Button5 = GUICtrlCreateButton("Exit", 216, 192, 121, 49, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Label1 = GUICtrlCreateLabel("CopyRight(c) by Hokler", 248, 264, 113, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Jetzt kommt die zweite Frage:
Wie kann ich meine Bot ein eigenes Icon machen?
Also wen ich mein Script zu einer .exe mache hatt die .exe immer das AutoIt Symbol. Aber ich hätte gerne ein eigenes Symbol weis aber nicht wie ich das machen kann
So ich hoffe ihr könnt mir meine Fragen beantworten =)
mfg
Hokler
PS: Ich hab die SuFu benutzt hab aber nix gefunden das mir weiterhilft =(.