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

Beiträge von blubbstar

  • Checkbox per ini checked

    • blubbstar
    • 9. September 2010 um 19:40
    [autoit]

    GUICtrlSetState($checkbox_1, $GUI_CHECKED)

    [/autoit]
  • Band Information

    • blubbstar
    • 5. September 2010 um 22:39

    Genau :) Sollten aber relativ aktuell sein.
    Laut OneByOneFestival.de wird das Festival am 11.9 ausfallen, deswegen ist es wohl nicht in der Datenbank.

  • Band Information

    • blubbstar
    • 5. September 2010 um 16:31

    Hallo,
    Möchte mein kleines Tool veröffentlichen. Gibt nen paar Infos aus, bei welchem Festival/Konzert eine Band spielt und was der Eintritt dafür kosten würde.
    Ist vllt. ganz nützlich für ein paar Festivalbesucher unter euch :D

    Edit: Bug behoben :o

    Dateien

    bandinfo.png 357,43 kB – 0 Downloads BandInfo.rar 2,7 MB – 560 Downloads
  • Inputbox schreibt nur eine 6

    • blubbstar
    • 4. September 2010 um 19:41

    Die GUI ist schon gelöscht bevor du mit GuiCtrlRead den Text ließt.

    D.h.:

    GuiCtrlRead, dann erst Deleten, und später Senden.

  • TeamViewer aulesen

    • blubbstar
    • 4. September 2010 um 19:26

    Ist der RegKey vllt. das richtige? (Existiert auch bei Portable)
    HKEY_CURRENT_USER\Software\TeamViewer\Version5\Last_Machine_Connections

  • Inputbox schreibt nur eine 6

    • blubbstar
    • 4. September 2010 um 19:11
    [autoit]

    $TextRead = GUICtrlRead($Text1)
    sleep(500)
    send($TextRead)

    [/autoit]

    :(

  • ziemlicher anfänger braucht hilfe beim quelltext auslesen

    • blubbstar
    • 1. September 2010 um 19:01

    Array

    [autoit]

    MsgBox(0, "test", $string[0])

    [/autoit]
  • Ini nummerisch sortieren

    • blubbstar
    • 25. August 2010 um 22:22
    Spoiler anzeigen
    [autoit]

    #include <array.au3>
    $IniSection = IniReadSection("a.ini", "table")
    _ArraySort($IniSection, 0, 0, 0, 1)
    For $i = UBound($IniSection) - 1 To 1 Step -1
    IniWrite("b.ini", "table", $IniSection[$i][0], $IniSection[$i][1])
    Next

    [/autoit]
  • Ini nummerisch sortieren

    • blubbstar
    • 25. August 2010 um 21:40
    Spoiler anzeigen
    [autoit]

    #include <array.au3>
    $IniSection = IniReadSection("a.ini", "table")
    _ArraySort($IniSection, 0, 0, 0, 1)
    For $i = 1 To UBound($IniSection) - 1
    IniWrite("b.ini", "table", $IniSection[$i][0], $IniSection[$i][1])
    Next

    [/autoit]
  • Text in einer Datei mit Steuerzeichen ersetzen

    • blubbstar
    • 22. August 2010 um 19:44

    Bei mir klappts. Grüße

  • Text in einer Datei mit Steuerzeichen ersetzen

    • blubbstar
    • 22. August 2010 um 19:32
    [autoit]

    $str = FileRead("test.dat")
    $str = StringReplace($str, "L40", "L30")
    FileWrite("test2.dat", $str)

    [/autoit]

    Das ganze klappt schon so, es scheitert lediglich an der MsgBox, die es nicht anzeigen kann. Die Variable hat aber den kompletten Inhalt.

  • vorwärts rückwärts mit array

    • blubbstar
    • 21. August 2010 um 18:58

    Ein Array ist keine normale Variable. Du musst schon angeben welchen genauen Wert du im Array haben willst.

    Edit:
    Hier mal eine bessere Version mit mehr Übersicht.

    Spoiler anzeigen
    [autoit]

    While True
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $zuruck, $vor
    Local $Name
    If $nMsg = $zuruck Then $Name = _GetActiveUser($avArray, GUICtrlRead($Label), -1)
    If $nMsg = $vor Then $Name = _GetActiveUser($avArray, GUICtrlRead($Label), 1)
    GUICtrlSetData($Label, $Name)

    If $Name = "Jon" Then MsgBox(0, "", "Jon")
    EndSwitch
    WEnd

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

    Func _GetActiveUser($aArray, $sLabel, $iMove)
    If $aArray[0] = $sLabel And $iMove = -1 Then Return $aArray[UBound($aArray) - 1]
    If $aArray[UBound($aArray) - 1] = $sLabel And $iMove = 1 Then Return $aArray[0]
    For $i = 0 To UBound($aArray) - 1
    If $aArray[$i] = $sLabel Then Return $aArray[$i + $iMove]
    Next
    EndFunc ;==>_GetActiveUser

    [/autoit]
  • vorwärts rückwärts mit array

    • blubbstar
    • 21. August 2010 um 18:52
    Spoiler anzeigen
    [autoit]

    While True
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $zuruck
    $iActive -= 1
    If $iActive < 0 Then $iActive = UBound($avArray) - 1
    GUICtrlSetData($Label, $avArray[$iActive])
    If $avArray[$iActive] = "Jon" Then MsgBox(262144, "Jon", "Ich bin Jon")
    Case $vor
    $iActive += 1
    If $iActive >= UBound($avArray) Then $iActive = 0
    GUICtrlSetData($Label, $avArray[$iActive])
    If $avArray[$iActive] = "Jon" Then MsgBox(262144, "Jon", "Ich bin Jon")
    EndSwitch
    WEnd

    [/autoit]
  • vorwärts rückwärts mit array

    • blubbstar
    • 21. August 2010 um 17:54
    Spoiler anzeigen
    [autoit]

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

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 625, 443, 192, 124)
    $zuruck = GUICtrlCreateButton("<---------", 24, 88, 225, 57, $WS_GROUP)
    $vor = GUICtrlCreateButton("--------->", 368, 88, 217, 57, $WS_GROUP)
    $Label = GUICtrlCreateLabel("", 192, 264, 266, 33)
    GUICtrlSetFont(-1, 18, 800, 0, "Arial Narrow")
    GUICtrlSetColor(-1, 0xFFFFFF)
    GUICtrlSetBkColor(-1, 0x000000)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    #include <Array.au3>
    Local $avArray[10] = ["JPM","Holger","Jon","Larry","Jeremy","Valik","Cyberslug","Nutster","JdeB","Tylo"]
    GUICtrlSetData($Label, $avArray[0])
    $iActive = 0

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

    While True
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $zuruck
    $iActive -= 1
    If $iActive < 0 Then $iActive = UBound($avArray) - 1
    GUICtrlSetData($Label, $avArray[$iActive])
    Case $vor
    $iActive += 1
    If $iActive >= UBound($avArray) Then $iActive = 0
    GUICtrlSetData($Label, $avArray[$iActive])
    EndSwitch
    WEnd

    [/autoit]
  • Daten in eine Datenbank speichern - Fragen dazu

    • blubbstar
    • 20. August 2010 um 17:26

    .db, oder was auch immer du willst.

  • anfängerproblem mit @hour/@min

    • blubbstar
    • 18. August 2010 um 19:02
    [autoit]

    If GuiCtrlRead($stunde1) = @HOUR and GuiCtrlRead($minute) = @MIN Then

    [/autoit]
  • Themieda mit AutoIt

    • blubbstar
    • 15. August 2010 um 22:01

    Also ich habe da nicht wirklich was eingestellt. Später ja, aber es ging eigentlich immer, egal welche Einstellungen.

  • Themieda mit AutoIt

    • blubbstar
    • 15. August 2010 um 21:51

    Das Problem ist, Themida hilft dir auch nicht. Habe auch schon selbst meine Scripte damit gepackt und mit paar Minuten google sie wieder entpackt, ohne jegliche Erfahrung darin zu haben.

  • Linie schneidet Rechteck ?

    • blubbstar
    • 4. August 2010 um 21:43

    Da gibts schon ne Func dazu :E? Auch recht^^ Meine ist eh langsam.

  • Linie schneidet Rechteck ?

    • blubbstar
    • 4. August 2010 um 21:42

    Hey, vorhin hatte ich mal Zeit.

    Spoiler anzeigen
    [autoit]

    #include <GuiConstantsEx.au3>
    #include <GDIPlus.au3>
    #include <array.au3>

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

    $hGUI = GUICreate("GDI+", 400, 300, 100)
    GUISetState()

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

    _GDIPlus_Startup()
    $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)

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

    ;#################### EXAMPLE 1
    _GDIPlus_GraphicsDrawLine($hGraphic, 10, 75, 100, 80)
    _GDIPlus_GraphicsDrawRect($hGraphic, 30, 20, 50, 50)

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

    $Koords1 = _GetPixelOfLineRectIntercept(10, 75, 100, 80, 30, 20, 50, 50)

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

    If $Koords1[0][0] = True Then
    $hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords1[1][0] - 2, $Koords1[1][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords1[1][0] - 2, $Koords1[1][1] - 2, 4, 4, 0, 360, $hBrushRed)

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

    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords1[2][0] - 2, $Koords1[2][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords1[2][0] - 2, $Koords1[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
    EndIf
    _ArrayDisplay($Koords1)
    ;####################

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

    ;#################### EXAMPLE 2
    _GDIPlus_GraphicsDrawLine($hGraphic, 260, 100, 300, 50)
    _GDIPlus_GraphicsDrawRect($hGraphic, 250, 20, 30, 70)

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

    $Koords2 = _GetPixelOfLineRectIntercept(260, 100, 300, 50, 250, 20, 30, 70)

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

    If $Koords2[0][0] = True Then
    $hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords2[1][0] - 2, $Koords2[1][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords2[1][0] - 2, $Koords2[1][1] - 2, 4, 4, 0, 360, $hBrushRed)

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

    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords2[2][0] - 2, $Koords2[2][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords2[2][0] - 2, $Koords2[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
    EndIf
    _ArrayDisplay($Koords2)
    ;####################

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

    ;#################### EXAMPLE 3
    _GDIPlus_GraphicsDrawLine($hGraphic, 210, 180, 270, 260)
    _GDIPlus_GraphicsDrawRect($hGraphic, 150, 190, 150, 50)

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

    $Koords3 = _GetPixelOfLineRectIntercept(210, 180, 270, 260, 150, 190, 150, 50)

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

    If $Koords3[0][0] = True Then
    $hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords3[1][0] - 2, $Koords3[1][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords3[1][0] - 2, $Koords3[1][1] - 2, 4, 4, 0, 360, $hBrushRed)

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

    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords3[2][0] - 2, $Koords3[2][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords3[2][0] - 2, $Koords3[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
    EndIf
    _ArrayDisplay($Koords3)

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

    _GDIPlus_GraphicsDrawLine($hGraphic, 120, 210, 320, 220)

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

    $Koords4 = _GetPixelOfLineRectIntercept(120, 210, 320, 220, 150, 190, 150, 50)

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

    If $Koords4[0][0] = True Then
    $hBrushRed = _GDIPlus_BrushCreateSolid(0xFFFF0000)
    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords4[1][0] - 2, $Koords4[1][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords4[1][0] - 2, $Koords4[1][1] - 2, 4, 4, 0, 360, $hBrushRed)

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

    _GDIPlus_GraphicsDrawEllipse($hGraphic, $Koords4[2][0] - 2, $Koords4[2][1] - 2, 4, 4)
    _GDIPlus_GraphicsFillPie($hGraphic, $Koords4[2][0] - 2, $Koords4[2][1] - 2, 4, 4, 0, 360, $hBrushRed)
    EndIf
    _ArrayDisplay($Koords4)
    ;####################

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

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

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

    _GDIPlus_GraphicsDispose($hGraphic)
    _GDIPlus_Shutdown()

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

    Func _GetPixelOfLineRectIntercept($iLineX1, $iLineY1, $iLineX2, $iLineY2, $iRectX, $IRectY, $IRectW, $iRectH)
    Local $iVals[16] = [$iRectX, $iRectX + $IRectW, $IRectY, 0, $IRectY, $IRectY + $iRectH, $iRectX, 1, $iRectX, $iRectX + $IRectW, $IRectY + $iRectH, 0, $IRectY, $IRectY + $iRectH, $iRectX + $IRectW, 1]
    Dim $aArray[2], $aFoundArray[3][2]
    If $iLineX1 >= $iLineX2 And $iLineY1 >= $iLineY2 Then ; RECHTS UNTEN
    $xAbstand = $iLineX1 - $iLineX2
    $yAbstand = $iLineY1 - $iLineY2
    If $yAbstand > $xAbstand Then
    For $j = 1 To $yAbstand Step +1
    ReDim $aArray[$yAbstand + 1]
    $aArray[$j] = ($iLineY1) - $j & ";" & Round(($iLineX1) - $j * ($xAbstand / $yAbstand))
    Next
    Else
    For $j = 1 To $xAbstand Step +1
    ReDim $aArray[$xAbstand + 1]
    $aArray[$j] = ($iLineX1) - $j & ";" & Round(($iLineY1) - $j * ($yAbstand / $xAbstand))
    Next
    EndIf
    ElseIf $iLineX1 < $iLineX2 And $iLineY1 > $iLineY2 Then ; LINKS UNTEN
    $xAbstand = $iLineX2 - $iLineX1
    $yAbstand = $iLineY1 - $iLineY2
    If $yAbstand > $xAbstand Then
    For $j = 1 To $yAbstand Step +1
    ReDim $aArray[$yAbstand + 1]
    $aArray[$j] = Round(($iLineX1) + $j * ($xAbstand / $yAbstand)) & ";" & ($iLineY1) - $j
    Next
    Else
    For $j = 1 To $xAbstand Step +1
    ReDim $aArray[$xAbstand + 1]
    $aArray[$j] = ($iLineX1) + $j & ";" & Round(($iLineY1) - $j * ($yAbstand / $xAbstand))
    Next
    EndIf
    ElseIf $iLineX1 > $iLineX2 And $iLineY1 < $iLineY2 Then ; RECHTS OBEN
    $xAbstand = $iLineX1 - $iLineX2
    $yAbstand = $iLineY2 - $iLineY1
    If $yAbstand > $xAbstand Then
    For $j = 1 To $yAbstand Step +1
    ReDim $aArray[$yAbstand + 1]
    $aArray[$j] = Round(($iLineX1) - $j * ($xAbstand / $yAbstand)) & ";" & ($iLineY1) + $j
    Next
    Else
    For $j = 1 To $xAbstand Step +1
    ReDim $aArray[$xAbstand + 1]
    $aArray[$j] = ($iLineX1) - $j & ";" & Round(($iLineY1) + $j * ($yAbstand / $xAbstand))
    Next
    EndIf
    ElseIf $iLineX1 <= $iLineX2 And $iLineY1 <= $iLineY2 Then ; LINKS OBEN
    $xAbstand = $iLineX2 - $iLineX1
    $yAbstand = $iLineY2 - $iLineY1
    If $yAbstand > $xAbstand Then
    For $j = 1 To $yAbstand Step +1
    ReDim $aArray[$yAbstand + 1]
    $aArray[$j] = Round(($iLineX1) + $j * ($xAbstand / $yAbstand)) & ";" & ($iLineY1) + $j
    Next
    Else
    For $j = 1 To $xAbstand Step +1
    ReDim $aArray[$xAbstand + 1]
    $aArray[$j] = ($iLineX1) + $j & ";" & Round(($iLineY1) + $j * ($yAbstand / $xAbstand))
    Next
    EndIf
    EndIf
    $aFoundArray[0][0] = False
    For $k = 0 To 15 Step +4
    Local $Val
    $Val = _CalcRect($iVals[$k], $iVals[$k + 1], $iVals[$k + 2], $iVals[$k + 3], $aArray)
    If $aFoundArray[1][0] = '' And $Val <> '' Then
    $aFoundArray[1][0] = $Val[0]
    $aFoundArray[1][1] = $Val[1]
    ElseIf $aFoundArray[2][0] = '' And $Val <> '' Then
    $aFoundArray[2][0] = $Val[0]
    $aFoundArray[2][1] = $Val[1]
    EndIf
    Next
    If $aFoundArray[1][0] <> "" And $aFoundArray[2][0] <> "" Then $aFoundArray[0][0] = True
    Return $aFoundArray
    EndFunc ;==>_GetPixelOfLineRectIntercept

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

    Func _CalcRect($iVar1, $iVar2, $iVar3, $iMode, $aArray)
    Local $aCalcArray[2]
    For $i = $iVar1 To $iVar2
    For $j = 1 To UBound($aArray) - 1
    If $iMode = 0 Then
    If $aArray[$j] = $i & ";" & $iVar3 Then
    Local $aCalcArray[2] = [$i, $iVar3]
    Return $aCalcArray
    EndIf
    ElseIf $iMode = 1 Then
    If $aArray[$j] = $iVar3 & ";" & $i Then
    Local $aCalcArray[2] = [$iVar3, $i]
    Return $aCalcArray
    EndIf
    EndIf
    Next
    Next
    Return ''
    EndFunc ;==>_CalcRect

    [/autoit]

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™