auf Eingabe warten

  • Hallo,

    was muss ich machen, damit diese Programm auf eine Eingabe wartet ?

    [autoit]

    HotKeySet("{1}", "_eins")HotKeySet("{2}", "_zwei")HotKeySet("{3}", "_drei")
    Func _eins()MsgBox ( 0, "eins", "eins" )EndFunc
    Func _zwei()MsgBox ( 0, "zwei", "zwei" )EndFunc
    Func _drei()MsgBox ( 0, "drei", "drei" )EndFunc

    [/autoit]
  • Hallo anton_s,

    herzlich willkommen im Forum und viel Spass mit AutoIt.

    Hier kannst du dir die Hilfe herunterladen.
    Hier gibt es ein AutoIt-Tutorial: http://wiki.autoit.de/wiki/index.php/TutorialSehr hilfreich ist auch das Buch von peethebee

    und jetzt zu deinem Problem, du musst eine Endlosschleife einbauen:

    Spoiler anzeigen
    [autoit]

    HotKeySet("{1}", "_eins")
    HotKeySet("{2}", "_zwei")
    HotKeySet("{3}", "_drei")
    HotKeySet("{Esc}","_exit")

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

    while 1
    Sleep(50)
    WEnd

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

    Func _exit()
    Exit
    EndFunc

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

    Func _eins()
    MsgBox ( 0, "eins", "eins" )
    EndFunc

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

    Func _zwei()
    MsgBox ( 0, "zwei", "zwei" )
    EndFunc

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

    Func _drei()
    MsgBox ( 0, "drei", "drei" )
    EndFunc

    [/autoit]

    mfg autoBert