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

Beiträge von bernd670

  • hilfe zu regex...

    • bernd670
    • 9. Juni 2007 um 15:38

    Habe noch ein '(?i)' = Groß-/Kleinschreibung ignorieren eingefügt!

    Spoiler anzeigen
    [autoit]

    #include <ie.au3>

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

    $oie=_IECreate("http://fileupload2.fi.funpic.de/haupt.html")
    $html=_IEDocReadHTML($oie)

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

    MsgBox(0,"",$html)

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

    $result = StringRegExp($html,'(?i).*<a href="(.*)">Mirror.*',1)
    MsgBox(0,"",$result[0])

    [/autoit]
  • script das sich automatisch zum boot up hinzufügt

    • bernd670
    • 8. Juni 2007 um 22:12

    Seit wann kann man in DWORD einen Pfad anlegen, Du meinst wohl Zeichenfolge!

  • Button on/off

    • bernd670
    • 8. Juni 2007 um 22:03

    Hallo,

    noch eine andere Möglichkeit!

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    Const $achMuster[11] = [ "***********************************************" , _
    " " , _
    " *** * * ***** *** ***** ***** " , _
    " * * * * * * * * * " , _
    " * * * * * * * * * " , _
    " ***** * * * * * *** * * " , _
    " * * * * * * * * * " , _
    " * * * * * * * * * " , _
    " * * *** * *** ***** * " , _
    " " , _
    "***********************************************" ]

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

    Const $blau = 0x0000FF
    Const $gelb = 0xFFFF00
    Const $gruen = 0x00FF00
    Const $lila = 0xFF00FF
    Const $rot = 0xFF0000
    Const $schwarz = 0x000000
    Const $tuerkis = 0x00FFFF
    Const $weiss = 0xFFFFFF

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

    $GUI1 = GUICreate("Lightbox", 768, 302, 148, 281)
    GUISetBkColor(0x000000)

    Global $buttons[11][47]
    Global $left = 8, $top = 26
    For $i = 0 To UBound($buttons, 1) - 1
    For $ii = 0 To UBound($buttons, 2) - 1
    $buttons[$i][$ii] = GUICtrlCreateButton("", $left + ($ii * $left * 2), 8 + ($i * $top), 17, 25, 0)
    GUICtrlSetBkColor(-1,$gelb)
    GUICtrlSetState(-1,$GUI_DISABLE)
    ConsoleWrite($left + ($ii * $left * 2) & " " & 8 + ($ii * $top) & @CRLF)
    Next
    Next

    GUISetState(@SW_SHOW)

    ; HIER GEHT ES WEITER
    ; Aus- und einblendungen // aktivieren bzw. deaktivieren
    ;
    ; Meine Array-Hilfe
    ; [0/0] [0/1]
    ; [1/0] [1/1]
    ; [2/0] [2/1]

    While 1
    For $nZeile = 0 To 10
    For $nSpalte = 0 To 46
    if StringMid($achMuster[$nZeile],$nSpalte+1,1) = " " Then GUICtrlSetState($buttons[$nZeile][$nSpalte], $GUI_HIDE)
    Next
    BreakingSleep(500)
    Next

    BreakingSleep(2000)

    ; alles wieder einblenden
    For $nZeile = 0 To 10
    For $nSpalte = 0 To 46
    if StringMid($achMuster[$nZeile],$nSpalte+1,1) = " " Then GUICtrlSetState($buttons[$nZeile][$nSpalte], $GUI_SHOW)
    Next
    ;~ BreakingSleep(500)
    Next

    $msg = GUIGetMsg()
    if $msg = $GUI_EVENT_CLOSE Then Exit

    WEnd

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

    Func BreakingSleep($SleepTime)
    Local $Start = TimerInit()

    While TimerDiff($Start) < $SleepTime
    $msg = GUIGetMsg()
    if $msg = $GUI_EVENT_CLOSE Then Exit
    WEnd
    EndFunc

    [/autoit]
  • Button on/off

    • bernd670
    • 8. Juni 2007 um 20:41

    Hallo!

    snoozer: Wenn Du Alinas Programm mal laufen lassen würdest, könntest auch sehen das dein Programm nicht das gleiche macht!

    Alina: Ich habe dein Programm mal etwas geändert damit das klicken auf "x" funktioniert!

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    Const $blau = 0x0000FF
    Const $gelb = 0xFFFF00
    Const $gruen = 0x00FF00
    Const $lila = 0xFF00FF
    Const $rot = 0xFF0000
    Const $schwarz = 0x000000
    Const $tuerkis = 0x00FFFF
    Const $weiss = 0xFFFFFF

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

    $GUI1 = GUICreate("Lightbox", 768, 302, 148, 281)
    GUISetBkColor(0x000000)

    Global $buttons[11][47]
    Global $left = 8, $top = 26
    For $i = 0 To UBound($buttons, 1) - 1
    For $ii = 0 To UBound($buttons, 2) - 1
    $buttons[$i][$ii] = GUICtrlCreateButton("", $left + ($ii * $left * 2), 8 + ($i * $top), 17, 25, 0)
    GUICtrlSetBkColor(-1,0x00007F)
    GUICtrlSetState(-1,$GUI_DISABLE)
    ConsoleWrite($left + ($ii * $left * 2) & " " & 8 + ($ii * $top) & @CRLF)
    Next
    Next

    GUISetState(@SW_SHOW)

    ; HIER GEHT ES WEITER
    ; Aus- und einblendungen // aktivieren bzw. deaktivieren
    ;
    ; Meine Array-Hilfe
    ; [0/0] [0/1]
    ; [1/0] [1/1]
    ; [2/0] [2/1]

    While 1
    For $i = 0 To 46
    GUICtrlSetState($buttons[1][$i], $GUI_HIDE)
    GUICtrlSetState($buttons[9][$i], $GUI_HIDE)
    Next
    BreakingSleep(500)

    GUICtrlSetState($buttons[2][0], $GUI_HIDE)
    GUICtrlSetState($buttons[2][1], $GUI_HIDE)
    GUICtrlSetState($buttons[2][5], $GUI_HIDE)
    GUICtrlSetState($buttons[2][6], $GUI_HIDE)
    GUICtrlSetState($buttons[2][7], $GUI_HIDE)
    GUICtrlSetState($buttons[2][9], $GUI_HIDE)
    GUICtrlSetState($buttons[2][10], $GUI_HIDE)
    GUICtrlSetState($buttons[2][11], $GUI_HIDE)
    GUICtrlSetState($buttons[2][13], $GUI_HIDE)
    GUICtrlSetState($buttons[2][14], $GUI_HIDE)
    GUICtrlSetState($buttons[2][20], $GUI_HIDE)
    GUICtrlSetState($buttons[2][21], $GUI_HIDE)
    GUICtrlSetState($buttons[2][22], $GUI_HIDE)
    GUICtrlSetState($buttons[2][26], $GUI_HIDE)
    GUICtrlSetState($buttons[2][27], $GUI_HIDE)
    GUICtrlSetState($buttons[2][28], $GUI_HIDE)
    GUICtrlSetState($buttons[2][30], $GUI_HIDE)
    GUICtrlSetState($buttons[2][31], $GUI_HIDE)
    GUICtrlSetState($buttons[2][32], $GUI_HIDE)
    GUICtrlSetState($buttons[2][33], $GUI_HIDE)
    GUICtrlSetState($buttons[2][28], $GUI_HIDE)
    GUICtrlSetState($buttons[2][29], $GUI_HIDE)
    GUICtrlSetState($buttons[2][33], $GUI_HIDE)
    GUICtrlSetState($buttons[2][39], $GUI_HIDE)
    GUICtrlSetState($buttons[2][40], $GUI_HIDE)
    GUICtrlSetState($buttons[2][46], $GUI_HIDE)
    BreakingSleep(500)

    GUICtrlSetState($buttons[3][0], $GUI_HIDE)
    GUICtrlSetState($buttons[3][2], $GUI_HIDE)
    GUICtrlSetState($buttons[3][3], $GUI_HIDE)
    GUICtrlSetState($buttons[3][4], $GUI_HIDE)
    GUICtrlSetState($buttons[3][6], $GUI_HIDE)
    GUICtrlSetState($buttons[3][7], $GUI_HIDE)
    GUICtrlSetState($buttons[3][9], $GUI_HIDE)
    GUICtrlSetState($buttons[3][10], $GUI_HIDE)
    GUICtrlSetState($buttons[3][11], $GUI_HIDE)
    GUICtrlSetState($buttons[3][13], $GUI_HIDE)
    GUICtrlSetState($buttons[3][14], $GUI_HIDE)
    GUICtrlSetState($buttons[3][15], $GUI_HIDE)
    GUICtrlSetState($buttons[3][16], $GUI_HIDE)
    GUICtrlSetState($buttons[3][18], $GUI_HIDE)
    GUICtrlSetState($buttons[3][19], $GUI_HIDE)
    GUICtrlSetState($buttons[3][20], $GUI_HIDE)
    GUICtrlSetState($buttons[3][21], $GUI_HIDE)
    GUICtrlSetState($buttons[3][23], $GUI_HIDE)
    GUICtrlSetState($buttons[3][24], $GUI_HIDE)
    GUICtrlSetState($buttons[3][25], $GUI_HIDE)
    GUICtrlSetState($buttons[3][27], $GUI_HIDE)
    GUICtrlSetState($buttons[3][28], $GUI_HIDE)
    GUICtrlSetState($buttons[3][29], $GUI_HIDE)
    GUICtrlSetState($buttons[3][30], $GUI_HIDE)
    GUICtrlSetState($buttons[3][31], $GUI_HIDE)
    GUICtrlSetState($buttons[3][32], $GUI_HIDE)
    GUICtrlSetState($buttons[3][33], $GUI_HIDE)
    GUICtrlSetState($buttons[3][34], $GUI_HIDE)
    GUICtrlSetState($buttons[3][35], $GUI_HIDE)
    GUICtrlSetState($buttons[3][37], $GUI_HIDE)
    GUICtrlSetState($buttons[3][38], $GUI_HIDE)
    GUICtrlSetState($buttons[3][39], $GUI_HIDE)
    GUICtrlSetState($buttons[3][40], $GUI_HIDE)
    GUICtrlSetState($buttons[3][41], $GUI_HIDE)
    GUICtrlSetState($buttons[3][42], $GUI_HIDE)
    GUICtrlSetState($buttons[3][44], $GUI_HIDE)
    GUICtrlSetState($buttons[3][45], $GUI_HIDE)
    GUICtrlSetState($buttons[3][46], $GUI_HIDE)
    BreakingSleep(500)

    GUICtrlSetState($buttons[4][0], $GUI_HIDE)
    GUICtrlSetState($buttons[4][2], $GUI_HIDE)
    GUICtrlSetState($buttons[4][3], $GUI_HIDE)
    GUICtrlSetState($buttons[4][4], $GUI_HIDE)
    GUICtrlSetState($buttons[4][6], $GUI_HIDE)
    GUICtrlSetState($buttons[4][7], $GUI_HIDE)
    GUICtrlSetState($buttons[4][9], $GUI_HIDE)
    GUICtrlSetState($buttons[4][10], $GUI_HIDE)
    GUICtrlSetState($buttons[4][11], $GUI_HIDE)
    GUICtrlSetState($buttons[4][13], $GUI_HIDE)
    GUICtrlSetState($buttons[4][14], $GUI_HIDE)
    GUICtrlSetState($buttons[4][15], $GUI_HIDE)
    GUICtrlSetState($buttons[4][16], $GUI_HIDE)
    GUICtrlSetState($buttons[4][18], $GUI_HIDE)
    GUICtrlSetState($buttons[4][19], $GUI_HIDE)
    GUICtrlSetState($buttons[4][20], $GUI_HIDE)
    GUICtrlSetState($buttons[4][21], $GUI_HIDE)
    GUICtrlSetState($buttons[4][23], $GUI_HIDE)
    GUICtrlSetState($buttons[4][24], $GUI_HIDE)
    GUICtrlSetState($buttons[4][25], $GUI_HIDE)
    GUICtrlSetState($buttons[4][27], $GUI_HIDE)
    GUICtrlSetState($buttons[4][28], $GUI_HIDE)
    GUICtrlSetState($buttons[4][29], $GUI_HIDE)
    GUICtrlSetState($buttons[4][30], $GUI_HIDE)
    GUICtrlSetState($buttons[4][31], $GUI_HIDE)
    GUICtrlSetState($buttons[4][32], $GUI_HIDE)
    GUICtrlSetState($buttons[4][33], $GUI_HIDE)
    GUICtrlSetState($buttons[4][34], $GUI_HIDE)
    GUICtrlSetState($buttons[4][35], $GUI_HIDE)
    GUICtrlSetState($buttons[4][37], $GUI_HIDE)
    GUICtrlSetState($buttons[4][38], $GUI_HIDE)
    GUICtrlSetState($buttons[4][39], $GUI_HIDE)
    GUICtrlSetState($buttons[4][40], $GUI_HIDE)
    GUICtrlSetState($buttons[4][41], $GUI_HIDE)
    GUICtrlSetState($buttons[4][42], $GUI_HIDE)
    GUICtrlSetState($buttons[4][44], $GUI_HIDE)
    GUICtrlSetState($buttons[4][45], $GUI_HIDE)
    GUICtrlSetState($buttons[4][46], $GUI_HIDE)
    BreakingSleep(500)

    GUICtrlSetState($buttons[5][0], $GUI_HIDE)
    GUICtrlSetState($buttons[5][6], $GUI_HIDE)
    GUICtrlSetState($buttons[5][7], $GUI_HIDE)
    GUICtrlSetState($buttons[5][9], $GUI_HIDE)
    GUICtrlSetState($buttons[5][10], $GUI_HIDE)
    GUICtrlSetState($buttons[5][11], $GUI_HIDE)
    GUICtrlSetState($buttons[5][13], $GUI_HIDE)
    GUICtrlSetState($buttons[5][14], $GUI_HIDE)
    GUICtrlSetState($buttons[5][15], $GUI_HIDE)
    GUICtrlSetState($buttons[5][16], $GUI_HIDE)
    GUICtrlSetState($buttons[5][18], $GUI_HIDE)
    GUICtrlSetState($buttons[5][19], $GUI_HIDE)
    GUICtrlSetState($buttons[5][20], $GUI_HIDE)
    GUICtrlSetState($buttons[5][21], $GUI_HIDE)
    GUICtrlSetState($buttons[5][23], $GUI_HIDE)
    GUICtrlSetState($buttons[5][24], $GUI_HIDE)
    GUICtrlSetState($buttons[5][25], $GUI_HIDE)
    GUICtrlSetState($buttons[5][27], $GUI_HIDE)
    GUICtrlSetState($buttons[5][28], $GUI_HIDE)
    GUICtrlSetState($buttons[5][29], $GUI_HIDE)
    GUICtrlSetState($buttons[5][33], $GUI_HIDE)
    GUICtrlSetState($buttons[5][34], $GUI_HIDE)
    GUICtrlSetState($buttons[5][35], $GUI_HIDE)
    GUICtrlSetState($buttons[5][37], $GUI_HIDE)
    GUICtrlSetState($buttons[5][38], $GUI_HIDE)
    GUICtrlSetState($buttons[5][39], $GUI_HIDE)
    GUICtrlSetState($buttons[5][40], $GUI_HIDE)
    GUICtrlSetState($buttons[5][41], $GUI_HIDE)
    GUICtrlSetState($buttons[5][42], $GUI_HIDE)
    GUICtrlSetState($buttons[5][44], $GUI_HIDE)
    GUICtrlSetState($buttons[5][45], $GUI_HIDE)
    GUICtrlSetState($buttons[5][46], $GUI_HIDE)
    BreakingSleep(500)

    GUICtrlSetState($buttons[6][0], $GUI_HIDE)
    GUICtrlSetState($buttons[6][2], $GUI_HIDE)
    GUICtrlSetState($buttons[6][3], $GUI_HIDE)
    GUICtrlSetState($buttons[6][4], $GUI_HIDE)
    GUICtrlSetState($buttons[6][6], $GUI_HIDE)
    GUICtrlSetState($buttons[6][7], $GUI_HIDE)
    GUICtrlSetState($buttons[6][9], $GUI_HIDE)
    GUICtrlSetState($buttons[6][10], $GUI_HIDE)
    GUICtrlSetState($buttons[6][11], $GUI_HIDE)
    GUICtrlSetState($buttons[6][13], $GUI_HIDE)
    GUICtrlSetState($buttons[6][14], $GUI_HIDE)
    GUICtrlSetState($buttons[6][15], $GUI_HIDE)
    GUICtrlSetState($buttons[6][16], $GUI_HIDE)
    GUICtrlSetState($buttons[6][18], $GUI_HIDE)
    GUICtrlSetState($buttons[6][19], $GUI_HIDE)
    GUICtrlSetState($buttons[6][20], $GUI_HIDE)
    GUICtrlSetState($buttons[6][21], $GUI_HIDE)
    GUICtrlSetState($buttons[6][23], $GUI_HIDE)
    GUICtrlSetState($buttons[6][24], $GUI_HIDE)
    GUICtrlSetState($buttons[6][25], $GUI_HIDE)
    GUICtrlSetState($buttons[6][27], $GUI_HIDE)
    GUICtrlSetState($buttons[6][28], $GUI_HIDE)
    GUICtrlSetState($buttons[6][29], $GUI_HIDE)
    GUICtrlSetState($buttons[6][30], $GUI_HIDE)
    GUICtrlSetState($buttons[6][31], $GUI_HIDE)
    GUICtrlSetState($buttons[6][32], $GUI_HIDE)
    GUICtrlSetState($buttons[6][33], $GUI_HIDE)
    GUICtrlSetState($buttons[6][34], $GUI_HIDE)
    GUICtrlSetState($buttons[6][35], $GUI_HIDE)
    GUICtrlSetState($buttons[6][37], $GUI_HIDE)
    GUICtrlSetState($buttons[6][38], $GUI_HIDE)
    GUICtrlSetState($buttons[6][39], $GUI_HIDE)
    GUICtrlSetState($buttons[6][40], $GUI_HIDE)
    GUICtrlSetState($buttons[6][41], $GUI_HIDE)
    GUICtrlSetState($buttons[6][42], $GUI_HIDE)
    GUICtrlSetState($buttons[6][44], $GUI_HIDE)
    GUICtrlSetState($buttons[6][45], $GUI_HIDE)
    GUICtrlSetState($buttons[6][46], $GUI_HIDE)
    BreakingSleep(500)

    GUICtrlSetState($buttons[7][0], $GUI_HIDE)
    GUICtrlSetState($buttons[7][2], $GUI_HIDE)
    GUICtrlSetState($buttons[7][3], $GUI_HIDE)
    GUICtrlSetState($buttons[7][4], $GUI_HIDE)
    GUICtrlSetState($buttons[7][6], $GUI_HIDE)
    GUICtrlSetState($buttons[7][7], $GUI_HIDE)
    GUICtrlSetState($buttons[7][9], $GUI_HIDE)
    GUICtrlSetState($buttons[7][10], $GUI_HIDE)
    GUICtrlSetState($buttons[7][11], $GUI_HIDE)
    GUICtrlSetState($buttons[7][13], $GUI_HIDE)
    GUICtrlSetState($buttons[7][14], $GUI_HIDE)
    GUICtrlSetState($buttons[7][15], $GUI_HIDE)
    GUICtrlSetState($buttons[7][16], $GUI_HIDE)
    GUICtrlSetState($buttons[7][18], $GUI_HIDE)
    GUICtrlSetState($buttons[7][19], $GUI_HIDE)
    GUICtrlSetState($buttons[7][20], $GUI_HIDE)
    GUICtrlSetState($buttons[7][21], $GUI_HIDE)
    GUICtrlSetState($buttons[7][23], $GUI_HIDE)
    GUICtrlSetState($buttons[7][24], $GUI_HIDE)
    GUICtrlSetState($buttons[7][25], $GUI_HIDE)
    GUICtrlSetState($buttons[7][27], $GUI_HIDE)
    GUICtrlSetState($buttons[7][28], $GUI_HIDE)
    GUICtrlSetState($buttons[7][29], $GUI_HIDE)
    GUICtrlSetState($buttons[7][30], $GUI_HIDE)
    GUICtrlSetState($buttons[7][31], $GUI_HIDE)
    GUICtrlSetState($buttons[7][32], $GUI_HIDE)
    GUICtrlSetState($buttons[7][33], $GUI_HIDE)
    GUICtrlSetState($buttons[7][34], $GUI_HIDE)
    GUICtrlSetState($buttons[7][35], $GUI_HIDE)
    GUICtrlSetState($buttons[7][37], $GUI_HIDE)
    GUICtrlSetState($buttons[7][38], $GUI_HIDE)
    GUICtrlSetState($buttons[7][39], $GUI_HIDE)
    GUICtrlSetState($buttons[7][40], $GUI_HIDE)
    GUICtrlSetState($buttons[7][41], $GUI_HIDE)
    GUICtrlSetState($buttons[7][42], $GUI_HIDE)
    GUICtrlSetState($buttons[7][44], $GUI_HIDE)
    GUICtrlSetState($buttons[7][45], $GUI_HIDE)
    GUICtrlSetState($buttons[7][46], $GUI_HIDE)
    BreakingSleep(500)

    GUICtrlSetState($buttons[8][0], $GUI_HIDE)
    GUICtrlSetState($buttons[8][2], $GUI_HIDE)
    GUICtrlSetState($buttons[8][3], $GUI_HIDE)
    GUICtrlSetState($buttons[8][4], $GUI_HIDE)
    GUICtrlSetState($buttons[8][6], $GUI_HIDE)
    GUICtrlSetState($buttons[8][7], $GUI_HIDE)
    GUICtrlSetState($buttons[8][13], $GUI_HIDE)
    GUICtrlSetState($buttons[8][14], $GUI_HIDE)
    GUICtrlSetState($buttons[8][15], $GUI_HIDE)
    GUICtrlSetState($buttons[8][16], $GUI_HIDE)
    GUICtrlSetState($buttons[8][18], $GUI_HIDE)
    GUICtrlSetState($buttons[8][19], $GUI_HIDE)
    GUICtrlSetState($buttons[8][20], $GUI_HIDE)
    GUICtrlSetState($buttons[8][21], $GUI_HIDE)
    GUICtrlSetState($buttons[8][22], $GUI_HIDE)
    GUICtrlSetState($buttons[8][26], $GUI_HIDE)
    GUICtrlSetState($buttons[8][27], $GUI_HIDE)
    GUICtrlSetState($buttons[8][28], $GUI_HIDE)
    GUICtrlSetState($buttons[8][30], $GUI_HIDE)
    GUICtrlSetState($buttons[8][31], $GUI_HIDE)
    GUICtrlSetState($buttons[8][32], $GUI_HIDE)
    GUICtrlSetState($buttons[8][33], $GUI_HIDE)
    GUICtrlSetState($buttons[8][28], $GUI_HIDE)
    GUICtrlSetState($buttons[8][29], $GUI_HIDE)
    GUICtrlSetState($buttons[8][33], $GUI_HIDE)
    GUICtrlSetState($buttons[8][39], $GUI_HIDE)
    GUICtrlSetState($buttons[8][40], $GUI_HIDE)
    GUICtrlSetState($buttons[8][41], $GUI_HIDE)
    GUICtrlSetState($buttons[8][42], $GUI_HIDE)
    GUICtrlSetState($buttons[8][44], $GUI_HIDE)
    GUICtrlSetState($buttons[8][45], $GUI_HIDE)
    GUICtrlSetState($buttons[8][46], $GUI_HIDE)

    BreakingSleep(2000)

    ; einfach alles wieder einblenden
    For $nZeile = 0 To 10
    For $nSpalte = 0 To 46
    GUICtrlSetState($buttons[$nZeile][$nSpalte], $GUI_SHOW)
    Next
    Next

    $msg = GUIGetMsg()
    if $msg = $GUI_EVENT_CLOSE Then Exit

    WEnd

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

    Func BreakingSleep($SleepTime)
    Local $Start = TimerInit()

    While TimerDiff($Start) < $SleepTime
    $msg = GUIGetMsg()
    if $msg = $GUI_EVENT_CLOSE Then Exit
    WEnd
    EndFunc

    [/autoit]
  • Scrollleiste bei GUI bzw. MsgBox

    • bernd670
    • 8. Juni 2007 um 05:28

    Du kannst die DosBox einfach sichtbar machen, beim Run-Befehl einfach das @SW_HIDE durch @SW_SHOW ersetzen!

  • Scrollleiste bei GUI bzw. MsgBox

    • bernd670
    • 8. Juni 2007 um 02:05

    Evtl. indem man die Funktion _start etwas umschreibt!

    [autoit]

    Func _start()
    $stream = Run(@ComSpec & ' /c ' & " ipconfig ", '', @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
    While 1
    $textline = StdoutRead($stream)
    If @error Then ExitLoop
    $a = StringSplit($textline, @CRLF)
    For $i = 1 To $a[0]
    If $a[$i] <> "" Then
    GUICtrlCreateListViewItem($a[$i], $listview)
    EndIf
    Next
    WEnd
    EndFunc ;==>_start

    [/autoit]
  • Scrollleiste bei GUI bzw. MsgBox

    • bernd670
    • 8. Juni 2007 um 00:57

    Hallo!

    Pfade mit Leerzeichen müssen von Anführungszeichen umschlossen werden:

    [autoit]

    '"c:\program files\HTML Workshop\hhc.exe" s:\workshop.hhp'

    [/autoit]
  • Avira script

    • bernd670
    • 7. Juni 2007 um 23:48

    Hallo!

    Leider kann hier keiner Hellsehen und [Blockierte Grafik: http://smilie-land.de/t/e-h/hexe/hexe0008.gif] funktioniert auch nicht so richtig.
    [list=1]
    [*]Bitte genau beschreiben was für ein Script gemeint ist.
    [*]Wenn Du schon mal was probiert hast, könntest Du das ja posten und dann wird dir bei Problemen bestimmt geholfen.
    [/list=1]

    Wenn Du ein Installationsscript suchen solltest dann probier mal das Antivir neueste Version Script AutoIT! Wenn es nicht funktioniert kann man es ja entsprechend anpassen. Ich kann es leider nicht testen da ich eine PersonaEdition Premium Version von Avira AntiVir besitze und die eine andere Installationsroutine hat.

  • Projektplaner wie anfangen?

    • bernd670
    • 7. Juni 2007 um 22:10

    Warum willst Du den überhaupt den Umweg über eine Datei nehmen. Wenn Du die Daten sowieso mit AutoIt aus der Datenbank liest, kannst Du sie doch auch gleich in ein ListView schreiben und anzeigen.


    Wenn es doch eine Datei sein soll würde ich eine CSV-Datei vorziehen, die kann man dann auch direkt aus Access erzeugen!

  • Button on/off

    • bernd670
    • 7. Juni 2007 um 21:43

    Hallo Alina,

    wenn Du 473 Buttons erzeugen willst dann aber hoffentlich nicht so wie Du oben angefangen hast ($a1 - $a43, ..., $k1 - $k43), oder?

    Das wäre doch ein gutes Bsp. um sich mal mit Arrays auseinanderzusetzen!

  • Problem mit Boot von Medium

    • bernd670
    • 7. Juni 2007 um 18:40

    Hallo!

    Brenn mal die CD mit max. 16fach und probiers dann noch mal! Hat bei mir mal geholfen!

  • Simconnect SDK DLLCall ?

    • bernd670
    • 5. Juni 2007 um 17:57

    Kannst Du mir mal die SimConnect.dll zur Verfügung stellen, dann kann ich mal schauen ob sich da was machen läßt.

  • text-aus-html-fischer

    • bernd670
    • 5. Juni 2007 um 17:55

    Vllt. kann ich dir ja auf die Sprünge helfen?

    [autoit]

    #include <ie.au3>

    $oIE=_IECreate("http://www.beepworld.de/members/9xz4ep63rnheibe9vypy/",0,0)
    $html = _IEDocReadHTML($oIE)
    _IEQuit($oie)

    $out = StringRegExp($html,".*\.{9}----:(.*):-\.\..*",1)
    MsgBox(0,"",$out[0])

    [/autoit]

    Erst mal ein paar Hinweise:

    • der Punkt "." steht für ein x-beliebiges einzelnes Zeichen (ausser Zeilenumbruch)
    • der Stern "*" sagt aus, das Zeichen davor kann beliebig oft vorkommen (auch 0 mal)
    • der Backslash "\" ist das sognannte Escape-Zeichen, d.h. "\." steht für einen Punkt und nicht wie oben beschrieben für ein x-beliebiges Zeichen
    • die runden Klammern "()" sagen, alles was in runden Klammern steht wird von der Funktion StringRegExp zurückgeben
    • die geschweifte Klammer "{}", die Zahlen in der geschweiften Klammer gibt die Anzahl der Wiederholungen an s. Hilfe

    Das Suchmuster

    Code
    ".*\.{9}----:(.*):-\.\..*"

    in StringRegExp bedeutet folgendes:

    Suche nach einem String der mit 9 Punkten beginnt gefolgt von 4 Strichen und einem Doppelpunkt, danach kommen x-belibige Zeichen, die zurückgegeben werden sollen, bis wieder ein Doppelpunkt, ein Strich und 2 Punkte folgen. Davor und danach können x-beliebig viele Zeichen stehen.

    Ich hoffe das kommt einigermassen verständlich rüber, ist gar nicht so einfach zu erklären! ;)

  • Reg-datei speichern

    • bernd670
    • 5. Juni 2007 um 11:15

    Bei mir läuft es, nur wenn der zu exportierende Schlüssel nicht existiert wird auch nichts exportiert!

  • Adobe Reader 8.0

    • bernd670
    • 5. Juni 2007 um 10:43

    Mit folgendem Aufruf läuft die Installation vollautomatisch im Hintergrund.

    Code
    AdbeRdr80_de_DE.exe /sALL
  • text-aus-html-fischer

    • bernd670
    • 5. Juni 2007 um 08:02

    Eine Beschreibung gibt es in der Hilfe und http://www.autoitscript.com/autoit3/pcrepattern.html!

  • text-aus-html-fischer

    • bernd670
    • 5. Juni 2007 um 07:11

    Hallo!

    Deine If Anweisungen sind falsch!

    Richtig wäre:

    [autoit]

    #include<ie.au3>
    #include<array.au3>

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

    $oIE=_IECreate("http://www.beepworld.de/members/9xz4ep63rnheibe9vypy/",0,0)
    $html = _IEDocReadHTML($oIE)
    _IEQuit($oie)

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

    $htmls=StringSplit($html,"")
    for $i = 0 to $htmls[0]
    if $htmls[$i] = "." and $htmls[$i+1] = "." and $htmls[$i+2] = "." and $htmls[$i+3] = "." and $htmls[$i+4] = "." and $htmls[$i+5] = "." and $htmls[$i+6] = "." and $htmls[$i+7] = "." and $htmls[$i+8] = "." and $htmls[$i+9] = "." and $htmls[$i+10]="-" and $htmls[$i+11]="-" and $htmls[$i+12]="-" and $htmls[$i+13]="-" and $htmls[$i+14]=":" Then
    for $ii=$htmls[$i+14] to $htmls[0]
    If $htmls[$ii]=":"and $htmls[$ii+1]="-" and $htmls[$ii+2] ="." and $htmls[$ii+3] ="." Then
    $out = arraytostring($htmls,$i+15,$ii-1)
    MsgBox(0,"",$out)
    EndIf
    Next
    EndIf
    Next



    func arraytostring($array,$anfang,$ende)
    $ret=""
    for $i=$anfang to $ende
    $ret=$ret&$array[$i]
    Next
    return $ret
    EndFunc

    [/autoit]


    Aber es geht auch viel einfacher:

    [autoit]

    #include<ie.au3>

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

    $oIE=_IECreate("http://www.beepworld.de/members/9xz4ep63rnheibe9vypy/",0,0)
    $html = _IEDocReadHTML($oIE)
    _IEQuit($oie)

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

    $out = StringRegExp($html,".*\.{9}----:(.*):-\.\..*",1)
    MsgBox(0,"",$out[0])

    [/autoit]

    Edit:
    Es ging noch etwas kürzer! ;)

  • Der Neue

    • bernd670
    • 4. Juni 2007 um 22:31

    Hallo!

    Einen Herzlichen Glückwünsch auch von mir und vielen Dank für das Vertrauen das ihr mir schon nach so kurzer Zeit im Forum entgegengebracht habt um mich in den Kreis der Moderatoren aufzunehmen!

    [Blockierte Grafik: http://smilie-land.de/t/e-h/grinsen/grins0021.gif]

  • Befehl ausführen mit Parametern

    • bernd670
    • 3. Juni 2007 um 17:01

    Hallo und :willkommen:!

    So sollte es gehen!

    [autoit]

    $szMySQLDump = IniRead("config.ini", "config", "mysqldump", "xampplite\mysql\bin\mysqldump.exe")
    $szMySQLUser = IniRead("config.ini", "config", "username", "thejoker")
    $szMySQLPasswd = IniRead("config.ini", "config", "password", "xxxxx")
    $szMySQLPort = IniRead("config.ini", "config", "port", "3306")
    $szMySQLDB = IniRead ( "config.ini", "config", "datenbank", "jokersdaten")
    $szBackupFolder = IniRead("config.ini", "config", "backupfolder", "backups")

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

    Run(@ComSpec & " /C " & $szMySQLDump & _
    " --user=" & $szMySQLUser & _
    " --password=" & $szMySQLPasswd & _
    " --port=" & $szMySQLPort & _
    " -add-drop-table --extended-insert " & $szMySQLDB & _
    " tables > " & $szBackupFolder & "\SQL_Backup.sql", "", @SW_HIDE)

    [/autoit]
  • zahl erkennen,filtern und verarbeiten

    • bernd670
    • 3. Juni 2007 um 14:41

    Richtig, solche Zahlen meinte ich!

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™