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

Beiträge von SEuBo

  • Minimiert

    • SEuBo
    • 16. Dezember 2009 um 18:44
    Zitat

    Will mir nur selber was machen wenn ich F5 drücke dann der nächste titel oder so

    Sag mal hälst du uns eigentlich für Dumm?
    WIR SIND KEIN BOT FORUM

    Google sollte dir helfen, das richtige Forum dafür zu finden!

    und ja, mouseclicks gehen auch im minierten Fenster.

  • Minimiert

    • SEuBo
    • 16. Dezember 2009 um 18:34

    Auch hier möchte erwähnt sein:
    Wir sind kein Bot Forum!!!

    Zu deiner Frage: ControlSend()

  • Zahl alle 8 sek drücken

    • SEuBo
    • 16. Dezember 2009 um 18:31

    Bitt'schön

    Spoiler anzeigen
    [autoit]

    HotKeySet("{+}","_start")
    HotKeySet("{-}","_stop")
    Global $GO = False
    While 1
    Sleep(10)
    If $GO Then
    Send("{6}")
    Sleep(8000)
    EndIf
    WEnd

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

    Func _start()
    $GO = True
    TrayTip("Start!"," ",1)
    EndFunc

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

    Func _stop()
    $GO = False
    TrayTip("Stop!"," ",1)
    EndFunc

    [/autoit]

    Fürs nächste mal: Zum Thema Bots sind wir hier das falsche Forum. Dafür gibt es ein extra deutsches Botforum, dessen Namen ich hier nicht nennen werde. Google sollte da aber leicht Ergebnisse liefern...

  • Bestimmte Prozesse killen

    • SEuBo
    • 16. Dezember 2009 um 16:35

    Ach zu wenig FPS? Da gibts auch ne einfache Lösung für


    :love:

  • [spiel] Autoit.de kann nicht bis 100 zählen

    • SEuBo
    • 16. Dezember 2009 um 16:16

    8

    (herzlichen Glückwunsch zu Post #600, Schnitzel :thumbup: )

  • tab wird nicht angezeigt

    • SEuBo
    • 16. Dezember 2009 um 16:04
    Zitat

    Wird ein Bild als Hintergrundbild genutzt, während die anderen Controls dieses quasi überlappen, so ist es wichtig, das Bild-Control zu deaktivieren und es nach den anderen Controls zu erstellen: GuiCtrlSetState(-1,$GUI_DISABLE). Dies funktioniert aber nicht mit Tab-Controlen, die anders arbeiten. In dem Fall muss man das Bild mit dem Stil $WS_CLIPSIBLINGS erstellen. GuiCtrlSetState(-1,$GUI_ONTOP) ist für die Tab-Controls notwendig.

    [autoit]

    ;...
    GUICtrlCreatePic("back.jpg",1,1,249,290,$WS_CLIPSIBLINGS)
    GUICtrlSetState(-1,$GUI_DISABLE)
    $Tab1 = GUICtrlCreateTab(24, 24, 193, 241)
    GuiCtrlSetState(-1,$GUI_ONTOP)
    ;...

    [/autoit]
  • Vista max. Lautstärke?

    • SEuBo
    • 16. Dezember 2009 um 15:42

    Habe das hier in der MSDN gefunden:
    http://support.microsoft.com/kb/139098

    Vielleicht kann einer der schlauen Köpfe ja damit was anfangen. Ich kann leider kein C, deswegen ist der Code für mich in etwa das gleiche als würde ich einen Zeitungsartikel in Suaheli lesen wollen :rofl:

  • GDI+ Skript schmiert ab

    • SEuBo
    • 16. Dezember 2009 um 15:36

    beginnen Farben in GDI+ nicht immer mit 0xFF?
    Also schwarz: 0xFF000000, Weiß: 0xFFFFFFFF ?
    Oder irre ich mich da?!

  • Buttons mit Icon und Label

    • SEuBo
    • 16. Dezember 2009 um 15:26

    Saubere Arbeit! Die werde ich mit sicherheit oft verwenden

  • PixelGetColor von einem Bild

    • SEuBo
    • 16. Dezember 2009 um 14:13
    Zitat von Andy

    Ich weiß worauf du hinaus willst ;) , aber das war keine Frage nach einem Pixel in einem "versteckten oder hidden" Fenster.
    Selbstverständlich kann man alle Pixel aus einer Bilddatei lesen und auch schreiben...

    Das weiß ich dank eurer Hilfe in meinem Monochromzeichnen Thread jetzt auch :thumbup:
    Man lernt halt nie aus ;)

  • Downloader - Speicherort wählen

    • SEuBo
    • 16. Dezember 2009 um 00:44

    Mach halt 'n FileDelete rein..

    [autoit]

    $dateiname = "hab_ich_kp_von.exe"
    $ort = FileSelectFolder("Speicherort auswählen", "",3,@ScriptDir)
    If Not @error Then
    FileDelete($ort&"\"&$dateiname)
    InetGet("http://mein-server.de/update/datei.exe",$ort&$dateiname, 1, 1)
    Else
    MsgBox(16,"","Kein Pfad ausgewählt!")
    EndIf

    [/autoit]

    //Edit: whoa, bin ich heut' langsam

  • Bild in die .exe machen

    • SEuBo
    • 16. Dezember 2009 um 00:37

    Bei "normalem" Fileinstall nicht. Die musst du beim Beenden des Skriptes (der .exe) löschen lassen. Bei der Binärversion von Bugfix bleiben keine Überreste, aber die ist wie gesagt auch etwas komplizierter zu handhaben.

  • Monochromzeichnen eines Bildes

    • SEuBo
    • 16. Dezember 2009 um 00:34

    Vielen Dank für die Ausführlichen Hilfen und Beispiele !
    Leider werd ich daraus nicht wirklich schlau, was wohl an meiner Unkenntnis gegenüber DLL's liegt.
    Werde das aber auf jeden Fall näher unter die Lupe nehmen!

    Schade nur, dass so stark auf das Thema Graustufen, und so wenig auf wirkliches Monochrom (Also wirklich nur Zweifarbig) eingegangen wurde. Aber für letzteres hatte ich ja dann glücklicherweise schon eine Lösung gefunden (Siehe erster Post). Da das von mir gefundene Tool dann auch noch genau das macht, was ich mit meinem Skript vorhatte (nur 10x besser als ich es hinbekommen hätte), reicht mir auch das "gefundene" Skript.

    Trotzdem nochmals danke an alle !

  • Bestimmte Prozesse killen

    • SEuBo
    • 16. Dezember 2009 um 00:30

    Und noch viel einfacher geht es per WIN+R -> msconfig -> Systemstart
    Dann muss man sich nicht durch die Registry kämpfen

  • Bild in die .exe machen

    • SEuBo
    • 16. Dezember 2009 um 00:25

    FileInstall ist wie gesagt die einfachste Variante. Das Bild wird dann einfach aus der Exe ins zB TempDir deines Kumpels geladen, damit es angezeigt wird.
    Ansonsten hatte Bugfix mal eine Funktion geschrieben, um Dateien Binär in ein Script zu schreiben. Der entsprechende Thread ist hier
    Fremddateien "includen" (ohne FileInstall)

  • 2 GUI Fenster in einem script

    • SEuBo
    • 15. Dezember 2009 um 21:13
    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>

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

    $GUI1 = GUICreate("test")
    $bttn = GUICtrlCreateButton("Test",0,0)
    GUISetState()

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

    $GUI2 = GUICreate("test2")

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

    While 1
    $msg = GUIGetMsg(1)
    Switch $msg[0]
    Case $bttn
    GUISetState(@SW_SHOW,$GUI2)
    Case $GUI_EVENT_CLOSE
    Switch $msg[1]
    Case $GUI1
    Exit
    Case $GUI2
    GUISetState(@SW_HIDE,$GUI2)
    EndSwitch
    EndSwitch
    WEnd

    [/autoit]

    In deinem Script hast du eine While Schleife gestartet, in der du aber nicht den neuen GUIGetMsg Status abgefragt hast. Hier meine Version. Ich habe das GUI schon am scriptstart erstellen lassen, und lasse es bei einem klick auf den Button nur das 2te GUI anzeigen (@SW_SHOW..). Desweiteren habe ich den erweiterten GUIGetMsg()-Mode verwendet, um GUI2 unabhängig vom ersten GUI schließen zu können.


    //Edit : arrrgh. Ich sollte weniger erklären dann wär ich auch schneller :rofl:

  • Code in Variable starten

    • SEuBo
    • 15. Dezember 2009 um 20:54
    [autoit]


    $text = 'Send("Hallo")'
    Execute($text)

    [/autoit]
  • PixelGetColor von einem Bild

    • SEuBo
    • 15. Dezember 2009 um 20:30

    Die Farbe eines Pixels kannst du nur abfragen, wenn das Bild auch offen ist. Deswegen ist es ja ein Pixel ( nur auf dem Monitor vorhanden ). Allerdings habe ich aus gegebenem Anlass grade dieses Script hier offen - vielleicht bringt es dich ja weiter

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <EditConstants.au3>
    #include <WindowsConstants.au3>
    #include <Color.au3>
    #include <WinAPI.au3>

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

    Global $threshold
    Global $image
    Global $width
    Global $height
    Global $pixels
    Global $pathString = "12345678"
    Global $scramble = False
    Global $rotate = 0
    Global $speed

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

    ;; Check hotkeys ;;
    If (Not HotKeySet ("{F9}", "Nothing")) Then
    MsgBox (16, "Error", "Could not register the F9 hotkey.")
    Exit
    EndIf
    If (Not HotKeySet ("{F10}", "Nothing")) Then
    MsgBox (16, "Erro", "Could not register the F10 hotkey.")
    Exit
    EndIf

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

    ;; Image dialog ;;
    $imageFile = FileOpenDialog ("Open image", "", "Images (*.jpg;*.jpeg;*.gif;*.png;*.bmp)", 1)
    If (@error) Then Exit

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

    ;; Options dialog ;;
    $optGUI = GUICreate ("Settings", 160, 270, -1, -1, $WS_CAPTION, BitOr ($WS_EX_APPWINDOW, $WS_EX_TOOLWINDOW))
    GUICtrlCreateGroup ("Image processing", 5, 5, 150, 85)
    GUICtrlCreateLabel ("Sensitivity (0~255):", 10, 28, 110, 15)
    $thresholdInput = GUICtrlCreateInput ("100", 125, 25, 25, 20, $ES_NUMBER)
    GUICtrlCreateLabel ("Width (px):", 10, 48, 110, 15)
    $widthInput = GUICtrlCreateInput ("100", 125, 45, 25, 20, $ES_NUMBER)
    GUICtrlCreateLabel ("Height (px):", 10, 68, 110, 15)
    $heightInput = GUICtrlCreateInput ("100", 125, 65, 25, 20, $ES_NUMBER)
    GUICtrlCreateGroup ("Drawing pattern", 5, 95, 150, 140)
    $horizontalRadio = GUICtrlCreateRadio ("Horizontal", 10, 115, 110, 15)
    $verticalRadio = GUICtrlCreateRadio ("Vertical", 10, 135, 110, 15)
    $diagonalRadio = GUICtrlCreateRadio ("Diagonal", 10, 155, 110, 15)
    $rotateRadio = GUICtrlCreateRadio ("Spiral", 10, 175, 110, 15)
    $scrambleRadio = GUICtrlCreateRadio ("Random", 10, 195, 110, 15)
    GUICtrlSetState ($diagonalRadio, $GUI_CHECKED)
    GUICtrlCreateLabel ("Mouse speed (0~100):", 10, 213, 110, 15)
    $speedInput = GUICtrlCreateInput ("0", 125, 210, 25, 20, $ES_NUMBER)
    $okBtn = GUICtrlCreateButton ("Ok", 30, 245, 40, 20)
    $cancelBtn = GUICtrlCreateButton ("Cancel", 80, 245, 50, 20)
    GUISetState ()

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

    While 1
    Switch (GUIGetMsg ())
    Case $GUI_EVENT_CLOSE
    Exit
    Case $cancelBtn
    Exit
    Case $okBtn
    $threshold = GUICtrlRead ($thresholdInput)
    $width = GUICtrlRead ($widthInput)
    $height = GUICtrlRead ($heightInput)
    $speed = GUICtrlRead ($speedInput)
    If (GUICtrlRead ($horizontalRadio) == $GUI_CHECKED) Then
    $pathString = "45273618"
    ElseIf (GUICtrlRead ($verticalRadio) == $GUI_CHECKED) Then
    $pathString = "27453618"
    ElseIf (GUICtrlRead ($diagonalRadio) == $GUI_CHECKED) Then
    $pathString = "36184527"
    ElseIf (GUICtrlRead ($rotateRadio) == $GUI_CHECKED) Then
    $pathString = "14678532"
    $rotate = 1
    ElseIf (GUICtrlRead ($scrambleRadio) == $GUI_CHECKED) Then
    $scramble = True
    EndIf

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

    GUIDelete ($optGUI)
    ExitLoop
    EndSwitch
    WEnd

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

    ;; Processing dialog ;;
    $GUI = GUICreate ("Processing image...", $width, $height + 20, -1, -1, $WS_CAPTION, BitOr ($WS_EX_APPWINDOW, $WS_EX_TOOLWINDOW))
    GUISetBkColor (0xffffff)
    $imageBox = GUICtrlCreatePic ($imageFile, 0, 0, $width, $height)
    $progress = GUICtrlCreateProgress (0, $height, $width, 20)
    GUISetState ()

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

    ;; Get image pixels ;;
    $dc = _WinAPI_GetDC ($GUI)
    $memDc = _WinAPI_CreateCompatibleDC ($dc)
    $bitmap = _WinAPI_CreateCompatibleBitmap ($dc, $width, $height)
    _WinAPI_SelectObject ($memDc, $bitmap)
    _WinAPI_BitBlt ($memDc, 0, 0, $width, $height, $dc, 0, 0, $SRCCOPY)
    $bits = DllStructCreate ("dword[" & ($width * $height) & "]")
    DllCall ("gdi32", "int", "GetBitmapBits", "ptr", $bitmap, "int", ($width * $height * 4), "ptr", DllStructGetPtr ($bits))
    GUICtrlDelete ($imageBox)

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

    ;; Process the pixels ;;
    Dim $pixels[$width][$height]
    For $y = 0 To ($height - 1)
    For $x = 0 To ($width - 1)
    $index = ($y * $width) + $x
    $color = DllStructGetData ($bits, 1, $index)

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

    $red = _ColorGetBlue ($color)
    $green = _ColorGetGreen ($color)
    $blue = _ColorGetRed ($color)
    $shade = ($red + $green + $blue) / 3
    If ($shade > $threshold) Then
    $color = 0xffffff
    $pixels[$x][$y] = 0
    Else
    $color = 0
    $pixels[$x][$y] = 1
    EndIf

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

    DllStructSetData ($bits, 1, $color, $index)
    Next

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

    DllCall ("gdi32", "int", "SetBitmapBits", "ptr", $bitmap, "int", ($width * $height * 4), "ptr", DllStructGetPtr ($bits))
    _WinAPI_BitBlt ($dc, 0, 0, $width, $height, $memDc, 0, 0, $SRCCOPY)
    GUICtrlSetData ($progress, ($y * 100) / $height)
    Next

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

    _WinAPI_ReleaseDC ($GUI, $dc)
    GUIRegisterMsg ($WM_PAINT, "OnPaint")

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

    ;; Ready to draw ;;
    TrayTip ("Pronto!", "Press F9 para draw. You can press F10 anytime to exit.", 10)
    HotKeySet ("{F9}", "Draw")
    HotKeySet ("{F10}", "Quit")

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

    While 1
    Sleep (60000)
    WEnd

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

    Func OnPaint ($hwndGUI, $msgID, $wParam, $lParam)
    Local $paintStruct = DllStructCreate ("hwnd hdc;int fErase;dword rcPaint[4];int fRestore;int fIncUpdate;byte rgbReserved[32]")

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

    $dc = DllCall ("user32", "hwnd", "BeginPaint", "hwnd", $hwndGUI, "ptr", DllStructGetPtr ($paintStruct))
    $dc = $dc[0]

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

    _WinAPI_BitBlt ($dc, 0, 0, $width, $height, $memDc, 0, 0, $SRCCOPY)

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

    DllCall ("user32", "hwnd", "EndPaint", "hwnd", $hwndGUI, "ptr", DllStructGetPtr ($paintStruct))
    Return $GUI_RUNDEFMSG
    EndFunc

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

    Func Draw ()
    $mouseCenter = MouseGetPos ()
    $x0 = $mouseCenter[0] - ($width / 2)
    $y0 = $mouseCenter[1] - ($height / 2)

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

    ;; Move the mouse around the drawing perimeter ;;
    MouseMove ($x0, $y0)
    MouseMove ($x0 + $width, $y0)
    MouseMove ($x0 + $width, $y0 + $height)
    MouseMove ($x0, $y0 + $height)
    MouseMove ($x0, $y0)

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

    ;; Draw all the areas ;;
    $stack = CreateStack (1000)
    For $y = 0 To ($height - 1)
    For $x = 0 To ($width - 1)
    If ($pixels[$x][$y] == 1) Then
    MouseMove ($x + $x0, $y + $y0, $speed)
    MouseDown ("primary")
    DrawArea ($stack, $x, $y, $x0, $y0)
    MouseUp ("primary")
    Else
    EndIf
    Next
    Next

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

    ;; Reset the pixels statuses ;;
    For $y = 0 To ($height - 1) Step 1
    For $x = 0 To ($width - 1) Step 1
    If ($pixels[$x][$y] == 2) Then
    $pixels[$x][$y] = 1
    EndIf
    Next
    Next
    EndFunc

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

    Func DrawArea (ByRef $stack, $x, $y, $x0, $y0)
    Local $path[8]
    Local $continue

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

    $path = MakePath ($pathString)

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

    While 1
    MouseMove ($x + $x0, $y + $y0, $speed)
    $pixels[$x][$y] = 2

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

    If ($scramble) Then ScramblePath ($path)
    If ($rotate > 0) Then RotatePath ($path, $rotate)

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

    ;;;;;;;;;;;;;;;;;;;
    ;; +---+---+---+ ;;
    ;; | 1 | 2 | 3 | ;;
    ;; +---+---+---+ ;;
    ;; | 4 | | 5 | ;;
    ;; +---+---+---+ ;;
    ;; | 6 | 7 | 8 | ;;
    ;; +---+---+---+ ;;
    ;;;;;;;;;;;;;;;;;;;

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

    $continue = False
    For $i = 0 To 7
    Switch ($path[$i])
    Case 1
    If (($x > 0) And ($y > 0)) Then
    If ($pixels[$x - 1][$y - 1] == 1) Then
    Push ($stack, $x, $y)
    $x -= 1
    $y -= 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 2
    If ($y > 0) Then
    If ($pixels[$x][$y - 1] == 1) Then
    Push ($stack, $x, $y)
    $y -= 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 3
    If (($x > 0) And ($y < 0)) Then
    If ($pixels[$x + 1][$y - 1] == 1) Then
    Push ($stack, $x, $y)
    $x += 1
    $y -= 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 4
    If ($x > 0) Then
    If ($pixels[$x - 1][$y] == 1) Then
    Push ($stack, $x, $y)
    $x -= 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 5
    If ($x < ($width - 1)) Then
    If ($pixels[$x + 1][$y] == 1) Then
    Push ($stack, $x, $y)
    $x += 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 6
    If (($x < 0) And ($y > 0)) Then
    If ($pixels[$x - 1][$y + 1] == 1) Then
    Push ($stack, $x, $y)
    $x -= 1
    $y += 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 7
    If ($y < ($height - 1)) Then
    If ($pixels[$x][$y + 1] == 1) Then
    Push ($stack, $x, $y)
    $y += 1
    $continue = True
    ExitLoop
    EndIf
    EndIf

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

    Case 8
    If (($x < ($width - 1)) And ($y < ($height - 1))) Then
    If ($pixels[$x + 1][$y + 1] == 1) Then
    Push ($stack, $x, $y)
    $x += 1
    $y += 1
    $continue = True
    ExitLoop
    EndIf
    EndIf
    EndSwitch
    Next
    If ($continue) Then ContinueLoop

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

    If (Not Pop ($stack, $x, $y)) Then ExitLoop
    WEnd
    EndFunc

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

    Func MakePath ($string)
    Return StringSplit ($string, "")
    EndFunc

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

    Func ScramblePath (ByRef $path)
    Local $table = "12345678"
    Local $newPath[8]

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

    For $i = 8 To 1 Step -1
    $next = StringMid ($table, Random (1, $i, 1), 1)
    $newPath[$i - 1] = Number ($next)
    $table = StringReplace ($table, $next, "")
    Next

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

    $path = $newPath
    EndFunc

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

    Func RotatePath (Byref $path, $places)
    If ($places == 0) Then
    Return $path
    Else
    For $i = 1 To Abs ($places)
    $temp = $path[7]
    $path[7] = $path[6]
    $path[6] = $path[5]
    $path[5] = $path[4]
    $path[4] = $path[3]
    $path[3] = $path[2]
    $path[2] = $path[1]
    $path[1] = $path[0]
    $path[0] = $temp
    Next
    EndIf
    EndFunc

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

    Func CreateStack ($size)
    Dim $stack[$size + 1][2]
    $stack[0][0] = 0
    $stack[0][1] = $size
    Return $stack
    EndFunc

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

    Func Push (ByRef $stack, $x, $y)
    $stack[0][0] += 1
    If ($stack[0][0] > $stack[0][1]) Then
    $stack[0][1] += 1000
    ReDim $stack[$stack[0][1] + 1][2]
    EndIf

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

    $stack[$stack[0][0]][0] = $x
    $stack[$stack[0][0]][1] = $y
    EndFunc

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

    Func Pop (ByRef $stack, ByRef $x, ByRef $y)
    If ($stack[0][0] < 1) Then
    Return False
    EndIf

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

    $x = $stack[$stack[0][0]][0]
    $y = $stack[$stack[0][0]][1]

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

    $stack[0][0] -= 1
    Return True
    EndFunc

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

    Func Nothing ()
    EndFunc

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

    Func Quit ()
    MouseUp ("primary")
    Exit
    EndFunc

    [/autoit]
  • Quelltext offener Tabs auslesen

    • SEuBo
    • 15. Dezember 2009 um 19:56
    Zitat von lincolnhawk

    Edit: Oder hab ich mir die falsche Array.au3 gezogen? Hab sie hier her (erster Link).

    Die Array.au3 ist schon in AutoIt integriert. Einfach #include <Array.au3> und es sollte funktionieren.

  • MSG Box - Funktionen und Text Anzeigen

    • SEuBo
    • 15. Dezember 2009 um 19:53
    [autoit]

    MsgBox(0,"",$HK1&" -> "&$MSG_1&@CRLF&@CRLF&$HK2&" -> "&$MSG_2&@CRLF&@CRLF&$HK3&" -> "&$MSG_3&@CRLF&@CRLF&$HK4&" -> "&$MSG_4&@CRLF&@CRLF&$HK5&" -> "&$MSG_5)

    [/autoit]

    //EDIT: Argh, zu langsam

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™