1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. Awesome

Beiträge von Awesome

  • [Tutorial] Login + Registrierung über eine MySql-DB [+ Hilfedateien]

    • Awesome
    • 14. Juli 2010 um 11:25

    Vielleicht liegt es an bplaced.net.
    Habe gehört die blocken sowas.

    Nimm doch kilu :) War damit zu frieden bis ich paid-space hatte

  • [Tutorial] Login + Registrierung über eine MySql-DB [+ Hilfedateien]

    • Awesome
    • 13. Juli 2010 um 23:22

    Hast du auch ne Datenbank wo du den benutzer anlegen kannst ?

    Wenn ja welchen Anbieter hast du ?
    >Probiere mal ein anderen

    Mit beahlten webspace klappt es zu 100%

  • Updatefunktion funktioniert nicht ganz

    • Awesome
    • 12. Juli 2010 um 22:02

    Wofür brauchst du eine update.exe ^^ ?

    Also so entnehme ich das aus deinem text.

    Er checkt einfach ob es eine neue version gibt, wenn es eine gibt BOOM werden die Daten runtergeladen und entpackt.

  • Update (Checken + runterladen + entpacken)

    • Awesome
    • 12. Juli 2010 um 22:00
    [autoit]

    Const $vUpdateServer = "deinedomain.de" ; Deine domain um checken ohne www und http
    Const $vScriptFile = "http://www.deinedomain.de/version.txt" ; Zum checken der neuen version
    Const $vChangelogFile = "http://www.deinedomain.de/changelog.txt" ; Was sich geändert hat
    Const $vUnrarDLL = "http://www.deinedomain.de/unrar.dll" ; Benötigt man einfach
    Const $vMapFiles = "http://www.deinedomain.de/changelog.rar" ; Dort packst du einfach alle Datein rein die entpackt werden soll

    [/autoit]



    $vUnrarDLL = Deine datein die entpackt werden. Dort wäre dann auch die exe datei drin.

  • Browsergame + Forum

    • Awesome
    • 9. Juli 2010 um 18:57

    Alle weiteren Info's zum Browsergame sind im extra Forum zu finden.

    Hier besteht aber die möglichkeit mit mir in Kontakt zu treten :)

  • Syntax Highlight AutoIt BBCode

    • Awesome
    • 9. Juli 2010 um 13:35

    Wir haben jetzt eigentlich alles eingetragen nur wenn die Liste zulang ist , kackt das Forum ab wenn man den Beitrag sich erst anschaut....

    warum ?!

    hier mal ein ausschnitt.

    Dateien

    Tralala.rar 13,89 kB – 402 Downloads
  • Script einiger maßen Schützen

    • Awesome
    • 9. Juli 2010 um 02:22

    mir ist schon klar , dass das entpackte script natürlich vorher erst den obusefaktor durchlaufen hat !

  • Script einiger maßen Schützen

    • Awesome
    • 9. Juli 2010 um 01:54

    Hallo Liebes Forum.
    Ich wollte mal versuch ein Script zu erstellen was einiger maßen ein Script schomer schütz !

    Ich weiß 100% ein Script zu schützen klappt nie, aber vll könnt ihr mir helfen, dass es noch Sicherer wird.

    Bitte auf freundlichen Feedback ;)

    Regards

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <INet.au3>
    #NoTrayIcon
    #cs
    COPYRIGHT GOES TO FRANKY
    VISIT ME ON MY NEW FORUM
    http://forum.the-franky.de

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

    .//////////: -/////////:-` -///. -///` ://. `///` -///:`//// `///-
    /ddhhhhhhhhs /ddhhhhhhhddy- .hdddy` +ddds` odd/ `ddd- .sddh/` -yddo` .ydho`
    /ddh /ddy `sddy `ydhsdds +ddddy- odd/ `ddd- .ohdh+` `sdds` -hdh/
    /ddh......` /ddy `.yddo oddo`ydd+ +ddyhdh: odd/ `ddd:+hddo` +hdy/hdh-
    /dddhhhhhho /ddhhhhhddhy/` /ddy` .hdd: +dd+-hdd/ odd/ `dddhdhddh- /hdddy.
    /ddh------. /ddh::+hdho` .hddo///yddh. +dd+ `yddosdd/ `dddho./hdh/ /ddh`
    /ddh /ddy `sddh: `yddhhhhhhhddy` +dd+ `oddddd/ `ddd: :hddo` :ddh
    /ddh /ddy /hdd+ sdds `yddo +dd+ /dddd/ `ddd- .hddy. :ddh
    :sss :sso -sss+:sss` .sss- /ss/ :sss: `sss. .ssss. -sss

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

    Regards
    #ce
    Const $vUpdateServer = "the-franky.de" ; Deine domain um checken ohne www und http
    Const $vScriptFile = "http://www.the-franky.de/version.txt" ; Zum checken der neuen version
    Const $vUnrarDLL = "http://www.the-franky.de/unrar.dll" ; Benötigt man einfach
    Const $vMapFiles = "http://www.the-franky.de/Programm.rar" ; Dort packst du einfach alle Datein rein die entpackt werden soll

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

    HotKeySet("{END}", "_exit")
    $INI = @ScriptDir & "\Data.ini"

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

    $vVersion = "1" ; Die version die das Script hat. Wird mit die aus dem Internet überpruft.
    $vGUIColor = 0x161616
    $vGUIColor2 = 0x161616
    Dim $hGUIListChangelog

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

    If Not FileExists(@ScriptDir & "\Data\") Then ; Ordner erstellen
    DirCreate(@ScriptDir & "\Data\")
    EndIf

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

    If Not FileExists($INI) Then
    IniWrite($INI, "Default", "Titel", "(C) The-Franky 2010 - 2011 Visit: http://www.forum.the-franky.de Thanks")
    EndIf

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

    _FU_ClickUpdateCheck()

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

    Func _exit()
    Sleep(10)
    Exit
    EndFunc ;==>_exit

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

    ; Hier wird gecheckt ob man verbindung zum word-wide-web hat
    ;Aber auch ob es ein Fehler gab
    ;Und ob die neuste version schon benutzt wird.
    Func _FU_ClickUpdateCheck()
    _FU_UpdateCheck($vVersion)
    If @error = 1 Then
    MsgBox(48, "Connection timeout", "You either do not have a connection to the world wide web or the server is currently down.")
    Exit
    ElseIf @error = 2 Then
    MsgBox(48, "Error", "Error getting the version!")
    Exit
    ElseIf @error = 3 Then
    MsgBox(64, "Danke", "Du darfst das Programm benutzen")
    _FU_MapFilesInstall()
    Else
    MsgBox(48, "Error", "Du darfst das Programm nicht mehr benuten melde dich an den Hersteller")

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

    Exit
    ;~ GUISetState(@SW_SHOW, $hGUIUpdate) ;5
    EndIf
    EndFunc ;==>_FU_ClickUpdateCheck

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

    Func _FU_UpdateCheck($vCurrentVersion)
    If Ping($vUpdateServer) = 0 Then
    SetError(1)
    Else
    $vLatestVersion = _INetGetSource_($vScriptFile)
    If @error Then
    SetError(2)
    Else
    If $vCurrentVersion <> $vLatestVersion Then
    MsgBox(48, "Error", "Du darfst das Programm nicht mehr benuten melde dich an den Hersteller")
    Exit
    Return SetError(0, 0, $vLatestVersion)
    Else
    SetError(3)
    EndIf
    EndIf
    EndIf
    Return 0
    EndFunc ;==>_FU_UpdateCheck

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

    Func _INetGetSource_($s_URL, $bString = True)
    Local $sString = InetRead($s_URL, 1)
    Local $nError = @error, $nExtended = @extended
    If $bString Then $sString = BinaryToString($sString)
    Return SetError($nError, $nExtended, $sString)
    EndFunc ;==>_INetGetSource_

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

    AdlibRegister("_Checken", 1000)

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

    Const $vMapFilesArray[1][2] = [ _ ;Contains information about the mapfiles ( $Array[x][0] = Filename, $Array[x][1] = Filesize)
    ["Programm.exe", 300830]]

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

    If _SM_Check4MapFiles() = 1 Then
    MsgBox(0, "Error", "Datei ist beschädigt")
    FileDelete(@ScriptDir & "\Programm.exe")
    Exit 0
    Else
    ShellExecute(@ScriptDir & "\Programm.exe")
    EndIf
    Func _SM_Check4MapFiles()
    For $z = 0 To UBound($vMapFilesArray) - 1
    $v_File = @ScriptDir & "\" & $vMapFilesArray[$z][0]
    If Not FileExists($v_File) Or FileGetSize($v_File) <> $vMapFilesArray[$z][1] Then _
    Return 1
    Next

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

    Return 0
    EndFunc ;==>_SM_Check4MapFiles

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

    Func _Checken()
    If ProcessExists("Programm.exe") Then
    ; Nix machen alles ist gut
    Else
    FileDelete(@ScriptDir & "\Programm.exe")
    Exit 0
    EndIf
    EndFunc ;==>_Checken

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

    While 1
    Sleep(1000)
    WEnd

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

    Func _FU_MapFilesInstall()
    $v_MapFiles = @TempDir & "\Programm.rar" ; wird nur gespeichert ,damit es entpackt werden kann

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

    ProgressOn("Downloading...", "Loading 'unrar.dll'", "")

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

    $v_SizeUnrarDLL = Round(InetGetSize($vUnrarDLL) / 1024)
    $hDownload = InetGet($vUnrarDLL, @TempDir & "\unrar.dll", 1, 1)
    Do
    $v_DLBytes = Round(InetGetInfo($hDownload, 0) / 1024)
    $v_DLPercent = Round($v_DLBytes / $v_SizeUnrarDLL * 100)
    ProgressSet($v_DLPercent, @LF & $v_DLBytes & "/" & $v_SizeUnrarDLL & "KB " & $v_DLPercent & "%")
    Sleep(100)
    Until InetGetInfo($hDownload, 2)

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

    ProgressSet(0, "", "Loading 'Programm.rar'")

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

    $v_SizeMapFilesRar = Round(InetGetSize($vMapFiles) / 1024)
    Local $hDownload = InetGet($vMapFiles, $v_MapFiles, 1, 1)
    Do
    $v_DLBytes = Round(InetGetInfo($hDownload, 0) / 1024)
    $v_DLPercent = Round($v_DLBytes / $v_SizeMapFilesRar * 100)
    ProgressSet($v_DLPercent, @LF & $v_DLBytes & "/" & $v_SizeMapFilesRar & "KB " & $v_DLPercent & "%")
    Sleep(200)
    Until InetGetInfo($hDownload, 2)

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

    ProgressSet(100, @LF & "This may take some seconds.", "Installing DateiName...")
    $bExtractionSuc = _FU_RARExtract(@TempDir & "\unrar.dll", $v_MapFiles)

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

    Sleep(2000)

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

    FileDelete(@TempDir & "\unrar.dll")
    FileDelete($v_MapFiles)

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

    If $bExtractionSuc = 1 Then
    ProgressSet(100, @LF & "Installation done. Have fun!", "Installing DateiName...")
    Sleep(3000)
    Else
    For $i = 15 To 1 Step -1
    ProgressSet(100, "Error occured. Please make sure that you are connected" & @CRLF & "to the www and that SBot Manager was started in" & @CRLF & "32 bit mode. Continuing in " & $i & " seconds", "Installing Programm...")
    Sleep(1000)
    Next
    EndIf

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

    ProgressOff()
    EndFunc ;==>_FU_MapFilesInstall

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

    ;Auto extraction of rar archives into the scriptdirectory
    Func _FU_RARExtract($v_UnrarDLL, $v_RarFile) ;$v_UnrarDLL = path to unrar.dll file, $v_RarFile = path to rar file
    Local $sResult

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

    $rar_ArchivName = DllStructCreate("char[260]")
    DllStructSetData($rar_ArchivName, 1, $v_RarFile)

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

    $rar_CmtBuf = DllStructCreate("char[16384]")
    For $iCount = 1 To 16384
    $sResult &= " "
    Next
    DllStructSetData($rar_CmtBuf, 1, $sResult)

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

    $rar_Str = DllStructCreate("ptr;uint;uint;ptr;uint;uint;uint")

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

    DllStructSetData($rar_Str, 1, DllStructGetPtr($rar_ArchivName))
    DllStructSetData($rar_Str, 2, 1) ;1 = $RAR_OM_EXTRACT
    DllStructSetData($rar_Str, 3, 0)
    DllStructSetData($rar_Str, 4, DllStructGetPtr($rar_CmtBuf))
    DllStructSetData($rar_Str, 5, 16384)
    DllStructSetData($rar_Str, 6, 0)
    DllStructSetData($rar_Str, 7, 0)
    $rar_Header_CmtBuf = DllStructCreate("char[16384]")

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

    $rar_Header_Str = DllStructCreate("char[260];char[260];uint;uint;uint;uint;uint;uint;uint;uint;uint;ptr;uint;uint;uint")
    DllStructSetData($rar_Header_Str, 12, DllStructGetPtr($rar_Header_CmtBuf))

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

    If FileExists($v_UnrarDLL) Then
    $DLLUnrar = DllOpen($v_UnrarDLL)
    $rar_OpenedArchive = DllCall($DLLUnrar, "int", "RAROpenArchive", "ptr", DllStructGetPtr($rar_Str))

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

    If IsArray($rar_OpenedArchive) Then
    $iCount = 0
    Do
    $rar_Header = DllCall($DLLUnrar, "int", "RARReadHeader", "ptr", $rar_OpenedArchive[0], "ptr", DllStructGetPtr($rar_Header_Str))
    DllCall($DLLUnrar, "int", "RARProcessFile", "ptr", $rar_OpenedArchive[0], "int_ptr", 2, "ptr", "", "ptr", "") ;2 = $RAR_EXTRACT
    $iCount += 1
    Until $rar_Header[0] <> 0 Or $iCount = 20

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

    DllCall($DLLUnrar, "int", "RARCloseArchive", "int", $rar_OpenedArchive[0])

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

    DllClose($DLLUnrar)
    Return 1
    EndIf
    EndIf
    Return 0
    EndFunc ;==>_FU_RARExtract

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • Update (Checken + runterladen + entpacken)

    • Awesome
    • 8. Juli 2010 um 22:02

    Hallo Liebes Forum.

    Hier ein super Script zum updaten der Version.
    Falls die Version des scripts älter ist kann die neue runtergeladen werden.
    Diese wird direkt entpackt :)

    Alle datein die man braucht sind im Anhang.

    Bitte auf Feedback.

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <INet.au3>
    Const $vUpdateServer = "deinedomain.de" ; Deine domain um checken ohne www und http
    Const $vScriptFile = "http://www.deinedomain.de/version.txt" ; Zum checken der neuen version
    Const $vChangelogFile = "http://www.deinedomain.de/changelog.txt" ; Was sich geändert hat
    Const $vUnrarDLL = "http://www.deinedomain.de/unrar.dll" ; Benötigt man einfach
    Const $vMapFiles = "http://www.deinedomain.de/changelog.rar" ; Dort packst du einfach alle Datein rein die entpackt werden soll

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

    HotKeySet("{END}", "_exit")
    $INI = @ScriptDir & "\Data.ini"

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

    $vVersion = "1.12" ; Die version die das Script hat. Wird mit die aus dem Internet überpruft.
    $vGUIColor = 0x161616
    $vGUIColor2 = 0x161616
    Dim $hGUIListChangelog

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

    If Not FileExists(@ScriptDir & "\Data\") Then ; Ordner erstellen
    DirCreate(@ScriptDir & "\Data\")
    EndIf

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

    If Not FileExists($INI) Then
    IniWrite($INI, "Default", "Titel", "(C) The-Franky 2010 - 2011 Visit: http://www.forum.the-franky.de Thanks")
    EndIf

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

    #region UpdateGUI
    ;UpdateGUI
    $vGUIStandartHeight = 290
    $vGUILargeHeight = $vGUIStandartHeight + 327
    $vGUIStandartWidth = 778
    $vGUIColor = 0x161616
    $hGUI = GUICreate("Tralala v" & $vVersion, $vGUIStandartWidth - 6, $vGUIStandartHeight) ; Das Gui wo am ende der Changelog drin steht wenn es eine neue version gibt.
    $hGUIUpdate = GUICreate("Tralala - Update", 500, 305, -1, -1, -1, 0x00000080, $hGUI)
    GUISetBkColor($vGUIColor, $hGUIUpdate)

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

    $hGUILabelNewVersion = GUICtrlCreateLabel("", 10, 10, 480, 17)
    GUICtrlSetColor(-1, 0xFFFFFF)
    $hGUIListChangelog = GUICtrlCreateList("", 10, 30, 480, 240, BitOR(0x4000, 0x0100, 0x00200000))
    GUICtrlSetBkColor(-1, $vGUIColor)
    GUICtrlSetColor(-1, 0xFFFFFF)

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

    $hGUIButtonDownload = GUICtrlCreateButton("Download", 10, 275, 235, 20)
    $hGUIButtonCancelUpdate = GUICtrlCreateButton("Cancel", 255, 275, 235, 20)
    GUISetState(@SW_HIDE)
    #endregion UpdateGUI
    MainGui() ; Das normale GUI wird erstellt :)
    Func MainGui()
    Opt("GUIOnEventMode", 0)

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

    $maingui = GUICreate("Main Gui", 260, 175, -1, -1)
    $hGUILabelUpdateAndSApfelInfo = GUICtrlCreateLabel("", 25, 14, 84, 17)
    GUICtrlSetColor(-1, 0x00FF00)
    GUICtrlSetState(-1, 32)
    GUICtrlCreateLabel("Test2", 53, 38, 55, 17)
    $check = GUICtrlCreateButton("Check", 10, 88, 240, 20)
    $groupgeneral2 = GUICtrlCreateGroup("Info", 10, 113, 240, 42)
    $Label1 = GUICtrlCreateLabel("Made by" & "Franky", 24, 128, 205, 19)
    GUICtrlCreateGroup("", -99, -99, 1, 1)

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

    GUISetState(@SW_SHOW, $maingui)

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

    While 1
    Switch GUIGetMsg($maingui)
    Case -3
    Exit

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

    Case $check
    _FU_ClickUpdateCheck()

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

    Case $hGUIButtonDownload
    _FU_ClickButtonDownload()
    Case $hGUIButtonCancelUpdate, $hGUIUpdate
    _FU_ClickButtonCancelUpdate()

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

    EndSwitch
    Sleep(10)
    WEnd

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

    GUIDelete($maingui)
    Sleep(100)

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

    EndFunc ;==>MainGui

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

    Func _exit()
    Sleep(10)
    Exit
    EndFunc ;==>_exit

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

    ; Hier wird gecheckt ob man verbindung zum word-wide-web hat
    ;Aber auch ob es ein Fehler gab
    ;Und ob die neuste version schon benutzt wird.
    Func _FU_ClickUpdateCheck()
    _FU_UpdateCheck($vVersion)
    If @error = 1 Then
    MsgBox(48, "Connection timeout", "You either do not have a connection to the world wide web or the server is currently down.")
    ElseIf @error = 2 Then
    MsgBox(48, "Error", "Error getting the version!")
    ElseIf @error = 3 Then
    MsgBox(64, "No update available", "You are using the latest version (v" & $vVersion & ").")
    Else
    GUISetState(@SW_SHOW, $hGUIUpdate) ;5
    EndIf
    EndFunc ;==>_FU_ClickUpdateCheck

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

    Func _FU_UpdateCheck($vCurrentVersion)
    If Ping($vUpdateServer) = 0 Then
    SetError(1)
    Else
    $vLatestVersion = _INetGetSource_($vScriptFile)
    If @error Then
    SetError(2)
    Else
    If $vCurrentVersion <> $vLatestVersion Then
    GUICtrlSetData($hGUILabelNewVersion, "There is a new version available (old: " & $vCurrentVersion & " | new: " & $vLatestVersion & ").")
    $vChangelog = StringSplit(_INetGetSource_($vChangelogFile), @CRLF)
    For $i = 1 To $vChangelog[0]
    GUICtrlSendMsg($hGUIListChangelog, 0x0180, 0, $vChangelog[$i])
    Next
    Return SetError(0, 0, $vLatestVersion)
    Else
    SetError(3)
    EndIf
    EndIf
    EndIf
    Return 0
    EndFunc ;==>_FU_UpdateCheck

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

    Func _INetGetSource_($s_URL, $bString = True)
    Local $sString = InetRead($s_URL, 1)
    Local $nError = @error, $nExtended = @extended
    If $bString Then $sString = BinaryToString($sString)
    Return SetError($nError, $nExtended, $sString)
    EndFunc ;==>_INetGetSource_

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

    Func _FU_ClickButtonDownload()
    GUISetState(@SW_HIDE, $hGUIUpdate)
    GUICtrlSetData($hGUIListChangelog, "")
    _FU_MapFilesInstall()
    EndFunc ;==>_FU_ClickButtonDownload

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

    Func _FU_ClickButtonCancelUpdate()
    GUISetState(@SW_HIDE, $hGUIUpdate)
    GUICtrlSetData($hGUIListChangelog, "")
    EndFunc ;==>_FU_ClickButtonCancelUpdate

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

    Func _FU_MapFilesInstall()
    $v_MapFiles = @TempDir & "\dateiname.rar" ; wird nur gespeichert ,damit es entpackt werden kann

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

    ProgressOn("Downloading...", "Loading 'unrar.dll'", "")

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

    $v_SizeUnrarDLL = Round(InetGetSize($vUnrarDLL) / 1024)
    $hDownload = InetGet($vUnrarDLL, @TempDir & "\unrar.dll", 1, 1)
    Do
    $v_DLBytes = Round(InetGetInfo($hDownload, 0) / 1024)
    $v_DLPercent = Round($v_DLBytes / $v_SizeUnrarDLL * 100)
    ProgressSet($v_DLPercent, @LF & $v_DLBytes & "/" & $v_SizeUnrarDLL & "KB " & $v_DLPercent & "%")
    Sleep(100)
    Until InetGetInfo($hDownload, 2)

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

    ProgressSet(0, "", "Loading 'DateiName.rar'")

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

    $v_SizeMapFilesRar = Round(InetGetSize($vMapFiles) / 1024)
    Local $hDownload = InetGet($vMapFiles, $v_MapFiles, 1, 1)
    Do
    $v_DLBytes = Round(InetGetInfo($hDownload, 0) / 1024)
    $v_DLPercent = Round($v_DLBytes / $v_SizeMapFilesRar * 100)
    ProgressSet($v_DLPercent, @LF & $v_DLBytes & "/" & $v_SizeMapFilesRar & "KB " & $v_DLPercent & "%")
    Sleep(200)
    Until InetGetInfo($hDownload, 2)

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

    ProgressSet(100, @LF & "This may take some seconds.", "Installing DateiName...")
    $bExtractionSuc = _FU_RARExtract(@TempDir & "\unrar.dll", $v_MapFiles)

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

    Sleep(2000)

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

    FileDelete(@TempDir & "\unrar.dll")
    FileDelete($v_MapFiles)

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

    If $bExtractionSuc = 1 Then
    ProgressSet(100, @LF & "Installation done. Have fun!", "Installing DateiName...")
    Sleep(3000)
    Else
    For $i = 15 To 1 Step - 1
    ProgressSet(100, "Error occured. Please make sure that you are connected" & @CRLF & "to the www and that SBot Manager was started in" & @CRLF & "32 bit mode. Continuing in " & $i & " seconds", "Installing DateiName...")
    Sleep(1000)
    Next
    EndIf

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

    ProgressOff()
    EndFunc ;==>_FU_MapFilesInstall

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

    ;Auto extraction of rar archives into the scriptdirectory
    Func _FU_RARExtract($v_UnrarDLL, $v_RarFile) ;$v_UnrarDLL = path to unrar.dll file, $v_RarFile = path to rar file
    Local $sResult

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

    $rar_ArchivName = DllStructCreate("char[260]")
    DllStructSetData($rar_ArchivName, 1, $v_RarFile)

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

    $rar_CmtBuf = DllStructCreate("char[16384]")
    For $iCount = 1 To 16384
    $sResult &= " "
    Next
    DllStructSetData($rar_CmtBuf, 1, $sResult)

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

    $rar_Str = DllStructCreate("ptr;uint;uint;ptr;uint;uint;uint")

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

    DllStructSetData($rar_Str, 1, DllStructGetPtr($rar_ArchivName))
    DllStructSetData($rar_Str, 2, 1) ;1 = $RAR_OM_EXTRACT
    DllStructSetData($rar_Str, 3, 0)
    DllStructSetData($rar_Str, 4, DllStructGetPtr($rar_CmtBuf))
    DllStructSetData($rar_Str, 5, 16384)
    DllStructSetData($rar_Str, 6, 0)
    DllStructSetData($rar_Str, 7, 0)
    $rar_Header_CmtBuf = DllStructCreate("char[16384]")

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

    $rar_Header_Str = DllStructCreate("char[260];char[260];uint;uint;uint;uint;uint;uint;uint;uint;uint;ptr;uint;uint;uint")
    DllStructSetData($rar_Header_Str, 12, DllStructGetPtr($rar_Header_CmtBuf))

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

    If FileExists($v_UnrarDLL) Then
    $DLLUnrar = DllOpen($v_UnrarDLL)
    $rar_OpenedArchive = DllCall($DLLUnrar, "int", "RAROpenArchive", "ptr", DllStructGetPtr($rar_Str))

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

    If IsArray($rar_OpenedArchive) Then
    $iCount = 0
    Do
    $rar_Header = DllCall($DLLUnrar, "int", "RARReadHeader", "ptr", $rar_OpenedArchive[0], "ptr", DllStructGetPtr($rar_Header_Str))
    DllCall($DLLUnrar, "int", "RARProcessFile", "ptr", $rar_OpenedArchive[0], "int_ptr", 2, "ptr", "", "ptr", "") ;2 = $RAR_EXTRACT
    $iCount += 1
    Until $rar_Header[0] <> 0 Or $iCount = 20

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

    DllCall($DLLUnrar, "int", "RARCloseArchive", "int", $rar_OpenedArchive[0])
    DllClose($DLLUnrar)
    Return 1
    EndIf
    EndIf
    Return 0
    EndFunc ;==>_FU_RARExtract

    [/autoit]

    Dateien

    Dokumente.rar 82,01 kB – 458 Downloads
  • Browsergame + Forum

    • Awesome
    • 8. Juli 2010 um 20:37

    Kannst mir ja mal peer PN dein Skype name hinzufügen :) Denn viele Entwickler haben auch Skype :)

  • Browsergame + Forum

    • Awesome
    • 8. Juli 2010 um 14:32

    Melde dich dan bitte am Forum an :)

  • Syntax Highlight AutoIt BBCode

    • Awesome
    • 8. Juli 2010 um 14:25

    Danke schön :)
    Ich werde nachdem ich von Oma und Opa wieder daheim bin mich mal an die Fleißarbeit setzen... ^^

    Bis dahin gut holz... tüdelü

  • Updatefunktion funktioniert nicht ganz

    • Awesome
    • 8. Juli 2010 um 14:23

    Mach es erstmal so :)
    So klappt es habe ich es grade getest was mit Klinik und som Blauen herz ein bild wah ^^

    Hier ist der SourceCode.
    Das design kannst du ja anpassen ;)

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <INet.au3>
    Const $vUpdateServer = "crazygamingcrew.spacequadrat.de"
    Const $vScriptFile = "http://www.crazygamingcrew.spacequadrat.de/spinstaller/version.txt"
    Const $vChangelogFile = "http://www.crazygamingcrew.spacequadrat.de/spinstaller/changelog.txt"
    Const $vUnrarDLL = "http://www.crazygamingcrew.spacequadrat.de/spinstaller/unrar.dll"
    Const $vMapFiles = "http://www.crazygamingcrew.spacequadrat.de/spinstaller/changelog.rar"

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

    HotKeySet("{END}", "_exit")
    $INI = @ScriptDir & "\Data.ini"

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

    $vVersion = "3.15b"
    $vGUIColor = 0x161616
    $vGUIColor2 = 0x161616
    Dim $hGUIListChangelog

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

    If Not FileExists(@ScriptDir & "\Data\") Then
    DirCreate(@ScriptDir & "\Data\")
    EndIf

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

    If Not FileExists($INI) Then
    IniWrite($INI, "Default", "Titel", "(C) The-Franky 2009 - 2010")
    EndIf

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

    #region UpdateGUI
    ;UpdateGUI
    $vGUIStandartHeight = 290
    $vGUILargeHeight = $vGUIStandartHeight + 327
    $vGUIStandartWidth = 778
    $vGUIColor = 0x161616 ;Label of BigMap needs to be changed manually (GUIFuncs.au3, Function: _SM_WritePicLabel + _SM_WorldMapExtras), also Background of Minimap (GUIFuncs.au3, Function: _SM_UnsetMiniMap)
    $hGUI = GUICreate("Tralala v" & $vVersion, $vGUIStandartWidth - 6, $vGUIStandartHeight)
    $hGUIUpdate = GUICreate("Tralala - Update", 500, 305, -1, -1, -1, 0x00000080, $hGUI)
    GUISetBkColor($vGUIColor, $hGUIUpdate)

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

    $hGUILabelNewVersion = GUICtrlCreateLabel("", 10, 10, 480, 17)
    GUICtrlSetColor(-1, 0xFFFFFF)
    $hGUIListChangelog = GUICtrlCreateList("", 10, 30, 480, 240, BitOR(0x4000, 0x0100, 0x00200000))
    GUICtrlSetBkColor(-1, $vGUIColor)
    GUICtrlSetColor(-1, 0xFFFFFF)

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

    $hGUIButtonDownload = GUICtrlCreateButton("Download", 10, 275, 235, 20)
    $hGUIButtonCancelUpdate = GUICtrlCreateButton("Cancel", 255, 275, 235, 20)
    GUISetState(@SW_HIDE)
    #endregion UpdateGUI
    MainGui()
    Func MainGui()
    Opt("GUIOnEventMode", 0)

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

    $maingui = GUICreate("Main Gui", 260, 175, -1, -1)
    $hGUILabelUpdateAndSApfelInfo = GUICtrlCreateLabel("", 25, 14, 84, 17)
    GUICtrlSetColor(-1, 0x00FF00)
    GUICtrlSetState(-1, 32)
    GUICtrlCreateLabel("Test2", 53, 38, 55, 17)
    $check = GUICtrlCreateButton("Check", 10, 88, 240, 20)
    $groupgeneral2 = GUICtrlCreateGroup("Info", 10, 113, 240, 42)
    $Label1 = GUICtrlCreateLabel("Made by" & "Franky", 24, 128, 205, 19)
    GUICtrlCreateGroup("", -99, -99, 1, 1)

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

    GUISetState(@SW_SHOW, $maingui)

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

    While 1
    Switch GUIGetMsg($maingui)
    Case -3
    Exit

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

    Case $check
    _SM_ClickUpdateCheck()

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

    Case $hGUIButtonDownload
    _SM_ClickButtonDownload()
    Case $hGUIButtonCancelUpdate, $hGUIUpdate
    _SM_ClickButtonCancelUpdate()

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

    EndSwitch
    Sleep(10)
    WEnd

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

    GUIDelete($maingui)
    Sleep(100)

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

    EndFunc ;==>MainGui

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

    Func _exit()
    Sleep(10)
    Exit
    EndFunc ;==>_exit

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

    Func _SM_ClickUpdateCheck()
    ;GUICtrlSetData($hGUILabelUpdateAndSApfelInfo, "Receiving latest SApfel Manager-Version from http://" & $vUpdateServer)
    ;GUICtrlSetState($hGUILabelUpdateAndSApfelInfo, 16)
    _SM_UpdateCheck($vVersion)
    If @error = 1 Then
    MsgBox(48, "Connection timeout", "You either do not have a connection to the world wide web or the server is currently down.")
    ElseIf @error = 2 Then
    MsgBox(48, "Error", "Error getting the version!")
    ElseIf @error = 3 Then
    MsgBox(64, "No update available", "You are using the latest version (v" & $vVersion & ").")
    Else
    ;~ GUISetState(@SW_HIDE, $FORM1)
    GUISetState(@SW_SHOW, $hGUIUpdate) ;5
    EndIf
    ;GUICtrlSetState($hGUILabelUpdateAndSApfelInfo, 32)
    EndFunc ;==>_SM_ClickUpdateCheck

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

    Func _SM_UpdateCheck($vCurrentVersion)
    If Ping($vUpdateServer) = 0 Then
    SetError(1)
    Else
    $vLatestVersion = _INetGetSource_($vScriptFile)
    If @error Then
    SetError(2)
    Else
    If $vCurrentVersion <> $vLatestVersion Then
    GUICtrlSetData($hGUILabelNewVersion, "There is a new version available (old: " & $vCurrentVersion & " | new: " & $vLatestVersion & ").")
    $vChangelog = StringSplit(_INetGetSource_($vChangelogFile), @CRLF)
    For $i = 1 To $vChangelog[0]
    GUICtrlSendMsg($hGUIListChangelog, 0x0180, 0, $vChangelog[$i])
    Next
    Return SetError(0, 0, $vLatestVersion)
    Else
    SetError(3)
    EndIf
    EndIf
    EndIf
    Return 0
    EndFunc ;==>_SM_UpdateCheck

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

    Func _INetGetSource_($s_URL, $bString = True)
    Local $sString = InetRead($s_URL, 1)
    Local $nError = @error, $nExtended = @extended
    If $bString Then $sString = BinaryToString($sString)
    Return SetError($nError, $nExtended, $sString)
    EndFunc ;==>_INetGetSource_

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

    Func _SM_ClickButtonDownload()
    GUISetState(@SW_HIDE, $hGUIUpdate)
    GUICtrlSetData($hGUIListChangelog, "")
    ;~ ShellExecute("http://" & $vUpdateServer)
    _SM_MapFilesInstall()
    EndFunc ;==>_SM_ClickButtonDownload

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

    Func _SM_ClickButtonCancelUpdate()
    GUISetState(@SW_HIDE, $hGUIUpdate)
    ;GUISetState(@SW_SHOW, $maingui)
    GUICtrlSetData($hGUIListChangelog, "")
    EndFunc ;==>_SM_ClickButtonCancelUpdate

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

    Func _SM_MapFilesInstall()
    $v_MapFiles = @TempDir & "\mapfiles.rar"

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

    ProgressOn("Downloading...", "Loading 'unrar.dll'", "")

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

    $v_SizeUnrarDLL = Round(InetGetSize($vUnrarDLL) / 1024)
    $hDownload = InetGet($vUnrarDLL, @TempDir & "\unrar.dll", 1, 1)
    Do
    $v_DLBytes = Round(InetGetInfo($hDownload, 0) / 1024)
    $v_DLPercent = Round($v_DLBytes / $v_SizeUnrarDLL * 100)
    ProgressSet($v_DLPercent, @LF & $v_DLBytes & "/" & $v_SizeUnrarDLL & "KB " & $v_DLPercent & "%")
    Sleep(100)
    Until InetGetInfo($hDownload, 2)

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

    ProgressSet(0, "", "Loading 'mapfiles.rar'")

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

    $v_SizeMapFilesRar = Round(InetGetSize($vMapFiles) / 1024)
    Local $hDownload = InetGet($vMapFiles, $v_MapFiles, 1, 1)
    Do
    $v_DLBytes = Round(InetGetInfo($hDownload, 0) / 1024)
    $v_DLPercent = Round($v_DLBytes / $v_SizeMapFilesRar * 100)
    ProgressSet($v_DLPercent, @LF & $v_DLBytes & "/" & $v_SizeMapFilesRar & "KB " & $v_DLPercent & "%")
    Sleep(200)
    Until InetGetInfo($hDownload, 2)

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

    ProgressSet(100, @LF & "This may take some seconds.", "Installing mapfiles...")
    $bExtractionSuc = _SM_RARExtract(@TempDir & "\unrar.dll", $v_MapFiles)

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

    Sleep(2000)

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

    FileDelete(@TempDir & "\unrar.dll")
    FileDelete($v_MapFiles)

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

    If $bExtractionSuc = 1 Then
    ProgressSet(100, @LF & "Installation done. Have fun!", "Installing mapfiles...")
    Sleep(3000)
    Else
    For $i = 15 To 1 Step - 1
    ProgressSet(100, "Error occured. Please make sure that you are connected" & @CRLF & "to the www and that SBot Manager was started in" & @CRLF & "32 bit mode. Continuing in " & $i & " seconds", "Installing mapfiles...")
    Sleep(1000)
    Next
    EndIf

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

    ProgressOff()
    EndFunc ;==>_SM_MapFilesInstall

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

    ;Auto extraction of rar archives into the scriptdirectory
    Func _SM_RARExtract($v_UnrarDLL, $v_RarFile) ;$v_UnrarDLL = path to unrar.dll file, $v_RarFile = path to rar file
    Local $sResult

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

    $rar_ArchivName = DllStructCreate("char[260]")
    DllStructSetData($rar_ArchivName, 1, $v_RarFile)

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

    $rar_CmtBuf = DllStructCreate("char[16384]")
    For $iCount = 1 To 16384
    $sResult &= " "
    Next
    DllStructSetData($rar_CmtBuf, 1, $sResult)

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

    $rar_Str = DllStructCreate("ptr;uint;uint;ptr;uint;uint;uint")

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

    DllStructSetData($rar_Str, 1, DllStructGetPtr($rar_ArchivName))
    DllStructSetData($rar_Str, 2, 1) ;1 = $RAR_OM_EXTRACT
    DllStructSetData($rar_Str, 3, 0)
    DllStructSetData($rar_Str, 4, DllStructGetPtr($rar_CmtBuf))
    DllStructSetData($rar_Str, 5, 16384)
    DllStructSetData($rar_Str, 6, 0)
    DllStructSetData($rar_Str, 7, 0)
    $rar_Header_CmtBuf = DllStructCreate("char[16384]")

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

    $rar_Header_Str = DllStructCreate("char[260];char[260];uint;uint;uint;uint;uint;uint;uint;uint;uint;ptr;uint;uint;uint")
    DllStructSetData($rar_Header_Str, 12, DllStructGetPtr($rar_Header_CmtBuf))

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

    If FileExists($v_UnrarDLL) Then
    $DLLUnrar = DllOpen($v_UnrarDLL)
    $rar_OpenedArchive = DllCall($DLLUnrar, "int", "RAROpenArchive", "ptr", DllStructGetPtr($rar_Str))

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

    If IsArray($rar_OpenedArchive) Then
    $iCount = 0
    Do
    $rar_Header = DllCall($DLLUnrar, "int", "RARReadHeader", "ptr", $rar_OpenedArchive[0], "ptr", DllStructGetPtr($rar_Header_Str))
    DllCall($DLLUnrar, "int", "RARProcessFile", "ptr", $rar_OpenedArchive[0], "int_ptr", 2, "ptr", "", "ptr", "") ;2 = $RAR_EXTRACT
    $iCount += 1
    Until $rar_Header[0] <> 0 Or $iCount = 20

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

    DllCall($DLLUnrar, "int", "RARCloseArchive", "int", $rar_OpenedArchive[0])
    DllClose($DLLUnrar)
    Return 1
    EndIf
    EndIf
    Return 0
    EndFunc ;==>_SM_RARExtract

    [/autoit]
  • Browsergame + Forum

    • Awesome
    • 8. Juli 2010 um 12:54

    Dann kannst du dich ja auf dem Forum anmelden ^^
    Dort werden nähmlich die aktuellsten Probleme , Anregungen und Tipps/Tricks geschrieben ^^

  • Browsergame + Forum

    • Awesome
    • 8. Juli 2010 um 12:50

    das war nur zum test :D
    Weil die Tabelle erst die punkte total durch ein ander gemacht hat :)

  • Browsergame + Forum

    • Awesome
    • 8. Juli 2010 um 12:10

    Wir haben jetzt auch ein Forum der link steht im 1# Post :)

  • Syntax Highlight AutoIt BBCode

    • Awesome
    • 8. Juli 2010 um 11:06

    Ich werde das mal versuchen.
    Aber wenn du heute wieder online bist und dein Server auch , würdest du dann mal nachgucken wollen :) ?

  • Syntax Highlight AutoIt BBCode

    • Awesome
    • 8. Juli 2010 um 01:53

    Die klasse nimm ich entweder von Geshi oder diese hier.

    Die von Geshi war zu lange drum ist diese nun in der txt datei.
    (PHP ging nicht zum hochladen deswegen txt ^^)

    Spoiler anzeigen
    PHP
    <?php
    /*************************************************************************************
     * autoit.php
     * --------
     * Author: mastrboy
     * Copyright: (c) 2006 and to GESHi ;)
     * Release Version: 1.0.7.13
     * Date Started: 26.01.2006
     *
     * Current bugs & todo:
     * ----------
     * - can't get #cs and #ce to work as multiple comments while still #comments-start/end working
     * - dosn't highlight symbols (Please note that in 1.0.X these are not used. Hopefully they will be used in 1.2.X.)
     * - not sure how to get sendkeys to work " {!}, {SPACE} etc... "
     * - jut copyied the regexp for variable from php so this HAVE to be checked and fixed to a better one ;)
     *
     * Reference: http://www.autoitscript.com/autoit3/docs/
     *************************************************************************************
     *
     *     This file is part of GeSHi.
     *
     *   GeSHi is free software; you can redistribute it and/or modify
     *   it under the terms of the GNU General Public License as published by
     *   the Free Software Foundation; either version 2 of the License, or
     *   (at your option) any later version.
     *
     *   GeSHi is distributed in the hope that it will be useful,
     *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *   GNU General Public License for more details.
     *
     *   You should have received a copy of the GNU General Public License
     *   along with GeSHi; if not, write to the Free Software
     *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     *
     *   09.09.2006 (bernd670) An Version 3.2 angepasst
     *   29.06.2007 (bernd670) An Version 3.2.4.9 angepasst
     ************************************************************************************/
    
    
    $language_data = array (
    	'LANG_NAME' => 'AutoIT',
    	'COMMENT_SINGLE' => array(';'),
    	'COMMENT_MULTI' => array('#comments-start' => '#comments-end', '#cs' => '#ce'),
    	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    	'QUOTEMARKS' => array("'", '"'),
        'ESCAPE_CHAR' => '',
    	'KEYWORDS' => array(
            1 => array ( // keywords
    			'and', 'byref', 'case', 'const', 'continuecase', 'continueloop', 'default', 'dim',
    			'do', 'else', 'elseif', 'endfunc', 'endif', 'endselect', 'endswitch', 'endwith', 
    			'enum', 'exit', 'exitloop', 'false', 'for', 'func', 'global', 'if', 'in', 'local', 
    			'next', 'not', 'or', 'redim', 'return', 'select', 'step', 'switch', 'then', 'to', 
    			'true', 'until', 'wend', 'while', 'with'
    			),
            2 => array ( // macros
    			'@appdatacommondir', '@appdatadir', '@autoitexe', '@autoitpid', '@autoitversion', 
    			'@com_eventobj', '@commonfilesdir', '@compiled', '@computername', '@comspec', '@cr', 
    			'@crlf', '@desktopcommondir', '@desktopdepth', '@desktopdir', '@desktopheight', 
    			'@desktoprefresh', '@desktopwidth', '@documentscommondir', '@error', '@exitcode', 
    			'@exitmethod', '@extended', '@favoritescommondir', '@favoritesdir', '@gui_ctrlhandle', 
    			'@gui_ctrlid', '@gui_dragfile', '@gui_dragid', '@gui_dropid', '@gui_winhandle', 
    			'@homedrive', '@homepath', '@homeshare', '@hotkeypressed', '@hour', '@inetgetactive', 
    			'@inetgetbytesread', '@ipaddress1', '@ipaddress2', '@ipaddress3', '@ipaddress4', 
    			'@kblayout', '@lf', '@logondnsdomain', '@logondomain', '@logonserver', '@mday', '@min', 
    			'@mon', '@mydocumentsdir', '@numparams', '@osbuild', '@oslang', '@osservicepack', 
    			'@ostype', '@osversion', '@processorarch', '@programfilesdir', '@programscommondir', 
    			'@programsdir', '@scriptdir', '@scriptfullpath', '@scriptlinenumber', '@scriptname', 
    			'@sec', '@startmenucommondir', '@startmenudir', '@startupcommondir', '@startupdir', 
    			'@sw_disable', '@sw_enable', '@sw_hide', '@sw_lock', '@sw_maximize', '@sw_minimize', 
    			'@sw_restore', '@sw_show', '@sw_showdefault', '@sw_showmaximized', '@sw_showminimized', 
    			'@sw_showminnoactive', '@sw_showna', '@sw_shownoactivate', '@sw_shownormal', '@sw_unlock', 
    			'@systemdir', '@tab', '@tempdir', '@tray_id', '@trayiconflashing', '@trayiconvisible', 
    			'@unicode', '@username', '@userprofiledir', '@wday', '@windowsdir', '@workingdir', '@yday', 
    			'@year'
    			),
            3 => array ( // functions
    			'abs', 'acos', 'adlibdisable', 'adlibenable', 'asc', 'ascw', 'asin', 'assign', 'atan', 
    			'autoitsetoption', 'autoitwingettitle', 'autoitwinsettitle', 'beep', 'binary', 'binarylen', 
    			'binarymid', 'binarytostring', 'bitand', 'bitnot', 'bitor', 'bitrotate', 'bitshift', 
    			'bitxor', 'blockinput', 'break', 'call', 'cdtray', 'ceiling', 'chr', 'chrw', 'clipget', 
    			'clipput', 'consoleread', 'consolewrite', 'consolewriteerror', 'controlclick', 'controlcommand', 
    			'controldisable', 'controlenable', 'controlfocus', 'controlgetfocus', 'controlgethandle', 
    			'controlgetpos', 'controlgettext', 'controlhide', 'controllistview', 'controlmove', 'controlsend', 
    			'controlsettext', 'controlshow', 'cos', 'dec', 'dircopy', 'dircreate', 'dirgetsize', 'dirmove', 
    			'dirremove', 'dllcall', 'dllclose', 'dllopen', 'dllstructcreate', 'dllstructgetdata', 
    			'dllstructgetptr', 'dllstructgetsize', 'dllstructsetdata', 'drivegetdrive', 'drivegetfilesystem', 
    			'drivegetlabel', 'drivegetserial', 'drivegettype', 'drivemapadd', 'drivemapdel', 'drivemapget', 
    			'drivesetlabel', 'drivespacefree', 'drivespacetotal', 'drivestatus', 'envget', 'envset', 'envupdate', 
    			'eval', 'execute', 'exp', 'filechangedir', 'fileclose', 'filecopy', 'filecreatentfslink', 
    			'filecreateshortcut', 'filedelete', 'fileexists', 'filefindfirstfile', 'filefindnextfile', 
    			'filegetattrib', 'filegetlongname', 'filegetshortcut', 'filegetshortname', 'filegetsize', 
    			'filegettime', 'filegetversion', 'fileinstall', 'filemove', 'fileopen', 'fileopendialog', 'fileread', 
    			'filereadline', 'filerecycle', 'filerecycleempty', 'filesavedialog', 'fileselectfolder', 
    			'filesetattrib', 'filesettime', 'filewrite', 'filewriteline', 'floor', 'ftpsetproxy', 'guicreate', 
    			'guictrlcreateavi', 'guictrlcreatebutton', 'guictrlcreatecheckbox', 'guictrlcreatecombo', 
    			'guictrlcreatecontextmenu', 'guictrlcreatedate', 'guictrlcreatedummy', 'guictrlcreateedit', 
    			'guictrlcreategraphic', 'guictrlcreategroup', 'guictrlcreateicon', 'guictrlcreateinput', 
    			'guictrlcreatelabel', 'guictrlcreatelist', 'guictrlcreatelistview', 'guictrlcreatelistviewitem', 
    			'guictrlcreatemenu', 'guictrlcreatemenuitem', 'guictrlcreatemonthcal', 'guictrlcreateobj', 
    			'guictrlcreatepic', 'guictrlcreateprogress', 'guictrlcreateradio', 'guictrlcreateslider', 
    			'guictrlcreatetab', 'guictrlcreatetabitem', 'guictrlcreatetreeview', 'guictrlcreatetreeviewitem', 
    			'guictrlcreateupdown', 'guictrldelete', 'guictrlgethandle', 'guictrlgetstate', 'guictrlread', 
    			'guictrlrecvmsg', 'guictrlregisterlistviewsort', 'guictrlsendmsg', 'guictrlsendtodummy', 
    			'guictrlsetbkcolor', 'guictrlsetcolor', 'guictrlsetcursor', 'guictrlsetdata', 'guictrlsetfont', 
    			'guictrlsetgraphic', 'guictrlsetimage', 'guictrlsetlimit', 'guictrlsetonevent', 'guictrlsetpos', 
    			'guictrlsetresizing', 'guictrlsetstate', 'guictrlsetstyle', 'guictrlsettip', 'guidelete', 
    			'guigetcursorinfo', 'guigetmsg', 'guiregistermsg', 'guisetbkcolor', 'guisetcoord', 'guisetcursor', 
    			'guisetfont', 'guisethelp', 'guiseticon', 'guisetonevent', 'guisetstate', 'guistartgroup', 'guiswitch', 
    			'hex', 'hotkeyset', 'httpsetproxy', 'hwnd', 'inetget', 'inetgetsize', 'inidelete', 'iniread', 
    			'inireadsection', 'inireadsectionnames', 'inirenamesection', 'iniwrite', 'iniwritesection', 'inputbox', 
    			'int', 'isadmin', 'isarray', 'isbinary', 'isbool', 'isdeclared', 'isdllstruct', 'isfloat', 'ishwnd', 
    			'isint', 'iskeyword', 'isnumber', 'isobj', 'isstring', 'log', 'memgetstats', 'mod', 'mouseclick', 
    			'mouseclickdrag', 'mousedown', 'mousegetcursor', 'mousegetpos', 'mousemove', 'mouseup', 'mousewheel', 
    			'msgbox', 'number', 'objcreate', 'objevent', 'objevent', 'objget', 'objname', 'opt', 'ping', 
    			'pixelchecksum', 'pixelgetcolor', 'pixelsearch', 'pluginclose', 'pluginopen', 'processclose', 
    			'processexists', 'processlist', 'processsetpriority', 'processwait', 'processwaitclose', 'progressoff', 
    			'progresson', 'progressset', 'random', 'regdelete', 'regenumkey', 'regenumval', 'regread', 'regwrite', 
    			'round', 'run', 'runasset', 'runwait', 'send', 'seterror', 'setextended', 'shellexecute', 'shellexecutewait', 
    			'shutdown', 'sin', 'sleep', 'soundplay', 'soundsetwavevolume', 'splashimageon', 'splashoff', 'splashtexton', 
    			'sqrt', 'srandom', 'statusbargettext', 'stderrread', 'stdinwrite', 'stdoutread', 'string', 'stringaddcr', 
    			'stringcompare', 'stringformat', 'stringinstr', 'stringisalnum', 'stringisalpha', 'stringisascii', 
    			'stringisdigit', 'stringisfloat', 'stringisint', 'stringislower', 'stringisspace', 'stringisupper', 
    			'stringisxdigit', 'stringleft', 'stringlen', 'stringlower', 'stringmid', 'stringregexp', 'stringregexpreplace', 
    			'stringreplace', 'stringright', 'stringsplit', 'stringstripcr', 'stringstripws', 'stringtobinary', 
    			'stringtrimleft', 'stringtrimright', 'stringupper', 'tan', 'tcpaccept', 'tcpclosesocket', 'tcpconnect', 
    			'tcplisten', 'tcpnametoip', 'tcprecv', 'tcpsend', 'tcpshutdown', 'tcpstartup', 'timerdiff', 'timerinit', 
    			'tooltip', 'traycreateitem', 'traycreatemenu', 'traygetmsg', 'trayitemdelete', 'trayitemgethandle', 
    			'trayitemgetstate', 'trayitemgettext', 'trayitemsetonevent', 'trayitemsetstate', 'trayitemsettext', 
    			'traysetclick', 'trayseticon', 'traysetonevent', 'traysetpauseicon', 'traysetstate', 'traysettooltip', 
    			'traytip', 'ubound', 'udpbind', 'udpclosesocket', 'udpopen', 'udprecv', 'udpsend', 'udpshutdown', 'udpstartup', 
    			'winactivate', 'winactive', 'winclose', 'winexists', 'winflash', 'wingetcaretpos', 'wingetclasslist', 
    			'wingetclientsize', 'wingethandle', 'wingetpos', 'wingetprocess', 'wingetstate', 'wingettext', 'wingettitle', 
    			'winkill', 'winlist', 'winmenuselectitem', 'winminimizeall', 'winminimizeallundo', 'winmove', 'winsetontop', 
    			'winsetstate', 'winsettitle', 'winsettrans', 'winwait', 'winwaitactive', 'winwaitclose', 'winwaitnotactive'
                ),
            4 => array ( // udfs
    			'_arrayadd', '_arraybinarysearch', '_arraycreate', '_arraydelete', '_arraydisplay',
    			'_arrayinsert', '_arraymax', '_arraymaxindex', '_arraymin', '_arrayminindex', '_arraypop', '_arraypush',
    			'_arrayreverse', '_arraysearch', '_arraysort', '_arrayswap', '_arraytoclip', '_arraytostring', '_arraytrim',
    			'_choosecolor', '_choosefont', '_clipputfile', '_colorgetblue', '_colorgetgreen', '_colorgetred', '_dateadd',
    			'_datedayofweek', '_datedaysinmonth', '_datediff', '_dateisleapyear', '_dateisvalid', '_datetimeformat',
    			'_datetimesplit', '_datetodayofweek', '_datetodayofweekiso', '_datetodayvalue', '_dayvaluetodate',
    			'_degree', '_filecountlines', '_filecreate', '_filelisttoarray', '_fileprint', '_filereadtoarray',
    			'_filewritefromarray', '_filewritelog', '_filewritetoline', '_getip', '_guictrlcomboadddir', '_guictrlcomboaddstring',
    			'_guictrlcomboautocomplete', '_guictrlcombodeletestring', '_guictrlcombofindstring', '_guictrlcombogetcount',
    			'_guictrlcombogetcursel', '_guictrlcombogetdroppedcontrolrect', '_guictrlcombogetdroppedstate',
    			'_guictrlcombogetdroppedwidth', '_guictrlcombogeteditsel', '_guictrlcombogetextendedui', '_guictrlcombogethorizontalextent',
    			'_guictrlcombogetitemheight', '_guictrlcombogetlbtext', '_guictrlcombogetlbtextlen', '_guictrlcombogetlist',
    			'_guictrlcombogetlocale', '_guictrlcombogetminvisible', '_guictrlcombogettopindex', '_guictrlcomboinitstorage',
    			'_guictrlcomboinsertstring', '_guictrlcombolimittext', '_guictrlcomboresetcontent', '_guictrlcomboselectstring',
    			'_guictrlcombosetcursel', '_guictrlcombosetdroppedwidth', '_guictrlcomboseteditsel', '_guictrlcombosetextendedui',
    			'_guictrlcombosethorizontalextent', '_guictrlcombosetitemheight', '_guictrlcombosetminvisible',
    			'_guictrlcombosettopindex', '_guictrlcomboshowdropdown', '_guictrleditcanundo', '_guictrleditemptyundobuffer',
    			'_guictrleditfind', '_guictrleditgetfirstvisibleline', '_guictrleditgetline', '_guictrleditgetlinecount',
    			'_guictrleditgetmodify', '_guictrleditgetrect', '_guictrleditgetsel', '_guictrleditlinefromchar',
    			'_guictrleditlineindex', '_guictrleditlinelength', '_guictrleditlinescroll', '_guictrleditreplacesel',
    			'_guictrleditscroll', '_guictrleditsetmodify', '_guictrleditsetrect', '_guictrleditsetsel', '_guictrleditundo',
    			'_guictrlipaddressclear', '_guictrlipaddresscreate', '_guictrlipaddressdelete', '_guictrlipaddressget',
    			'_guictrlipaddressisblank', '_guictrlipaddressset', '_guictrlipaddresssetfocus', '_guictrlipaddresssetfont',
    			'_guictrlipaddresssetrange', '_guictrlipaddressshowhide', '_guictrllistadddir', '_guictrllistadditem',
    			'_guictrllistclear', '_guictrllistcount', '_guictrllistdeleteitem', '_guictrllistfindstring',
    			'_guictrllistgetanchorindex', '_guictrllistgetcaretindex', '_guictrllistgethorizontalextent',
    			'_guictrllistgetinfo', '_guictrllistgetitemrect', '_guictrllistgetlocale', '_guictrllistgetselcount',
    			'_guictrllistgetselitems', '_guictrllistgetselitemstext', '_guictrllistgetselstate', '_guictrllistgettext',
    			'_guictrllistgettextlen', '_guictrllistgettopindex', '_guictrllistinsertitem', '_guictrllistreplacestring',
    			'_guictrllistselectedindex', '_guictrllistselectindex', '_guictrllistselectstring', '_guictrllistselitemrange',
    			'_guictrllistselitemrangeex', '_guictrllistsetanchorindex', '_guictrllistsetcaretindex', '_guictrllistsethorizontalextent',
    			'_guictrllistsetlocale', '_guictrllistsetsel', '_guictrllistsettopindex', '_guictrllistsort',
    			'_guictrllistswapstring', '_guictrllistviewcopyitems', '_guictrllistviewdeleteallitems', '_guictrllistviewdeletecolumn',
    			'_guictrllistviewdeleteitem', '_guictrllistviewdeleteitemsselected', '_guictrllistviewensurevisible',
    			'_guictrllistviewfinditem', '_guictrllistviewgetbackcolor', '_guictrllistviewgetcallbackmask',
    			'_guictrllistviewgetcheckedstate', '_guictrllistviewgetcolumnorder', '_guictrllistviewgetcolumnwidth',
    			'_guictrllistviewgetcounterpage', '_guictrllistviewgetcursel', '_guictrllistviewgetextendedlistviewstyle',
    			'_guictrllistviewgetheader', '_guictrllistviewgethotcursor', '_guictrllistviewgethotitem',
    			'_guictrllistviewgethovertime', '_guictrllistviewgetitemcount', '_guictrllistviewgetitemtext',
    			'_guictrllistviewgetitemtextarray', '_guictrllistviewgetnextitem', '_guictrllistviewgetselectedcount',
    			'_guictrllistviewgetselectedindices', '_guictrllistviewgetsubitemscount', '_guictrllistviewgettopindex',
    			'_guictrllistviewgetunicodeformat', '_guictrllistviewhidecolumn', '_guictrllistviewinsertcolumn',
    			'_guictrllistviewinsertitem', '_guictrllistviewjustifycolumn', '_guictrllistviewscroll', '_guictrllistviewsetcheckstate',
    			'_guictrllistviewsetcolumnheadertext', '_guictrllistviewsetcolumnorder', '_guictrllistviewsetcolumnwidth',
    			'_guictrllistviewsethotitem', '_guictrllistviewsethovertime', '_guictrllistviewsetitemcount',
    			'_guictrllistviewsetitemselstate', '_guictrllistviewsetitemtext', '_guictrllistviewsort',
    			'_guictrlmonthcalget1stdow', '_guictrlmonthcalgetcolor', '_guictrlmonthcalgetdelta', '_guictrlmonthcalgetmaxselcount',
    			'_guictrlmonthcalgetmaxtodaywidth', '_guictrlmonthcalgetminreqrect', '_guictrlmonthcalset1stdow',
    			'_guictrlmonthcalsetcolor', '_guictrlmonthcalsetdelta', '_guictrlmonthcalsetmaxselcount',
    			'_guictrlslidercleartics', '_guictrlslidergetlinesize', '_guictrlslidergetnumtics', '_guictrlslidergetpagesize',
    			'_guictrlslidergetpos', '_guictrlslidergetrangemax', '_guictrlslidergetrangemin', '_guictrlslidersetlinesize',
    			'_guictrlslidersetpagesize', '_guictrlslidersetpos', '_guictrlslidersetticfreq', '_guictrlstatusbarcreate',
    			'_guictrlstatusbarcreateprogress', '_guictrlstatusbardelete', '_guictrlstatusbargetborders',
    			'_guictrlstatusbargeticon', '_guictrlstatusbargetparts', '_guictrlstatusbargetrect', '_guictrlstatusbargettext',
    			'_guictrlstatusbargettextlength', '_guictrlstatusbargettip', '_guictrlstatusbargetunicode',
    			'_guictrlstatusbarissimple', '_guictrlstatusbarresize', '_guictrlstatusbarsetbkcolor', '_guictrlstatusbarseticon',
    			'_guictrlstatusbarsetminheight', '_guictrlstatusbarsetparts', '_guictrlstatusbarsetsimple',
    			'_guictrlstatusbarsettext', '_guictrlstatusbarsettip', '_guictrlstatusbarsetunicode', '_guictrlstatusbarshowhide',
    			'_guictrltabdeleteallitems', '_guictrltabdeleteitem', '_guictrltabdeselectall', '_guictrltabgetcurfocus',
    			'_guictrltabgetcursel', '_guictrltabgetextendedstyle', '_guictrltabgetitemcount', '_guictrltabgetitemrect',
    			'_guictrltabgetrowcount', '_guictrltabgetunicodeformat', '_guictrltabhighlightitem', '_guictrltabsetcurfocus',
    			'_guictrltabsetcursel', '_guictrltabsetmintabwidth', '_guictrltabsetunicodeformat', '_guictrltreeviewdeleteallitems',
    			'_guictrltreeviewdeleteitem', '_guictrltreeviewexpand', '_guictrltreeviewgetbkcolor', '_guictrltreeviewgetcount',
    			'_guictrltreeviewgetindent', '_guictrltreeviewgetlinecolor', '_guictrltreeviewgetparenthandle',
    			'_guictrltreeviewgetparentid', '_guictrltreeviewgetstate', '_guictrltreeviewgettext', '_guictrltreeviewgettextcolor',
    			'_guictrltreeviewgettree', '_guictrltreeviewinsertitem', '_guictrltreeviewsetbkcolor', '_guictrltreeviewseticon',
    			'_guictrltreeviewsetindent', '_guictrltreeviewsetlinecolor', '_guictrltreeviewsetstate', '_guictrltreeviewsettext',
    			'_guictrltreeviewsettextcolor', '_guictrltreeviewsort', '_hextostring', '_ie_example', '_ie_introduction',
    			'_ie_versioninfo', '_ieaction', '_ieattach', '_iebodyreadhtml', '_iebodyreadtext', '_iebodywritehtml',
    			'_iecreate', '_iecreateembedded', '_iedocgetobj', '_iedocinserthtml', '_iedocinserttext', '_iedocreadhtml',
    			'_iedocwritehtml', '_ieerrorhandlerderegister', '_ieerrorhandlerregister', '_ieerrornotify',
    			'_ieformelementcheckboxselect', '_ieformelementgetcollection', '_ieformelementgetobjbyname',
    			'_ieformelementgetvalue', '_ieformelementoptionselect', '_ieformelementradioselect', '_ieformelementsetvalue',
    			'_ieformgetcollection', '_ieformgetobjbyname', '_ieformimageclick', '_ieformreset', '_ieformsubmit',
    			'_ieframegetcollection', '_ieframegetobjbyname', '_iegetobjbyid', '_iegetobjbyname', '_ieheadinserteventscript',
    			'_ieimgclick', '_ieimggetcollection', '_ieisframeset', '_ielinkclickbyindex', '_ielinkclickbytext',
    			'_ielinkgetcollection', '_ieloadwait', '_ieloadwaittimeout', '_ienavigate', '_iepropertyget', '_iepropertyset',
    			'_iequit', '_ietablegetcollection', '_ietablewritetoarray', '_ietagnameallgetcollection', '_ietagnamegetcollection',
    			'_iif', '_inetexplorercapable', '_inetgetsource', '_inetmail', '_inetsmtpmail', '_ispressed', '_mathcheckdiv',
    			'_max', '_min', '_mousetrap', '_now', '_nowcalc', '_nowcalcdate', '_nowdate', '_nowtime', '_pathfull', '_pathmake',
    			'_pathsplit', '_processgetname', '_processgetpriority', '_radian', '_replacestringinfile', '_rundos',
    			'_sendmessage', '_setdate', '_settime', '_singleton', '_soundclose', '_soundlength', '_soundopen', '_soundpause',
    			'_soundplay', '_soundpos', '_soundresume', '_soundseek', '_soundstatus', '_soundstop', '_sqlite_changes',
    			'_sqlite_close', '_sqlite_display2dresult', '_sqlite_encode', '_sqlite_errcode', '_sqlite_errmsg',
    			'_sqlite_escape', '_sqlite_exec', '_sqlite_fetchdata', '_sqlite_fetchnames', '_sqlite_gettable',
    			'_sqlite_gettable2d', '_sqlite_lastinsertrowid', '_sqlite_libversion', '_sqlite_open', '_sqlite_query',
    			'_sqlite_queryfinalize', '_sqlite_queryreset', '_sqlite_querysinglerow', '_sqlite_savemode',
    			'_sqlite_settimeout', '_sqlite_shutdown', '_sqlite_sqliteexe', '_sqlite_startup', '_sqlite_totalchanges',
    			'_stringaddcomma', '_stringbetween', '_stringencrypt', '_stringinsert', '_stringproper', '_stringrepeat',
    			'_stringreverse', '_stringtohex', '_tcpiptoname', '_tempfile', '_tickstotime', '_timetoticks', '_viclose',
    			'_viexeccommand', '_vifindgpib', '_vigpibbusreset', '_vigtl', '_viopen', '_visetattribute', '_visettimeout',
    			'_weeknumberiso', '_word_versioninfo', '_wordattach', '_wordcreate', '_worddocadd', '_worddocaddlink',
    			'_worddocaddpicture', '_worddocclose', '_worddocfindreplace', '_worddocgetcollection', '_worddoclinkgetcollection',
    			'_worddocopen', '_worddocprint', '_worddocpropertyget', '_worddocpropertyset', '_worddocsave', '_worddocsaveas',
    			'_worderrorhandlerderegister', '_worderrorhandlerregister', '_worderrornotify', '_wordmacrorun',
    			'_wordpropertyget', '_wordpropertyset', '_wordquit'
            ),
            5 => array ( // preprocessor
    			'#ce', '#comments-end', '#comments-start', '#cs', '#include', '#include-once', '#notrayicon', '#requireadmin'			
                ),
            6 => array ( // s. RegExps (5 =>)
                ),
            7 => array ( // s. RegExps (6 =>)
                ),
    		8 => array (
                '==', '+=', '-=', '*=', '/=', '&=', '&amp;=', '<=', '&lt;=', '>=', '&gt;=', '<>', '&lt;&gt;', 
                '(', ')', '[', ']', '&', '&amp;', '*', '<', '&lt;', '>', '&gt;', '+', '-', '^', '='
                ),
            ),
    	'SYMBOLS' => array( // s. Keywords (8 =>) u. RegExps (4 =>)
    		),
    	'CASE_SENSITIVE' => array(
    		GESHI_COMMENTS => false,
    		1 => false,
    		2 => false,
    		3 => false,
    		4 => false,
    		5 => false,
    		6 => false,
    		7 => false,
    		8 => false,
    		),
    	'STYLES' => array(
    		'KEYWORDS' => array(
    			1 => 'color: #0000FF; font-weight: none;',
    			2 => 'color: #FF33FF; font-weight: none;',
    			3 => 'color: #000090; font-style: italic; font-weight: none;',
    			4 => 'color: #0080FF; font-style: italic; font-weight: none;',
    			5 => 'color: #F000FF; font-style: italic;',
                6 => 'color: #A00FF0; font-style: italic;',
    			7 => 'color: #FF8800; font-weight: none;',
    			8 => 'color: #FF0000; font-weight: none;',
    			),
    		'COMMENTS' => array(
    			0 => 'font-style: italic; color: #009933;', 'MULTI' => 'font-style: italic; color: #669900;'
    			),
    		'ESCAPE_CHAR' => array(
    			0 => ''
    			),
    		'BRACKETS' => array(
    			0 => 'color: #FF0000; font-weight: none;'
    			),
    		'STRINGS' => array(
    			0 => 'color: #9999CC; font-weight: none;',
    			),
    		'NUMBERS' => array(
    			0 => 'color: #AC00A9; font-style: italic; font-weight: none;'
    			),
    		'METHODS' => array(
    			1 => 'color: #006600;',
    			2 => 'color: #006600;'
    			),
    		'SYMBOLS' => array(
    			0 => 'color: #FF0000; font-weight: none;'
    			),
    		'REGEXPS' => array(
    			0 => 'color: #AA0000; font-weight: none;',
    			1 => 'color: #9999CC; font-weight: none;',
    			2 => 'color: #AC00A9; font-style: italic; font-weight: none;',
                3 => 'color: #A00FF0; font-style: italic;',
    			4 => 'color: #FF0000; font-weight: none;',
                5 => 'color: #A00FF0; font-style: italic;',
    			6 => 'color: #FF8800; font-weight: none;',
                ),
    		'SCRIPT' => array(
    			0 => '',
    			1 => '',
    			2 => '',
    			3 => ''
    			)
    		),
    	'URLS' => array(
    		1 => 'http://www.autoit.de/dokumentation/keywords.htm',
    		2 => 'http://www.autoit.de/dokumentation/macros.htm',
    		3 => 'http://www.autoit.de/dokumentation/functions/{FNAME}.htm',
            4 => '',
            5 => '',
            6 => '',
    		7 => '',
    		8 => '',
    		),
    
    
    	'OOLANG' => false,
    	'OBJECT_SPLITTERS' => array(
    		),
    	'REGEXPS' => array(
    		0 => '[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*',                // Variablennamen
    		1 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*.[aA][uU]3&gt;',        // <...> nach #include
            2 => '0[xX][0-9a-fA-F]+',                               // Hex-Werte
            //~ 3 => '#[rR][eE][gG][iI][oO][nN][[:print:]]*',       // Region-Zeile
            4 => '[/\+-]',                                          // Plus- und Minuszeichen
            5 => array (											// preprocessor
    			GESHI_SEARCH => '(#)(autoit3wrapper|endregion|forceref|obfuscator|region|tidy)(.*)',	
    			GESHI_REPLACE => '\\1\\2\\3',
    			GESHI_MODIFIERS => 'i',
    			GESHI_BEFORE => '',
    			GESHI_AFTER => ''            
                ),
            6 => array (											// sendkeys
    			GESHI_SEARCH => '(\{)([\!|#|\^|\{|\}|\+|alt|altdown|altup|appskey|asc|backspace|break|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f2|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|lalt|launch_app1|launch_app2|launch_mail|launch_media|lctrl|left|lshift|lwin|lwindown|lwinup|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpaddiv|numpaddot|numpadenter|numpadmult|numpadsub|pause|pgdn|pgup|printscreen|ralt|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shiftdown|shiftup|sleep|space|tab|up|volume_down|volume_mute|volume_up].*)(\})',	
    			GESHI_REPLACE => '\\1\\2\\3',
    			GESHI_MODIFIERS => 'i',
    			GESHI_BEFORE => '',
    			GESHI_AFTER => ''            
                ),
    		),
    	'STRICT_MODE_APPLIES' => GESHI_MAYBE,
    /*	'SCRIPT_DELIMITERS' => array(
    		0 => array(
    			'<?php' => '?>'
    			),
    		1 => array(
    			'<?' => '?>'
    			),
    		2 => array(
    			'<%' => '%>'
    			),
    		3 => array(
    			'<script language="php">' => '</script>'
    			)
    		),*/
    
    
    	'HIGHLIGHT_STRICT_BLOCK' => array(
    		0 => true,
    		1 => true,
    		2 => true,
    		3 => true,
    		4 => true,
    		5 => true,
    		6 => true,
    		7 => true,
            8 => true,
    		)
    );
    
    
    ?>
    Alles anzeigen

    Dateien

    autoit.txt 73,63 kB – 362 Downloads
  • Syntax Highlight AutoIt BBCode

    • Awesome
    • 8. Juli 2010 um 01:27

    Die Highlighter.class.php sieht so aus.

    Spoiler anzeigen
    PHP
    <?php
    /**
     * Highlights syntax of source code.
     * 
     * @author	Michael Schaefer
     * @copyright	2001-2009 WoltLab GmbH
     * @license	WoltLab Burning Board License <http://www.woltlab.com/products/burning_board/license.php>
     * @package	com.woltlab.wcf.data.message.bbcode.code
     * @subpackage	data.message.bbcode.highlighter
     * @category 	Community Framework (commercial)
     */
    abstract class Highlighter {
    	protected static $highlighterObjects = array();
    
    
    	// highlighter syntax
    	protected $quotes = array("'", "\"");
    	protected $singleLineComment = array("//");
    	protected $commentStart = array("/*");
    	protected $commentEnd = array("*/");
    	protected $escapeSequence = array("\\");
    	protected $separators = array();
    	protected $operators = array();
    	protected $keywords1 = array(), $keywords2 = array(), $keywords3 = array(), $keywords4 = array(), $keywords5 = array();								
    	protected $allowsNewslinesInQuotes = false;
    
    	// highlighter style
    	protected $style = array(
    		'quotes' => "color:red",
    		'comments' => "color:green",
    		'operators' => "color:green",
    		'keywords1' => "color:blue",
    		'keywords2' => "color:darkred",
    		'keywords3' => "color:darkviolet",
    		'keywords4' => "color:darkgoldenrod",
    		'keywords5' => "color:crimson",
    		'numbers' => "color:darkorange"
    	);
    
    	// regular expressions
    	protected $cacheCommentsRegEx = '';
    	protected $quotesRegEx = '';
    	protected $separatorsRegEx = '';
    
    	// cache
    	protected $cachedComments = array();
    	protected $cachedQuotes = array();
    
    	/**
    	 * Creates a new Highlighter object.
    	 */
    	protected function __construct() {
    		$this->buildRegularExpressions();
    	}
    
    	/**
    	 * Builds regular expressions.
    	 */
    	protected function buildRegularExpressions() {
    		// quotes regex
    		$this->quotesRegEx;
    		$quotedEscapeSequence = preg_quote(implode('', $this->escapeSequence));
    		foreach ($this->quotes as $quote) {
    			if (!empty($this->quotesRegEx)) $this->quotesRegEx .= '|';
    			$quote = preg_quote($quote);
    			$this->quotesRegEx .= $quote.'(?:[^'.$quote.$quotedEscapeSequence.']|'.$quotedEscapeSequence.'.)*'.$quote;
    		}
    
    		if (!empty($this->quotesRegEx)) {
    			$this->quotesRegEx = '(?:'.$this->quotesRegEx.')';
    		}
    
    		// cache comment regex
    		if (count($this->singleLineComment) || count($this->commentStart)) {
    			$this->cacheCommentsRegEx = "!";
    
    			if (count($this->quotes)) {
    				$this->cacheCommentsRegEx .= "(".$this->quotesRegEx.")|";
    			}
    			else {
    				$this->cacheCommentsRegEx .= "()";
    			}
    
    			$this->cacheCommentsRegEx .= "(";
    			if (count($this->singleLineComment)) {
    				$this->cacheCommentsRegEx .= "(?:".implode('|', array_map('preg_quote', $this->singleLineComment)).")[^\n]*";
    				if (count($this->commentStart)) {
    					$this->cacheCommentsRegEx .= '|';
    				}
    			}
    
    			if (count($this->commentStart)) {
    				$this->cacheCommentsRegEx .= '(?:'.implode('|', array_map('preg_quote', $this->commentStart)).').*?(?:'.implode('|', array_map('preg_quote', $this->commentEnd)).')';
    			}
    			$this->cacheCommentsRegEx .= ")!se";
    		}
    
    		$this->separatorsRegEx = StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->separators))).'|\s|&nbsp;|^|$|>|<';
    	}
    
    	/**
    	 * Highlights syntax of source code.
    	 * 
    	 * @param	string		$string
    	 * @return	string
    	 */
    	public function highlight($string) {
    		$this->cachedComments = $this->cachedQuotes = array();
    
    
    		// cache comments
    		$string = $this->cacheComments($string);
    
    		// cache quotes
    		$string = $this->cacheQuotes($string);
    
    
    		// encode html
    		$string = $this->encodeHTML($string);
    
    		// do highlight
    		$string = $this->highlightOperators($string);
    		$string = $this->highlightKeywords($string);
    		$string = $this->highlightNumbers($string);
    
    		// insert and highlight quotes
    		$string = $this->highlightQuotes($string);
    
    
    		// insert and highlight comments
    		$string = $this->highlightComments($string);
    
    
    		return $string;
    	}
    
    
    	/**
    	 * Caches comments.
    	 */
    	protected function cacheComments($string) {
    		if (!empty($this->cacheCommentsRegEx)) {
    			$string = preg_replace($this->cacheCommentsRegEx, "\$this->cacheComment('\\1', '\\2')", $string);
    		}
    
    		return $string;
    	}
    
    	/**
    	 * Caches quotes.
    	 */
    	protected function cacheQuotes($string) {
    		if (!empty($this->quotesRegEx)) {
    			$string = preg_replace('!'.$this->quotesRegEx.'!e'.($this->allowsNewslinesInQuotes ? 's' : ''), "\$this->cacheQuote('\\0')", $string);
    		}
    
    		return $string;
    	}
    
    	/**
    	 * Highlights operators.
    	 */
    	protected function highlightOperators($string) {
    		if (count($this->operators)) {
    			$string = preg_replace('!('.StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->operators))).')!i', '<span style="'.$this->style['operators'].'">\\0</span>', $string);
    		}
    
    		return $string;
    	}
    
    	/**
    	 * Highlights keywords.
    	 */
    	protected function highlightKeywords($string) {
    		if (count($this->keywords1)) {
    			$string = preg_replace('!(?<='.$this->separatorsRegEx.')('.StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->keywords1))).')(?='.$this->separatorsRegEx.')!i', '<span style="'.$this->style['keywords1'].'">\\0</span>', $string);
    		}
    		if (count($this->keywords2)) {
    			$string = preg_replace('!(?<='.$this->separatorsRegEx.')('.StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->keywords2))).')(?='.$this->separatorsRegEx.')!i', '<span style="'.$this->style['keywords2'].'">\\0</span>', $string);
    		}
    		if (count($this->keywords3)) {
    			$string = preg_replace('!(?<='.$this->separatorsRegEx.')('.StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->keywords3))).')(?='.$this->separatorsRegEx.')!i', '<span style="'.$this->style['keywords3'].'">\\0</span>', $string);
    		}
    		if (count($this->keywords4)) {
    			$string = preg_replace('!(?<='.$this->separatorsRegEx.')('.StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->keywords4))).')(?='.$this->separatorsRegEx.')!i', '<span style="'.$this->style['keywords4'].'">\\0</span>', $string);
    		}
    		if (count($this->keywords5)) {
    			$string = preg_replace('!(?<='.$this->separatorsRegEx.')('.StringUtil::encodeHTML(implode('|', array_map('preg_quote', $this->keywords5))).')(?='.$this->separatorsRegEx.')!i', '<span style="'.$this->style['keywords5'].'">\\0</span>', $string);
    		}
    
    		return $string;
    	}
    
    	/**
    	 * Highlights numbers.
    	 */
    	protected function highlightNumbers($string) {
    		$string = preg_replace('!(?<='.$this->separatorsRegEx.')(-?\d+)(?='.$this->separatorsRegEx.')!i', '<span style="'.$this->style['numbers'].'">\\0</span>', $string);
    
    		return $string;
    	}
    
    	/**
    	 * Highlights quotes.
    	 */
    	protected function highlightQuotes($string) {
    		if (count($this->cachedQuotes)) {
    			foreach ($this->cachedQuotes as $hash => $html) {
    				$string = str_replace($hash, $html, $string);
    			}
    		}
    
    		return $string;
    	}
    
    	/**
    	 * Highlights comments.
    	 */
    	protected function highlightComments($string) {
    		if (count($this->cachedComments)) {
    			foreach ($this->cachedComments as $hash => $html) {
    				$string = str_replace($hash, $html, $string);
    			}
    		}
    
    		return $string;
    	}
    
    	/**
    	 * Caches a source code comment.
    	 */
    	protected function cacheComment($string, $comment) {
    		// strip slashes
    		$string = str_replace("\\\"", "\"", $string);
    		$hash = '';
    		if (!empty($comment)) {
    			$comment = str_replace("\\\"", "\"", $comment);
    
    			// create hash
    			$hash = '§§'.StringUtil::getHash(uniqid(microtime()).$comment).'§§';
    
    			// save
    			$this->cachedComments[$hash] = '<span style="'.$this->style['comments'].'">'.$this->encodeHTML($comment).'</span>';
    		}
    
    		return $string.$hash;
    	}
    
    	/**
    	 * Caches a quote.
    	 */
    	protected function cacheQuote($quote) {
    		// strip slashes
    		$quote = str_replace("\\\"", "\"", $quote);
    
    		// create hash
    		$hash = '§§'.StringUtil::getHash(uniqid(microtime()).$quote).'§§';
    
    		// save
    		$this->cachedQuotes[$hash] = '<span style="'.$this->style['quotes'].'">'.$this->encodeHTML($quote).'</span>';
    
    		return $hash;
    	}
    
    	/**
    	 * Encodes html characters. 
    	 */
    	protected function encodeHTML($string) {
    		$string = StringUtil::encodeHTML($string);
    
    		return $string;
    	}
    
    	/**
    	 * Returns a highlighter object.
    	 * 
    	 * @return	Highlighter
    	 */
    	public static function getHighlighter($name) {
    		if (!isset(self::$highlighterObjects[$name])) {
    			$className = ucfirst($name).'Highlighter';
    			$classPath = WCF_DIR.'lib/data/message/bbcode/highlighter/'.$className.'.class.php';
    
    			// include class file
    			if (!file_exists($classPath)) {
    				throw new SystemException("unable to find class file '".$classPath."'", 11000);
    			}
    			require_once($classPath);
    
    			// create instance
    			if (!class_exists($className)) {
    				throw new SystemException("unable to find class '".$className."'", 11001);
    			}
    			self::$highlighterObjects[$name] = new $className();
    		}
    
    		return self::$highlighterObjects[$name];
    	}
    }
    ?>
    Alles anzeigen
  • Syntax Highlight AutoIt BBCode

    • Awesome
    • 8. Juli 2010 um 01:06

    Hallo Liebes Forum.

    Ich habe ein Problem und zwar bei dem WBB Forum version 3.
    Ich wollte jetzt eine Syntax Highlight funktion einbauen für den AutoItQuellcode.

    Ich habe mich mit GeSHI beschäftigt und habe viele Foren abgeklappert um danach zu suchen wie man sowas instalieren könnte.

    2Pakete habe ich zwar gefunden aber da gab es immer Fehler.

    Eines von den Paketen war dieses...

    http://community.woltlab.com/db/index.php?page=Project&projectID=1058

    Ich bin danach in meine Forenadministration gegangen unter Inhalte->BBCodes und habe einen neuen BBCode erstellt.
    Abgelesen von MySql und geändert für Autoit.

    Später bin ich dann auch noch auf einen Interesanten Beitrag gestoßen von Gun-Food.
    http://community.woltlab.com/forum/entwicklung/hilfe-für-entwickler/1882-umfangreicher-syntaxhighlight/?highlight=autoit

    Er hatte genau das gleiche Problem !

    Ein wbb lite 2 hack hätte ich und könnte ich es auch machen.Aber auf Version 3 funktioniert dieser nicht mehr.
    Bei Gun-Food war das gleiche Problem bei wbblite 2 klappte das, bei version 3 nicht.

    Der beitrag darunter hat mich ins Grübeln gebracht:
    Zitat aus dem anderen Forum

    Zitat

    Installiere einfach mal die Syntaxhighlighting BBCodes von Woltlab und schau dir mal die Dateien in folgendem Verzeichnis an: "wcf/lib/data/message/bbcode/highlighter/"
    Wenn du dir da zB. JavaHighlighter.class.php anschaust wirst du sehen, das der Highlighter Teil schonmal ganz einfach ist. Zusätzlich schaust du dir noch den BBCodeJava oder einen anderen der Highlighting BBCodes im ACP unter "Inhalte » BBCodes" an (Nicht den [PHP], der ist anders!) und kopierst die Inhalte und benennst den dann halt nur zB .

    Genauso habe ich es ausprobiert aber es hat auch nicht so wirklich geklappt.

    Entweder mein Forum hatte ein fehler wo ich ein Beitrag mit

    [autoit]

    test

    [/autoit]

    gemacht habe oder es klappte einfach nicht ^^

    Ich hoffe ihr könnt mir helfen und es kommt kein Beitrag mit benutze doch Google.

    Gut Holz...

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™