Warten auf "Enter-Taste"

  • Ich frage mich, was da nicht stimmt?

    [autoit]

    While 1
    If _IsPressed("13") Then
    Exit
    Else
    MsgBox(0,"Bestätigung","Bitte <ENTER-Taste> betätigen")
    EndIf
    WEnd

    [/autoit]


    LG, Lina.

    Lieben Gruß,
    Alina

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Geheime Information: ;)
    OuBVU5ebLhHu5QvlnAyQB4A7SzBrvWulwL7RLl2BdH5tI6sIYspeMKeXMSXl

  • Hi Alina,

    Ich weiß was du vergessen hast ^^
    Uns zwar #include<Misc.au3>
    _______________
    MfG [KdD]Wolf^^

    2 Mal editiert, zuletzt von [KdD]Wolf (26. August 2007 um 18:53)

  • kann man das nich auch so machen?

    Spoiler anzeigen
    [autoit]

    SplashTextOn("test", "Bitte mit enter bestätigen",100, 100, 0, 0)

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

    while 1
    if _IsPressed(13) Then
    wend
    SplashOff()
    EndIf

    [/autoit]

    Mfg
    monkey

    Monkey - die finale Potenz von göttlich!
    Sloganizer

  • [autoit]

    #include <misc.au3>
    $dll = DllOpen("user32.dll")
    While 1
    Sleep ( 250 )
    If _IsPressed("0D", $dll) Then ; enter
    Exit
    Else
    MsgBox(0,"Bestätigung","Bitte <ENTER-Taste> betätigen")
    EndIf
    Wend

    [/autoit]


    mfg

  • Ok, läuft, jetzt nur noch den Botton weg in der Msg.

    Danke !!!!

    Lieben Gruß,
    Alina

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Geheime Information: ;)
    OuBVU5ebLhHu5QvlnAyQB4A7SzBrvWulwL7RLl2BdH5tI6sIYspeMKeXMSXl

    Einmal editiert, zuletzt von Alina (26. August 2007 um 18:59)

  • Zitat

    Original von monkey
    kann man das nich auch so machen?

    Spoiler anzeigen
    [autoit]

    SplashTextOn("test", "Bitte mit enter bestätigen",100, 100, 0, 0)

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

    while 1
    if _IsPressed(13) Then
    wend
    SplashOff()
    EndIf

    [/autoit]

    Man brauch aber trotzdem für _IsPressed, am Anfang des Scriptes #include<Misc.au3>. :P
    Sonst kommt ein Error.

    Einmal editiert, zuletzt von [KdD]Wolf (26. August 2007 um 18:59)

  • Bestens !!!!

    DANKE !!!!

    LG, Lina.

    Lieben Gruß,
    Alina

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Geheime Information: ;)
    OuBVU5ebLhHu5QvlnAyQB4A7SzBrvWulwL7RLl2BdH5tI6sIYspeMKeXMSXl