Seit Autoti Update ?

  • Hallo ich habe ein big prob
    habe heute autoit update gemacht und seitdem geht irgendwie
    $Ws_PopUp nicht mehr muss ich wegen dem update was ändern ?
    ICH häng das script mal an

    Spoiler anzeigen
    [autoit]

    #include<GUIConstants.au3>
    #NoTrayIcon
    FileInstall("C:\Users\KR\Desktop\Launcherback.jpg","C:\Launcherback.jpg")
    $HTT = FileReadLine("Launcher.txt",4)
    $Lname = FileReadLine("Launcher.txt",2)
    $LaName = FileReadLine("Launcher.txt",2)
    $notice = FileRead("notice.txt")
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate($Lname, 297, 400, -1, -1,$WS_POPUP)
    $Pic1 = GUICtrlCreatePic("C:\Launcherback.jpg", 0, 0, 297, 400, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$WS_DISABLED))
    $Close = GUICtrlCreateButton("X", 282, 0, 16, 16, 0)
    $Start = GUICtrlCreateButton("Start Game", 8, 376, 70, 20, 0)
    $Set = GUICtrlCreateButton("Settings", 112, 376, 70, 20, 0)
    $WEB = GUICtrlCreateButton("Website", 216, 376, 70, 20, 0)
    $Edit1 = GUICtrlCreateEdit("", 0, 264, 297, 105)
    GUICtrlSetData(-1, $notice)
    $Label1 = GUICtrlCreateLabel($LaName &" Launcher", 80, 0, 145, 17)
    GUICtrlSetFont(-1, 10, 800, 2, "Narkisim")
    GUICtrlSetColor(-1, 0x008000)
    GUICtrlSetBkColor(-1, 0x000000)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Close
    _Close ()
    Case $Start
    _Start ()
    Case $WEB
    _WEB ()
    Case $Set
    _Set ()
    EndSwitch
    WEnd
    Func _Start ()
    ShellExecute("engine.exe","/load /config debug")
    Endfunc
    Func _WEB ()
    ShellExecute($HTT)
    EndFunc
    Func _Set ()
    FileInstall("C:\Users\KR\Desktop\KAL\Resolution\Reso.exe","Reso.exe")
    MsgBox(0, "Setting", "Here you can change the Game Resolution, other settings please change in Game",4)
    Sleep(500)
    Run("Reso.exe")
    Exit
    EndFunc
    Func _Close ()
    Exit
    Endfunc

    [/autoit]

    auch bei meinen anderen scripts geht nichts mehr mit $Ws_POPUP


    Hier noch der Fehlercode

    Spoiler anzeigen

    C:\Users\KR\Desktop\KAL\Backup\Launcher\KalLauncher.au3 (9) : ==> Variable used without being declared.:
    $Form1 = GUICreate($Lname, 297, 400, -1, -1, $ws_popup)
    $Form1 = GUICreate($Lname, 297, 400, -1, -1, ^ ERROR
    >Exit code: 1 Time: 0.206

    WAS KANN ICH JETZT TUN BZW: WOHER BEKOMME ICH DIE ALTE VERSION WIEDER ?

    Habe gerade auch nachgescahaut das zu includen ist immer noch im ordner includes ist also noch immer da daran kann es also nicht liegen

  • Die Konstanten sind anders aufgeteilt, bzw, in GUIConstants sind nicht mehr alle KonstantenIncludes included.
    Das sind die aufgeteilten Dateien:

    Spoiler anzeigen
    [autoit]

    #include <GUIDefaultConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3> ; $WS_
    #include <ComboConstants.au3> ; ??
    #include <ListViewConstants.au3> ; $LV_
    #include <StaticConstants.au3> ; $SS_
    #include <ButtonConstants.au3> ; $BS_
    #include <ListBoxConstants.au3> ; ??
    #include <TabConstants.au3> ; ??
    #include <EditConstants.au3> ; $ES_
    #include <DateTimeConstants.au3> ; ??
    #include <SliderConstants.au3> ; ??
    #include <TreeViewConstants.au3> ; $TV_
    #include <ProgressConstants.au3> ; PS_
    #include <AVIConstants.au3> ; ??
    #include <UpDownConstants.au3> ; ??

    [/autoit]
  • Hi,
    das heißt, dass ud andere Dateien includen mußt.

    Ich gebe dir jedoch den Tipp mal nach Xenos "Organize Includes 4.0" zu suchen.
    Dann werden die includes automatisch per Tastendruck includet :D

  • Dass du je nach benötigten Variablen die Includes hinzufügen musst. z.B. für alle $WS_ Konstanten: #include <WindowsConstants.au3>

  • Du kannst anstatt der Konstanten (WS_POPUP) auch direkt den jeweiligen Hex-Wert angeben z.B.
    für WS_POPUP 0x80000000.
    macht die Lesbarkeit halt nicht unbedingt übersichtlicher :)

    MfG Schnuffel

    "Sarkasmus ist die niedrigste Form des Witzes, aber die höchste Form der Intelligenz."
    Val McDermid

    über mich...

    ich habe meine Erfahrungen hauptsächlich gesammelt in (grobe Übersicht):

    - RibbonBar Automation
    - MySQL Nutzung
    - GUIs in vielerlei Ausprägung
    - Nutzung von Powershell / Batch in AutoIt
    - Windows Automatisierung

    außerhalb von AutoIt:

    - Sprachen: PS, Batch, php, html(5), javascript, (perl eingeschränkt), vbs
    - Powershell (AD, WPF inkl. Multi-Threading, ...)
    - Deployment-Automatisierung ohne SCCM
    - Office-Nutzung mit COM-Object (AutoIt, PowerShell)
    - ActiveDirectory und alles was damit zusammenhängt
    - Hyper-V Clustering (Converged / Hyper Converged)
    - Serverhardware (Konfiguration, Aufbau, Architektur, Betrieb)

    Lieblingsthema:

    günstige Automatisierung von Vorgängen, für die andere Firmen viel Geld nehmen

    more to come ...