Fragen zum GUI

02/03/2009 20:24 Hokler#1
Hallo,
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
Hir mal der GUI Code:

PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Ascalon Tutorial Bier-Bot by Hokler    (v.1a)"365285191125)
$Pic1 GUICtrlCreatePic("C:\Users\Hokler\Desktop\guild_wars_main.jpg"00364284,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 GUICtrlCreateButton("Fenster Anpassen"1624121490)
GUICtrlSetFont(-1108000"Comic Sans MS")
$Button2 GUICtrlCreateButton("Background Start"16120121490)
GUICtrlSetFont(-1108000"Comic Sans MS")
$Button3 GUICtrlCreateButton("Over-Night Start"16216121490)
GUICtrlSetFont(-1108000"Comic Sans MS")
$Button4 GUICtrlCreateButton("Help !"21696121490)
GUICtrlSetFont(-1108000"Comic Sans MS")
$Button5 GUICtrlCreateButton("Exit"216192121490)
GUICtrlSetFont(-1108000"Comic Sans MS")
$Label1 GUICtrlCreateLabel("CopyRight(c) by Hokler"24826411317)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
so das war die erste Frage :)

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 =(.
02/03/2009 20:30 cab_killer#2
Zu 2 kann ich sagen
Ich habe mal gesehen das du Compile with Options auswählen kannst und da kannst du soweit ich das weiss ein Icon einsetzen da gibt es ein feld wo du ein icon auswählen kannst

Hab es noch nicht getestet aber so muss es ja gehen

Wenn nicht dann gibt es auch noch mehrere programme mit denem man da Lösen kann

MFG
02/03/2009 20:34 kknb#3
du musst windowscontstants.au3 includen
02/03/2009 20:45 Hokler#4
erstmal danke an euch =)

aber mein erster fehler ist noch da =( und des ist doof weil son grauer eintöniger gui doof aussieht =/
02/03/2009 20:51 cab_killer#5
So ich habe dein Problem gefunden

Füge mal noch

#include <StaticConstants.au3>

ein dann gehts ;)

MFG