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. Xenobiologist

Beiträge von Xenobiologist

  • (gelöst) Übergebene Daten verarbeiten

    • Xenobiologist
    • 24. August 2007 um 15:51

    Hi,

    so?

    [autoit]

    Global $text[2] = ['Mueller, Hans zu Hof, Michael r', 'Empfang zu Hof, Michael']

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

    For $i=0 To UBound($text)-1
    $nachname = StringRegExp($text[$i], '.*?(?=,)', 3)
    $vorname = StringRegExp($text[$i], '(?<=, )\w*', 3)
    MsgBox(0, "", "Vorname : " & $vorname[0] & @CRLF & "Nachname : " & $nachname[0])
    Next

    [/autoit]

    So long,

    Mega

  • Autoit Version

    • Xenobiologist
    • 24. August 2007 um 15:03

    Hi,

    äh genau und guck mal hier: http://www.autoitscript.com/forum/index.php?showtopic=19717

    So long,

    Mega

  • (gelöst) Übergebene Daten verarbeiten

    • Xenobiologist
    • 24. August 2007 um 15:00

    Hi,

    okay. Dann gib mal ein paar Beispiele wie die Ausgabe aussehen kann und wir gucken mal wie man alle Eventualitäten abfangen kann.

    So long,

    Mega

  • (gelöst) Übergebene Daten verarbeiten

    • Xenobiologist
    • 24. August 2007 um 14:48

    Hi,

    ist das Format immer gleich? Können die Namen Leerzeichen enthalten? Brauchst du Vor/Nachname in getrennten Variablen?

    So long,

    Mega

  • Externe .txt Datei

    • Xenobiologist
    • 24. August 2007 um 14:39

    Hi,

    dann guck dir wirklich ini Dateien und Funktionen an, damit ist das total easy.

    So long,

    Mega

  • Hilfefenster mit GUICtrlSetData und Scrollen

    • Xenobiologist
    • 24. August 2007 um 14:12

    Hi,

    wie wäre es, wenn du es so aufbaust?

    (Finde ich eh lesbarer :D )

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include<GuiListView.au3>

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

    $font = "Times New Roman"
    $font1 = "Times New Roman Fett"

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

    $hGUI = GUICreate("Hilfe", 750, 590, -1, -1)
    $listview = GUICtrlCreateListView("Befehl|Beschreibung", 10, 10, 730, 570);,$LVS_SORTDESCENDING)
    GUICtrlSendMsg($listview, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_GRIDLINES, $LVS_EX_GRIDLINES)
    GUICtrlSendMsg($listview, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT)
    GUICtrlCreateListViewItem("z.B. diag dnsdiag:svd1", $listview)
    GUICtrlSetFont(-1, 11, 400, 0, $font)
    GUICtrlSetBkColor(-1, 0x00ff00)
    GUICtrlCreateListViewItem("Bereich Allgemein-Test|/q für eine komprimierte Ausgabe", $listview)
    GUICtrlSetBkColor(-1, 0x0000FF)
    GUICtrlCreateListViewItem("diag|Testet angegebenen Server mit DcDiag", $listview)
    GUICtrlCreateListViewItem("diagall|Testet alle Server (gesamte Domäne) mit DcDiag", $listview)
    GUICtrlCreateListViewItem("diagdebug|Gibt erweiterte Informationen über angegebenen DNS Server mit DcDiag aus", $listview)
    GUICtrlCreateListViewItem("diagdebugall|Gibt erweiterte Informationen über alle Server (gesamte Domäne) mit DcDiag aus", $listview)
    GUICtrlCreateListViewItem("netdiag|Testet angegebenen Server mit NetDiag aus", $listview)
    GUICtrlCreateListViewItem("netdiagdebug|Gibt erweiterte Informationen über alle Server (gesamte Domäne) mit NetDiag aus", $listview)

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

    GUICtrlCreateListViewItem("Bereich DNS-Test|/q für eine komprimierte Ausgabe):", $listview)
    GUICtrlSetBkColor(-1, 0x0000FF)
    GUICtrlCreateListViewItem("dns|Testet angegebenen DNS Server mit DcDiag", $listview)
    GUICtrlCreateListViewItem("dnsall|Testet alle (gesamte Domäne) DNS Server mit DcDiag", $listview)
    GUICtrlCreateListViewItem("dnsdebug|Gibt erweiterte Informationen über angegebenen DNS Server mit DcDiag aus", $listview)
    GUICtrlCreateListViewItem("dnsdebugall|Gibt erweiterte Informationen über alle (gesamte Domäne) DNS Server mit DcDiag aus", $listview)

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

    GUICtrlCreateListViewItem("Bereich DNS-Server:", $listview)
    GUICtrlSetBkColor(-1, 0x0000FF)
    GUICtrlCreateListViewItem("dnsinfo|Gibt allgemeine Informationen über den angegebenen Server aus", $listview)
    GUICtrlCreateListViewItem("dnsstat|Gibt allgemeine Statistiken über den angegebenen Server aus", $listview)
    GUICtrlCreateListViewItem("dnsclearcache|Löscht den temporären DNS Cache des angegebenen Server", $listview)
    GUICtrlCreateListViewItem("enumzones|Erstellt eime Liste aller DNS-Zonen des angegebenen Server", $listview)
    GUICtrlCreateListViewItem("printzone (/gui) oder (Name der Zone)|Gibt die Clients einer Zone aus bzw. Auswahl über Gui ", $listview)
    GUICtrlCreateListViewItem("enumrecord (Name des Clients)|Gibt detailierte Infos zu einem Client aus (Zone; LVA-Hessen.lva12.drv)", $listview)

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

    _GUICtrlListViewSetColumnWidth($listview, 0, 250)
    _GUICtrlListViewSetColumnWidth($listview, 1, $LVSCW_AUTOSIZE_USEHEADER)
    GUISetState()
    #cs
    GUICtrlCreateLabel("Bereich NTFrs (File Replication Service:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("frschk |Überprüft die Replikation des angegebenen Servers", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich DHCP-Server:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("addscope (Bereich) (Name des Bereichs) (Name Empirumserver)-->Erstellt einen Scope", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("z.B. diag /addscope:svt1 144.55.0.0 test test1", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 0, $font)
    GUICtrlCreateLabel("showscope (Bereich))--> Zeigt alle Einträge eines Scopes", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("dumpscope (Bereich))--> Dump eines Scopes ", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("showalldhcpsrv--> Listet alle DHCP-Server der Domäne auf ", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("dhcpinfo--> Gibt Informationen über den angegebenen DHCP-Server aus ", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich Reset GPO:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("resetgpo|Gibt einen Befehl zum resetten der Gruppemnrichtlinien aus", 10, 0, 700) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich ResetIp:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("resetip|Resettet den IP-Stack (Achtung Netzwerkverbindung wird unterbrochen !!!)", 10, 0, 700) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich TimeSync:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("timesync|Führt eine Neuinstallation des Zeitdientes durch", 10, 0, 700) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("addscope (Bereich) (Name des Bereichs) (Name Empirumserver)-->Erstellt einen Scope", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("z.B. diag /addscope:svt1 144.55.0.0 test test1", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 0, $font)
    GUICtrlCreateLabel("showscope (Bereich))--> Zeigt alle Einträge eines Scopes", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("dumpscope (Bereich))--> Dump eines Scopes ", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("showalldhcpsrv--> Listet alle DHCP-Server der Domäne auf ", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("dhcpinfo--> Gibt Informationen über den angegebenen DHCP-Server aus ", 10, 0, 850) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich Reset GPO:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("resetgpo|Gibt einen Befehl zum resetten der Gruppemnrichtlinien aus", 10, 0, 700) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich ResetIp:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("resetip|Resettet den IP-Stack (Achtung Netzwerkverbindung wird unterbrochen !!!)", 10, 0, 700) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    GUICtrlCreateLabel("Bereich TimeSync:", 10, 5, 400) ; next line
    GUICtrlSetFont(-1, 12, 400, 4, $font)
    GUICtrlCreateLabel("timesync|Führt eine Neuinstallation des Zeitdientes durch", 10, 0, 700) ; next line
    GUICtrlSetFont(-1, 12, 400, 2, $font)
    #ce
    Do
    $msg = GUIGetMsg()
    Until $msg = $GUI_EVENT_CLOSE

    [/autoit]

    So long,

    Mega

  • Hellö

    • Xenobiologist
    • 24. August 2007 um 14:00

    Hi,

    na da bin ich ja mal gespannt. Hauptsache ihr seid nächstes Jahr gute Gastgeber. :)

    So long,

    Mega

  • Externe .txt Datei

    • Xenobiologist
    • 24. August 2007 um 13:59

    Hi,

    du willst die Datei einlesen und in Variablen speichern?

    So long,

    Mega

  • Bin neu hier und brauch hilfe

    • Xenobiologist
    • 24. August 2007 um 12:52

    Hi,

    http://www.autoitscript.com/autoit3/scite/downloads.php

    So long,

    Mega

  • Bin neu hier und brauch hilfe

    • Xenobiologist
    • 24. August 2007 um 12:38

    Hi,

    was? ?(

    Hast du jetzt was gefunden?

    Drück mal in Scite Alt+F6 oder guck unter Tools

    So long,

    Mega

  • Bin neu hier und brauch hilfe

    • Xenobiologist
    • 24. August 2007 um 12:07

    Hi,

    installier dir mal Scite und dann kannst du ganz normal übers Menü Start- Autoit v3 - Scite - ScriptWriter navigieren.

    So long,

    Mega

  • Schreiben in die Log-Datei

    • Xenobiologist
    • 24. August 2007 um 12:04

    Hi,

    _FileWriteLog

    So long,

    Mega

  • IPs aus einer HTML-Seite auslesen

    • Xenobiologist
    • 23. August 2007 um 23:52

    Hi,

    du hast doch ne Lösung oder nicht?

    So long,

    Mega

  • Mein Programm lässt sich nicht (mehr) schließen ;)

    • Xenobiologist
    • 23. August 2007 um 23:51

    Hi,

    bitte. War ne schwere Geburt :P ich nutze den EventMode eigentlich nie. :D

    So long,

    Mega

  • Mein Programm lässt sich nicht (mehr) schließen ;)

    • Xenobiologist
    • 23. August 2007 um 23:46

    Hi,

    so ist doch schöner:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #Include <date.au3>
    #include <Array.au3>
    #include <GuiEdit.au3>

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

    Opt("RunErrorsFatal", 0)
    Opt("GUIOnEventMode", 1)
    Opt("MouseCoordMode", 1);1=absolute, 0=relative, 2=client
    Opt("PixelCoordMode", 1);1=absolute, 0=relative, 2=client

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

    Dim $usr_deskW = @DesktopWidth ; Auflösung vertikal vom User
    Dim $usr_deskH = @DesktopHeight ; Auslösung horizontal vom User
    Dim $hostdate = "0"
    Dim $hosttime = "0"
    Dim $statusmsg = ""
    Global $logmsgid = 0
    Dim $WindowAIS_Icon_Status = 0
    Dim $WindowAIS_Icon_Blue = 1278188
    Dim $WindowAISStatus = 0
    Dim $WindowAIS_Executable = ""
    Dim $WindowAISError = 0
    Global $WindowAIS_find
    Global $WindowAIS_Top
    Global $WindowAIS_Bottom
    Dim $WindowAIS_FirstLoop
    Dim $WindowAIS_Executable
    Dim $iWindowAIS_Executable

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

    ;;;;;;;;;;;;;;;;; M A I N F E N S T E R S T A R T ;;;;;;;;;;;;;;;;;

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

    $ParentGUI = GUICreate(":: AIS :: Main-Window", 283, 139, 429, 568)
    $Executable = GUICtrlCreateInput("", 8, 32, 265, 21)
    $Label1 = GUICtrlCreateLabel("File", 8, 8, 61, 17)
    $cmdStart = GUICtrlCreateButton("Start AIS", 200, 104, 73, 25, 0)
    $cmdClose = GUICtrlCreateButton("Close", 40, 104, 73, 25, 0)
    $cmdMinimize = GUICtrlCreateButton("Minimize", 120, 104, 73, 25, 0)
    GUISetState(@SW_SHOW)

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

    ;;;;;;;;;;;;;;;;; M A I N F E N S T E R E N D E ;;;;;;;;;;;;;;;;;;

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

    ;;;;;;;;;;;;;;;;; S T A T U S F E N S T E R S T A R T ;;;;;;;;;;;;;;;;;

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

    $ChildGUI = GUICreate(":: AIS :: Status-Window", 382, 178, 270, 420)
    GUISetBkColor(0xC0DCC0)
    $ltopic = GUICtrlCreateLabel("Status-Window", 8, 8, 106, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xC0DCC0)
    $statustext = GUICtrlCreateEdit("", 8, 32, 369, 137, BitOR($ES_AUTOVSCROLL, $ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL))
    $llogs = GUICtrlCreateLabel("Logs", 352, 8, 27, 17)
    GUICtrlSetBkColor(-1, 0xC0DCC0)
    $llogsnum = GUICtrlCreateLabel("", 296, 8, 44, 12)
    GUICtrlSetBkColor(-1, 0xC0DCC0)

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

    GUISetState(@SW_SHOW)
    WinSetOnTop("Status-Window", "", 1)

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

    #EndRegion ### END Koda GUI section ###

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

    ;;;;;;;;;;;;;;;;; S T A T U S F E N S T E R E N D E ;;;;;;;;;;;;;;;;;;
    StatusText("Program started")
    ; Events
    GUICtrlSetOnEvent($cmdClose, "SpecialEvents")
    GUICtrlSetOnEvent($cmdMinimize, "SpecialEvents")
    GUICtrlSetOnEvent($cmdStart, "SpecialEvents")

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

    While 1
    Sleep(100)
    WEnd

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

    Func SpecialEvents()
    Select
    Case @GUI_CtrlId = $cmdClose
    GUIClose()
    Exit
    Case @GUI_CtrlId = $cmdMinimize

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

    Case @GUI_CtrlId = $cmdStart
    AIStart()
    EndSelect
    EndFunc ;==>SpecialEvents

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

    Func AIStart()
    Global $f_FirstLoop = 0
    Do
    m_Global()
    Sleep(1000)
    Until @GUI_CtrlId = $cmdClose Or @GUI_CtrlId = $cmdMinimize Or @GUI_CtrlId = $cmdStart
    EndFunc ;==>AIStart

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

    Func m_Global()
    If Not $WindowAISError = 1 Then
    If Not $WindowAIS_FirstLoop = 1 Then
    If Not WindowAIS_Find() Then
    WindowAIS_Start()
    Else
    WindowAIS_()
    EndIf
    $WindowAIS_FirstLoop = 1
    Else
    WindowAIS_()
    EndIf
    EndIf
    EndFunc ;==>m_Global

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

    Func WindowAIS_()
    $WindowAIS_Icon_Status = PixelGetColor(13, ($WindowAIS_Top + 45))

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

    Select
    Case $WindowAIS_Icon_Status = $WindowAIS_Icon_Blue
    ;TO-DO alles ok !
    Case Else
    StatusText("WindowAIS : [WARNING] Icon unknown !")
    If Not WindowAIS_Find() Then
    WindowAIS_Start()
    EndIf
    EndSelect
    EndFunc ;==>WindowAIS_

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

    Func WindowAIS_Start()
    StatusText("Trying to start WindowAIS ")
    $WindowAIS_Executable = GUICtrlRead($iWindowAIS_Executable)
    Run($WindowAIS_Executable)
    If @error = 1 Then
    StatusText("WindowAIS : [WARNING] Executable hasn't been found !")
    $WindowAISError = 1
    Else
    StatusText("WindowAIS started")
    Sleep(2500)
    EndIf
    EndFunc ;==>WindowAIS_Start

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

    Func WindowAIS_Find()
    StatusText("Searching WindowAIS ")
    $WindowAIS_find = SearchArea("0", "0", $usr_deskW, $usr_deskW, "01F3AFFDD74E", "0", "1")
    Select
    Case Not @error
    $WindowAIS_Top = ($WindowAIS_find[1] - 1)
    $WindowAIS_Bottom = (($WindowAIS_find[1] + 59))
    StatusText("WindowAIS : Window has been found !")
    StatusText("WindowAIS : top: " & $WindowAIS_Top)
    StatusText("WindowAIS : bottom: " & $WindowAIS_Bottom)

    Return 1
    Case @error = 1
    StatusText("[ERROR] Window not found!")
    Return 0
    EndSelect
    EndFunc ;==>WindowAIS_Find

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

    Func GUIClose()
    ConsoleWrite('GUICLOSE' & @CRLF)
    $var = MsgBox(4, "Really Close???", "Are you sure you want to close AIS??")
    If $var = 6 Then
    GUIDelete($ParentGUI)
    GUIDelete($ChildGUI)
    Exit
    EndIf
    EndFunc ;==>GUIClose

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

    Func GUIMainMinimize()
    GUISetState(@SW_SHOW, $ChildGUI)
    EndFunc ;==>GUIMainMinimize

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

    Func StatusText($statusmsg)
    $logmsgid += 1
    GUICtrlSetData($llogsnum, $logmsgid)
    $prefix = "[" & _NowDate() & " / " & _NowTime() & "] : "
    $log = GUICtrlRead($statustext)
    $log = $log & $prefix & $statusmsg & @CRLF
    GUICtrlSetData($statustext, $log)
    _GUICtrlEditLineScroll($statustext, 0, 1000000)
    EndFunc ;==>StatusText

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

    Func SearchArea($left, $top, $right, $bottom, $areavalue, $shadevariation = 0, $step = 1)
    ;===============================================================================
    ;
    ; Description: Searches a rectangle of pixels for the pixel areavalue provided.
    ; Areavalue is combination of one or more pixel point.
    ; Syntax: _PixelsSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )
    ; Parameter(s): left - left coordinate of rectangle.
    ; top - top coordinate of rectangle.
    ; right - right coordinate of rectangle.
    ; bottom - coordinate of rectangle.
    ; checksum - checksum value of the region.
    ; shadevariation - A number between 0 and 255 to indicate the allowed number of shades of
    ; variation of the red, green, and blue components of the colour. Default is 0 (exact match).
    ; step - Instead of searching each pixel use a value larger than 1 to skip pixels (for speed).
    ; E.g. A value of 2 will only check every other pixel. Default is 1.
    ; Return Value(s): On Success - Returns a two-element array of pixel's coordinates. (Array[0] = x, Array[1] = y)
    ; On Failure - Sets @error to 1 if region is not found.
    ; - Sets @error to 2 if areavalue is invalid
    ; Author(s): quixote79
    ; Note(s): Similar to PixelSearch()
    ; It works only under Opt("MouseCoordMode", 1) and Opt("PixelCoordMode", 1)
    ;
    ;===============================================================================

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

    $areavaluelength = StringLen($areavalue) / 12
    If IsInt($areavaluelength) = 1 Then
    Local $x[$areavaluelength]
    Local $y[$areavaluelength]
    Local $color[$areavaluelength]
    If $areavaluelength <> 1 Then
    Local $xg[$areavaluelength - 1]
    Local $yg[$areavaluelength - 1]
    EndIf
    For $a = 0 To $areavaluelength - 1
    $x[$a] = Dec(StringMid($areavalue, 12 * $a + 1, 3))
    $y[$a] = Dec(StringMid($areavalue, 12 * $a + 4, 3))
    $color[$a] = Dec(StringMid($areavalue, 12 * $a + 7, 6))
    Next
    For $b = $areavaluelength - 2 To 0 Step - 1
    $xg[$b] = $x[$b + 1] - $x[0]
    $yg[$b] = $y[$b + 1] - $y[0]
    Next

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

    For $c = $top To $bottom
    $mleft = $left
    Do
    $fpos = PixelSearch($mleft, $c, $right, $c, $color[0], $shadevariation, $step)
    If Not @error Then
    $state = 0
    For $d = 0 To $areavaluelength - 2
    If PixelGetColor($fpos[0] + $xg[$d], $fpos[1] + $yg[$d]) <> $color[$d + 1] Then
    $state = 1
    ExitLoop
    EndIf
    Next
    If $state = 0 Then
    Return $fpos
    ExitLoop
    Else
    $mleft = $fpos[0] + $step
    EndIf
    Else
    ExitLoop
    EndIf
    Until $mleft >= $right
    Next
    SetError(1)
    Else
    SetError(2)
    EndIf
    EndFunc ;==>SearchArea

    [/autoit]

    So long,

    Mega

  • Mein Programm lässt sich nicht (mehr) schließen ;)

    • Xenobiologist
    • 23. August 2007 um 23:31

    HI,

    muss er denn in der Schleife hängen?

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #Include <date.au3>
    #include <Array.au3>
    #include <GuiEdit.au3>

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

    Opt("RunErrorsFatal", 0)
    Opt("GUIOnEventMode", 1)
    Opt("MouseCoordMode", 1);1=absolute, 0=relative, 2=client
    Opt("PixelCoordMode", 1);1=absolute, 0=relative, 2=client

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

    Dim $usr_deskW = @DesktopWidth ; Auflösung vertikal vom User
    Dim $usr_deskH = @DesktopHeight ; Auslösung horizontal vom User
    Dim $hostdate = "0"
    Dim $hosttime = "0"
    Dim $statusmsg = ""
    Global $logmsgid = 0
    Dim $WindowAIS_Icon_Status = 0
    Dim $WindowAIS_Icon_Blue = 1278188
    Dim $WindowAISStatus = 0
    Dim $WindowAIS_Executable = ""
    Dim $WindowAISError = 0
    Global $WindowAIS_find
    Global $WindowAIS_Top
    Global $WindowAIS_Bottom
    Dim $WindowAIS_FirstLoop
    Dim $WindowAIS_Executable
    Dim $iWindowAIS_Executable

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

    ;;;;;;;;;;;;;;;;; M A I N F E N S T E R S T A R T ;;;;;;;;;;;;;;;;;

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

    $ParentGUI = GUICreate(":: AIS :: Main-Window", 283, 139, 429, 568)
    $Executable = GUICtrlCreateInput("", 8, 32, 265, 21)
    $Label1 = GUICtrlCreateLabel("File", 8, 8, 61, 17)
    $cmdStart = GUICtrlCreateButton("Start AIS", 200, 104, 73, 25, 0)
    $cmdClose = GUICtrlCreateButton("Close", 40, 104, 73, 25, 0)
    $cmdMinimize = GUICtrlCreateButton("Minimize", 120, 104, 73, 25, 0)
    GUISetState(@SW_SHOW)

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

    ;;;;;;;;;;;;;;;;; M A I N F E N S T E R E N D E ;;;;;;;;;;;;;;;;;;

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

    ;;;;;;;;;;;;;;;;; S T A T U S F E N S T E R S T A R T ;;;;;;;;;;;;;;;;;

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

    $ChildGUI = GUICreate(":: AIS :: Status-Window", 382, 178, 270, 420)
    GUISetBkColor(0xC0DCC0)
    $ltopic = GUICtrlCreateLabel("Status-Window", 8, 8, 106, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xC0DCC0)
    $statustext = GUICtrlCreateEdit("", 8, 32, 369, 137, BitOR($ES_AUTOVSCROLL, $ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL))
    $llogs = GUICtrlCreateLabel("Logs", 352, 8, 27, 17)
    GUICtrlSetBkColor(-1, 0xC0DCC0)
    $llogsnum = GUICtrlCreateLabel("", 296, 8, 44, 12)
    GUICtrlSetBkColor(-1, 0xC0DCC0)

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

    GUISetState(@SW_SHOW)
    WinSetOnTop("Status-Window", "", 1)

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

    #EndRegion ### END Koda GUI section ###

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

    ;;;;;;;;;;;;;;;;; S T A T U S F E N S T E R E N D E ;;;;;;;;;;;;;;;;;;

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

    StatusText("Program started")

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

    ; Events
    GUICtrlSetOnEvent($cmdClose, "GUIClose")
    GUICtrlSetOnEvent($cmdMinimize, "GUIMainMinimize")
    GUICtrlSetOnEvent($cmdStart, "AIStart")

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

    While 1
    Sleep(100)
    WEnd

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

    Func AIStart()
    Global $f_FirstLoop = 0

    ;While 1
    m_Global()
    Sleep(1000)
    ;WEnd
    EndFunc ;==>AIStart

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

    Func m_Global()
    If Not $WindowAISError = 1 Then
    If Not $WindowAIS_FirstLoop = 1 Then
    If Not WindowAIS_Find() Then
    WindowAIS_Start()
    Else
    WindowAIS_()
    EndIf
    $WindowAIS_FirstLoop = 1
    Else
    WindowAIS_()
    EndIf
    EndIf
    EndFunc ;==>m_Global

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

    Func WindowAIS_()
    $WindowAIS_Icon_Status = PixelGetColor(13, ($WindowAIS_Top + 45))

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

    Select
    Case $WindowAIS_Icon_Status = $WindowAIS_Icon_Blue
    ;TO-DO alles ok !
    Case Else
    StatusText("WindowAIS : [WARNING] Icon unknown !")
    If Not WindowAIS_Find() Then
    WindowAIS_Start()
    EndIf
    EndSelect
    EndFunc ;==>WindowAIS_

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

    Func WindowAIS_Start()
    StatusText("Trying to start WindowAIS ")
    $WindowAIS_Executable = GUICtrlRead($iWindowAIS_Executable)
    Run($WindowAIS_Executable)
    If @error = 1 Then
    StatusText("WindowAIS : [WARNING] Executable hasn't been found !")
    $WindowAISError = 1
    Else
    StatusText("WindowAIS started")
    Sleep(2500)
    EndIf
    EndFunc ;==>WindowAIS_Start

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

    Func WindowAIS_Find()
    StatusText("Searching WindowAIS ")
    $WindowAIS_find = SearchArea("0", "0", $usr_deskW, $usr_deskW, "01F3AFFDD74E", "0", "1")
    Select
    Case Not @error
    $WindowAIS_Top = ($WindowAIS_find[1] - 1)
    $WindowAIS_Bottom = (($WindowAIS_find[1] + 59))
    StatusText("WindowAIS : Window has been found !")
    StatusText("WindowAIS : top: " & $WindowAIS_Top)
    StatusText("WindowAIS : bottom: " & $WindowAIS_Bottom)

    Return 1
    Case @error = 1
    StatusText("[ERROR] Window not found!")
    Return 0
    EndSelect
    EndFunc ;==>WindowAIS_Find

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

    Func GUIClose()
    ConsoleWrite('GUICLOSE' & @CRLF)
    $var = MsgBox(4, "Really Close???", "Are you sure you want to close AIS??")
    If $var = 6 Then
    GUIDelete($ParentGUI)
    GUIDelete($ChildGUI)
    Exit
    EndIf
    EndFunc ;==>GUIClose

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

    Func GUIMainMinimize()
    GUISetState(@SW_SHOW, $ChildGUI)
    EndFunc ;==>GUIMainMinimize

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

    Func StatusText($statusmsg)
    $logmsgid += 1
    GUICtrlSetData($llogsnum, $logmsgid)
    $prefix = "[" & _NowDate() & " / " & _NowTime() & "] : "
    $log = GUICtrlRead($statustext)
    $log = $log & $prefix & $statusmsg & @CRLF
    GUICtrlSetData($statustext, $log)
    _GUICtrlEditLineScroll($statustext, 0, 1000000)
    EndFunc ;==>StatusText

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

    Func SearchArea($left, $top, $right, $bottom, $areavalue, $shadevariation = 0, $step = 1)
    ;===============================================================================
    ;
    ; Description: Searches a rectangle of pixels for the pixel areavalue provided.
    ; Areavalue is combination of one or more pixel point.
    ; Syntax: _PixelsSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )
    ; Parameter(s): left - left coordinate of rectangle.
    ; top - top coordinate of rectangle.
    ; right - right coordinate of rectangle.
    ; bottom - coordinate of rectangle.
    ; checksum - checksum value of the region.
    ; shadevariation - A number between 0 and 255 to indicate the allowed number of shades of
    ; variation of the red, green, and blue components of the colour. Default is 0 (exact match).
    ; step - Instead of searching each pixel use a value larger than 1 to skip pixels (for speed).
    ; E.g. A value of 2 will only check every other pixel. Default is 1.
    ; Return Value(s): On Success - Returns a two-element array of pixel's coordinates. (Array[0] = x, Array[1] = y)
    ; On Failure - Sets @error to 1 if region is not found.
    ; - Sets @error to 2 if areavalue is invalid
    ; Author(s): quixote79
    ; Note(s): Similar to PixelSearch()
    ; It works only under Opt("MouseCoordMode", 1) and Opt("PixelCoordMode", 1)
    ;
    ;===============================================================================

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

    $areavaluelength = StringLen($areavalue) / 12
    If IsInt($areavaluelength) = 1 Then
    Local $x[$areavaluelength]
    Local $y[$areavaluelength]
    Local $color[$areavaluelength]
    If $areavaluelength <> 1 Then
    Local $xg[$areavaluelength - 1]
    Local $yg[$areavaluelength - 1]
    EndIf
    For $a = 0 To $areavaluelength - 1
    $x[$a] = Dec(StringMid($areavalue, 12 * $a + 1, 3))
    $y[$a] = Dec(StringMid($areavalue, 12 * $a + 4, 3))
    $color[$a] = Dec(StringMid($areavalue, 12 * $a + 7, 6))
    Next
    For $b = $areavaluelength - 2 To 0 Step - 1
    $xg[$b] = $x[$b + 1] - $x[0]
    $yg[$b] = $y[$b + 1] - $y[0]
    Next

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

    For $c = $top To $bottom
    $mleft = $left
    Do
    $fpos = PixelSearch($mleft, $c, $right, $c, $color[0], $shadevariation, $step)
    If Not @error Then
    $state = 0
    For $d = 0 To $areavaluelength - 2
    If PixelGetColor($fpos[0] + $xg[$d], $fpos[1] + $yg[$d]) <> $color[$d + 1] Then
    $state = 1
    ExitLoop
    EndIf
    Next
    If $state = 0 Then
    Return $fpos
    ExitLoop
    Else
    $mleft = $fpos[0] + $step
    EndIf
    Else
    ExitLoop
    EndIf
    Until $mleft >= $right
    Next
    SetError(1)
    Else
    SetError(2)
    EndIf
    EndFunc ;==>SearchArea

    [/autoit]

    So long,

    Mega

  • Coole URLs

    • Xenobiologist
    • 23. August 2007 um 23:16

    Hi,

    vielleicht gibt es diesen Thread schon ?( - .... egal :D

    Welche Seiten besucht ihr täglich und was findet man da?

    Meine:

    autoit.de
    autoitscript.com
    studivz.net -Alte Bekante treffen
    german-bash.org -lustige Chatzitate
    chip.de
    heise.de
    dict.leo.org
    comunio.de - Fussball Manager
    ...

    So long,

    Mega

    P.S.: Wo könnte ich mal hinsurfen, wenn mir langweilig ist.

  • Mein Programm lässt sich nicht (mehr) schließen ;)

    • Xenobiologist
    • 23. August 2007 um 22:57

    Hi,

    da war ein Endfunc zuviel und die Variablen nicht definiert.

    So long,

    Mega

  • Mein Programm lässt sich nicht (mehr) schließen ;)

    • Xenobiologist
    • 23. August 2007 um 22:53

    Hi,

    nach dem ich die Fehler rausgemacht habe - kann ich schließen

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #Include <date.au3>
    #include <Array.au3>
    #include <GuiEdit.au3>

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

    Opt("RunErrorsFatal", 0)

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

    Opt("GUIOnEventMode", 1)
    Opt("MouseCoordMode", 1);1=absolute, 0=relative, 2=client
    Opt("PixelCoordMode", 1);1=absolute, 0=relative, 2=client

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

    Dim $usr_deskW = @DesktopWidth ; Auflösung vertikal vom User
    Dim $usr_deskH = @DesktopHeight ; Auslösung horizontal vom User
    Dim $hostdate = "0"
    Dim $hosttime = "0"
    Dim $statusmsg = ""
    Global $logmsgid = 0
    Dim $WindowAIS_Icon_Status = 0
    Dim $WindowAIS_Icon_Blue = 1278188
    Dim $WindowAISStatus = 0
    Dim $WindowAIS_Executable = ""
    Dim $WindowAISError = 0
    Global $WindowAIS_find
    Global $WindowAIS_Top
    Global $WindowAIS_Bottom
    Dim $WindowAIS_FirstLoop
    Dim $WindowAIS_Executable
    Dim $iWindowAIS_Executable

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

    ;;;;;;;;;;;;;;;;; M A I N F E N S T E R S T A R T ;;;;;;;;;;;;;;;;;

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

    $ParentGUI = GUICreate(":: AIS :: Main-Window", 283, 139, 429, 568)
    $Executable = GUICtrlCreateInput("", 8, 32, 265, 21)
    $Label1 = GUICtrlCreateLabel("File", 8, 8, 61, 17)
    $cmdStart = GUICtrlCreateButton("Start AIS", 200, 104, 73, 25, 0)
    $cmdClose = GUICtrlCreateButton("Close", 40, 104, 73, 25, 0)
    $cmdMinimize = GUICtrlCreateButton("Minimize", 120, 104, 73, 25, 0)
    GUISetState(@SW_SHOW)

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

    ;;;;;;;;;;;;;;;;; M A I N F E N S T E R E N D E ;;;;;;;;;;;;;;;;;;

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

    ;;;;;;;;;;;;;;;;; S T A T U S F E N S T E R S T A R T ;;;;;;;;;;;;;;;;;

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

    $ChildGUI = GUICreate(":: AIS :: Status-Window", 382, 178, 270, 420)
    GUISetBkColor(0xC0DCC0)
    $ltopic = GUICtrlCreateLabel("Status-Window", 8, 8, 106, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xC0DCC0)
    $statustext = GUICtrlCreateEdit("", 8, 32, 369, 137, BitOR($ES_AUTOVSCROLL, $ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL))
    $llogs = GUICtrlCreateLabel("Logs", 352, 8, 27, 17)
    GUICtrlSetBkColor(-1, 0xC0DCC0)
    $llogsnum = GUICtrlCreateLabel("", 296, 8, 44, 12)
    GUICtrlSetBkColor(-1, 0xC0DCC0)

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

    GUISetState(@SW_SHOW)
    WinSetOnTop("Status-Window", "", 1)

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

    #EndRegion ### END Koda GUI section ###

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

    ;;;;;;;;;;;;;;;;; S T A T U S F E N S T E R E N D E ;;;;;;;;;;;;;;;;;;

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

    StatusText("Program started")

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

    ; Events
    GUICtrlSetOnEvent($cmdClose, "GUIClose")
    GUICtrlSetOnEvent($cmdMinimize, "GUIMainMinimize")
    GUICtrlSetOnEvent($cmdStart, "AIStart")

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

    While 1
    Sleep(100)
    WEnd

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

    Func AIStart()
    Global $f_FirstLoop = 0

    While 1
    m_Global()

    Sleep(1000)
    WEnd
    EndFunc ;==>AIStart

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

    Func m_Global()
    If Not $WindowAISError = 1 Then
    If Not $WindowAIS_FirstLoop = 1 Then
    If Not WindowAIS_Find() Then
    WindowAIS_Start()
    Else
    WindowAIS_()
    EndIf
    $WindowAIS_FirstLoop = 1
    Else
    WindowAIS_()
    EndIf
    EndIf
    EndFunc ;==>m_Global

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

    Func WindowAIS_()
    $WindowAIS_Icon_Status = PixelGetColor(13, ($WindowAIS_Top + 45))

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

    Select
    Case $WindowAIS_Icon_Status = $WindowAIS_Icon_Blue
    ;TO-DO alles ok !
    Case Else
    StatusText("WindowAIS : [WARNING] Icon unknown !")
    If Not WindowAIS_Find() Then
    WindowAIS_Start()
    EndIf
    EndSelect
    EndFunc ;==>WindowAIS_

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

    Func WindowAIS_Start()
    StatusText("Trying to start WindowAIS ")
    $WindowAIS_Executable = GUICtrlRead($iWindowAIS_Executable)
    Run($WindowAIS_Executable)
    If @error = 1 Then
    StatusText("WindowAIS : [WARNING] Executable hasn't been found !")
    $WindowAISError = 1
    Else
    StatusText("WindowAIS started")
    Sleep(2500)
    EndIf
    EndFunc ;==>WindowAIS_Start

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

    Func WindowAIS_Find()
    StatusText("Searching WindowAIS ")
    $WindowAIS_find = SearchArea("0", "0", $usr_deskW, $usr_deskW, "01F3AFFDD74E", "0", "1")
    Select
    Case Not @error
    $WindowAIS_Top = ($WindowAIS_find[1] - 1)
    $WindowAIS_Bottom = (($WindowAIS_find[1] + 59))
    StatusText("WindowAIS : Window has been found !")
    StatusText("WindowAIS : top: " & $WindowAIS_Top)
    StatusText("WindowAIS : bottom: " & $WindowAIS_Bottom)

    Return 1
    Case @error = 1
    StatusText("[ERROR] Window not found!")
    Return 0
    EndSelect
    EndFunc ;==>WindowAIS_Find

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

    Func GUIClose()
    $var = MsgBox(4, "Really Close???", "Are you sure you want to close AIS??")
    If $var = 6 Then
    GUIDelete($ParentGUI)
    GUIDelete($ChildGUI)
    Exit
    EndIf
    EndFunc ;==>GUIClose

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

    Func GUIMainMinimize()
    GUISetState(@SW_SHOW, $ChildGUI)
    EndFunc ;==>GUIMainMinimize

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

    Func StatusText($statusmsg)
    $logmsgid += 1
    GUICtrlSetData($llogsnum, $logmsgid)
    $prefix = "[" & _NowDate() & " / " & _NowTime() & "] : "
    $log = GUICtrlRead($statustext)
    $log = $log & $prefix & $statusmsg & @CRLF
    GUICtrlSetData($statustext, $log)
    _GUICtrlEditLineScroll($statustext, 0, 1000000)
    EndFunc ;==>StatusText

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

    Func SearchArea($left, $top, $right, $bottom, $areavalue, $shadevariation = 0, $step = 1)
    ;===============================================================================
    ;
    ; Description: Searches a rectangle of pixels for the pixel areavalue provided.
    ; Areavalue is combination of one or more pixel point.
    ; Syntax: _PixelsSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )
    ; Parameter(s): left - left coordinate of rectangle.
    ; top - top coordinate of rectangle.
    ; right - right coordinate of rectangle.
    ; bottom - coordinate of rectangle.
    ; checksum - checksum value of the region.
    ; shadevariation - A number between 0 and 255 to indicate the allowed number of shades of
    ; variation of the red, green, and blue components of the colour. Default is 0 (exact match).
    ; step - Instead of searching each pixel use a value larger than 1 to skip pixels (for speed).
    ; E.g. A value of 2 will only check every other pixel. Default is 1.
    ; Return Value(s): On Success - Returns a two-element array of pixel's coordinates. (Array[0] = x, Array[1] = y)
    ; On Failure - Sets @error to 1 if region is not found.
    ; - Sets @error to 2 if areavalue is invalid
    ; Author(s): quixote79
    ; Note(s): Similar to PixelSearch()
    ; It works only under Opt("MouseCoordMode", 1) and Opt("PixelCoordMode", 1)
    ;
    ;===============================================================================

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

    $areavaluelength = StringLen($areavalue) / 12
    If IsInt($areavaluelength) = 1 Then
    Local $x[$areavaluelength]
    Local $y[$areavaluelength]
    Local $color[$areavaluelength]
    If $areavaluelength <> 1 Then
    Local $xg[$areavaluelength - 1]
    Local $yg[$areavaluelength - 1]
    EndIf
    For $a = 0 To $areavaluelength - 1
    $x[$a] = Dec(StringMid($areavalue, 12 * $a + 1, 3))
    $y[$a] = Dec(StringMid($areavalue, 12 * $a + 4, 3))
    $color[$a] = Dec(StringMid($areavalue, 12 * $a + 7, 6))
    Next
    For $b = $areavaluelength - 2 To 0 Step - 1
    $xg[$b] = $x[$b + 1] - $x[0]
    $yg[$b] = $y[$b + 1] - $y[0]
    Next

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

    For $c = $top To $bottom
    $mleft = $left
    Do
    $fpos = PixelSearch($mleft, $c, $right, $c, $color[0], $shadevariation, $step)
    If Not @error Then
    $state = 0
    For $d = 0 To $areavaluelength - 2
    If PixelGetColor($fpos[0] + $xg[$d], $fpos[1] + $yg[$d]) <> $color[$d + 1] Then
    $state = 1
    ExitLoop
    EndIf
    Next
    If $state = 0 Then
    Return $fpos
    ExitLoop
    Else
    $mleft = $fpos[0] + $step
    EndIf
    Else
    ExitLoop
    EndIf
    Until $mleft >= $right
    Next
    SetError(1)
    Else
    SetError(2)
    EndIf
    EndFunc ;==>SearchArea

    [/autoit]

    So long,

    Mega

  • Mein Programm lässt sich nicht (mehr) schließen ;)

    • Xenobiologist
    • 23. August 2007 um 22:24

    Hi,

    poste mal bitte alles.

    So long,

    Mega

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™