.Au3 in .exe -> Button Komisch ;(

  • Nabend liebe Gemeinde,

    Habe ein Problem. Ich habe ein kleines Programm geschrieben, und dort haben die Button meine normale Win7 Optik. Wenn ich es eine .exe convertier, und dann öffne, sehen die aus wie bei Win2000.

    Also wenn ich das .au3 file rechtsklicke und dann run, ist alles normal.

    Woran kann das liegn. Hier ein Beispiel:

    Normal:

    [Blockierte Grafik: http://img687.imageshack.us/img687/823/123xdu.png]

    Danach:
    [Blockierte Grafik: http://img534.imageshack.us/img534/5153/123132.png]


    mfg Tim

    • Offizieller Beitrag

    Poste mal das Script.

    Edit: Die beiden Icons/Pics auch.

  • Tihihihi habe exakt das selbe Problem.
    Hab Windows7-64 Bit.
    Das Problem wird wahrscheinlich nicht am Code liegen.[MSIE_newline_end ]

  • Also, ich habe das noch nicht immer, das ist es ja. Ich hatte Version 3.3.2.0 . Da ging alles.
    Nun hab ich die 3.3.6.0 und das ist mein erstes Problem. Habde zu dem Zeitpunkt die alte Version 3.3.2.0 Deinstalliert.

    Hier noch das Script

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $Form1_1 = GUICreate("Helper", 426, 647, 192, 124)
    $GUI_Uebermenue = GUICtrlCreateMenu("&Info")
    $GUI_Uebermenue_Info = GUICtrlCreateMenuItem("Info", $GUI_Uebermenue)
    GUISetIcon("Helper.ico")
    GUISetFont(8, 800, 0, "Stencil Std")
    $Taskmanagerpic = GUICtrlCreatePic("vista-taskmanager-icon.jpg", 32, 32, 65, 65, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $GUI_Taskmanagerbutton = GUICtrlCreateButton("Task Manager", 128, 48, 225, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 12, 800, 0, "VAGRounded BT")
    $GUI_KillTamG = GUICtrlCreateButton("Kill Firefox", 128, 128, 225, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 12, 800, 0, "VAGRounded BT")
    $Firekillpic = GUICtrlCreatePic("firefoxdeath.jpg", 32, 112, 65, 65, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Paint = GUICtrlCreateButton("Paint", 128, 208, 225, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 12, 800, 0, "VAGRounded BT")
    $Zeichentabelle = GUICtrlCreateButton("Zeichentabelle", 128, 288, 225, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 12, 800, 0, "VAGRounded BT")
    $Pic2 = GUICtrlCreatePic("Paint.jpg", 32, 272, 65, 65, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Pic3 = GUICtrlCreatePic("CopyRight.jpg", 32, 192, 65, 65, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Label1 = GUICtrlCreateLabel("INFO :", 24, 512, 55, 25)
    GUICtrlSetFont(-1, 12, 800, 4, "Stencil Std")
    $Label2 = GUICtrlCreateLabel("Verfügbarer RAM :", 24, 536, 126, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "System")
    $Label3 = GUICtrlCreateLabel("SetData", 160, 536, 60, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "System")
    GUICtrlSetColor(-1, 0x0000FF)
    $Label4 = GUICtrlCreateLabel("Mb", 200, 536, 24, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "System")
    $GUI_Uhrzeit = GUICtrlCreateLabel("Uhrzeit:", 125, 592, 60, 22)
    GUICtrlSetFont(-1, 11, 800, 0, "System")
    $GUI_Stunde = GUICtrlCreateLabel("00", 197, 592, 26, 22)
    GUICtrlSetFont(-1, 11, 800, 0, "System")
    GUICtrlSetColor(-1, 0x0000FF)
    $GUI_Minute = GUICtrlCreateLabel("00", 229, 592, 26, 22)
    GUICtrlSetFont(-1, 11, 800, 0, "System")
    GUICtrlSetColor(-1, 0x0000FF)
    $GUI_Sekunde = GUICtrlCreateLabel("00", 261, 592, 26, 22)
    GUICtrlSetFont(-1, 11, 800, 0, "System")
    GUICtrlSetColor(-1, 0x0000FF)
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    Sleep(30)

    [/autoit] [autoit][/autoit] [autoit]

    $mem = MemGetStats() ;Liest den Ram aus
    $memaus0 = $mem[2] / 1000 ;Teilt die Kilobyte durch 1000
    $memaus = Ceiling($memaus0) ;Rundet den Wert auf eine Ganzzahl
    GUICtrlSetData($Label3, $memaus) ;Setzt das Label 3 in $memaus

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    GUICtrlSetData($GUI_Stunde, @HOUR) ;Setzt die Stunde
    GUICtrlSetData($GUI_Minute, @MIN) ;Setzt die Minute
    GUICtrlSetData($GUI_Sekunde, @SEC) ;Setzt die Sekunde

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    $nMsg = GUIGetMsg()
    Switch $nMsg

    [/autoit] [autoit][/autoit] [autoit]

    Case $GUI_EVENT_CLOSE
    Exit
    Case $GUI_Taskmanagerbutton
    Run("taskmgr.exe")
    Exit
    Case $GUI_KillTamG
    IF ProcessExists("firefox.exe")Then
    ProcessClose("firefox.exe")
    ElseIf MsgBox(48,"Firefox","Es gibt keinen Firefox Prozess !" & _
    @LF & "Schau doch lieber nochmal nach !") Then
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    Case $Paint
    Run("MSPaint.exe")
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    Case $Zeichentabelle
    Run("Charmap.exe")
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    Case $GUI_Uebermenue_Info
    $Form1 = GUICreate("Info", 324, 247, 316, 148)
    GUISetIcon("Helper.ico")
    $GUI_Info_okButton = GUICtrlCreateButton("&OK", 124, 218, 75, 25)
    $Version = GUICtrlCreateLabel("Version: 1.4", 168, 56, 71, 17)
    $Produkt = GUICtrlCreateLabel("Produkt: Helper", 168, 24, 81, 17)
    $Copyright = GUICtrlCreateLabel("Copyright by Tim (TP)©", 16, 200, 114, 17)
    $Kommentar = GUICtrlCreateLabel("Kommentar: Taskmanager, Firefox - Killer, Verügbarer RAM,",16, 150, 300, 34)
    $Kommentar2 = GUICtrlCreateLabel("Uhrzeit, Icon, Paint, Zeichentabelle", 78, 165, 300, 34)
    $Pic1 = GUICtrlCreatePic("helper_2005.jpg", 16, 16, 129, 121, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg

    [/autoit] [autoit][/autoit] [autoit]

    Case $GUI_EVENT_CLOSE
    ExitLoop
    Case $GUI_Info_okButton
    ExitLoop
    Case $Version
    Case $Produkt
    Case $Copyright
    Case $Kommentar

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd
    GUIDelete("Form1")

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd

    [/autoit]

    Mfg Tim

    Edit: Ich habe auch Win 7 64-Bit ;)

    • Offizieller Beitrag

    Das scheint in Fehler in der x64 Version zu sein. Compiliere mal als X86, da läuft es.


    Edit: Schein ein generelles Problem im X64 Mode zu sein. Die Buttons werden immer im Win2000 Style dargestellt.

    • Offizieller Beitrag

    Script in X64 Compiliert benutzen spezielle auf 64 bit optimierte Codes. Im Normalfall sollte es aber auch reichen den Code als 32 bit (x86) zu compilieren. Dieser Code läuft standardmäßig auf allen Windowsversionen.