Eingabe von Wörtern abprüfen

  • Ich wollte mal fragen ob jemand ne Ahnung hat wie ich die Eingabe ganzer Wörter abprüfen könnte, ohne HotKeySet oder _isPessed in zig if-bedigungen zu verschachteln.


    soll so ablaufen:

    Wort wird eingegeben ---> Programm wird ausgeführt


    wäre sehr praktisch.


    MfG

  • naja erstmal ist man auf ne bestimmte wortlänge begrenzt je nach dem wie oft mans verschachtelt.

    dann muss man nach jeder gedrückten tasten eine while schleife machen damits nich sofort wieder raus geht und man zeit für die nächste taste hat.


    [autoit]


    While _IsPressed("20", $dll)
    $run = 0
    If _IsPressed($array[1], $dll) Then
    If $array[0] >= 2 Then
    $while1 = 0
    While $while1 < 100
    If _IsPressed($array[2], $dll) Then
    If $array[0] >= 3 Then
    $while1 = 0
    While $while1 < 100
    If _IsPressed($array[3], $dll) Then
    If $array[0] >= 4 Then
    $while1 = 0
    While $while1 < 100
    If _IsPressed($array[4], $dll) Then
    If $array[0] >= 5 Then
    $while1 = 0
    While $while1 < 100
    If _IsPressed($array[5], $dll) Then
    $run = Run($path)
    $while1 = 0
    Sleep(100)
    ExitLoop
    EndIf
    Sleep(1)
    $while1 = $while1 + 1
    WEnd
    $while1 = 0
    Else
    $run = Run($path)
    $while1 = 0
    Sleep(100)
    ExitLoop
    EndIf
    EndIf
    Sleep(1)
    $while1 = $while1 + 1
    If $run > 0 Then
    ExitLoop
    EndIf
    WEnd
    $while1 = 0
    Else
    $run = Run($path)
    $while1 = 0
    Sleep(100)
    ExitLoop
    EndIf
    EndIf
    Sleep(1)
    $while1 = $while1 + 1
    If $run > 0 Then
    ExitLoop
    EndIf
    WEnd
    $while1 = 0
    Else
    $run = Run($path)
    $while1 = 0
    Sleep(100)
    ExitLoop
    EndIf
    EndIf
    Sleep(1)
    $while1 = $while1 + 1
    If $run > 0 Then
    ExitLoop
    EndIf
    WEnd
    $while1 = 0
    Else
    $run = Run($path)
    $while1 = 0
    Sleep(100)
    EndIf
    EndIf

    [/autoit]


    so sieht dann der spaß aus nur um 1 maximal 5 - stelliges wort abzuprüfen


    falls jemand ideen hat um das zu verkürzen, wäre auch super


    mfg