_IsPressed funktioniert nichtmehr

  • Hallo!

    Ich hab ein Problem mit _IsPressed. Bei mir wird garnichts gemacht, wenn ich das untere Skript verwende und Enter drücke! Hab Version 3.2.12.1

    Spoiler anzeigen
    [autoit]

    #include <Misc.au3>

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

    Global $dll = DllOpen("user32.dll")

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

    While 1
    If _IsPressed("OD", $dll) Then ExitLoop
    Sleep(10)
    WEnd

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

    Beep(500, 500)

    [/autoit]

    (Lautsprecher im Gehäuse ist auf jedenfall an)

    fabs

  • Hi,
    du hast anstatt Null-D O-D geschrieben.


    Also:

    Spoiler anzeigen
    [autoit]

    #include <Misc.au3>

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

    Global $dll = DllOpen("user32.dll")

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

    While 1
    If _IsPressed("0D", $dll) Then ExitLoop
    Sleep(10)
    WEnd

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

    Beep(500, 500)

    [/autoit]