HotKeySet mit F1 bis F9 und einer andere Taste

  • Hallo,
    ich versuche grade mit HotKeySet Funktionen auf die F – Tasten zu legen. In meinem Beispiel funktionieren die ersten zwei belegten Tasten nicht. Hat da einer eine zündende Idee woran das liegen könnte?

    Gruß Ingo

    [autoit]

    HotKeySet("{RALT}{F1}", "_ALT_GR_F1") ;ALT-GR + F1
    HotKeySet("^!{F2}", "_CTRL_Alt_F2") ;CTRL-Alt + F2
    HotKeySet("{F2}", "_F2") ; F2
    HotKeySet("+!d", "_Shift_Alt_d") ; Shift-Alt-d
    HotKeySet("^!d", "_CTRL_Alt_d") ; CTRL-Alt-d

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

    While 1
    Sleep(100)
    WEnd

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

    Func _ALT_GR_F1 ()
    MsgBox (0, "_ALT_GR_F1", "ALT-GR und F1")
    EndFunc

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

    Func _CTRL_Alt_F2 ()
    MsgBox (0, "_ALT_GR_F2", "CTRL-Alt und F2")
    EndFunc

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

    Func _F2 ()
    MsgBox (0, "_F2", "F2")
    EndFunc

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

    Func _Shift_Alt_d ()
    MsgBox(4096,"Shift-Alt-d","Shift-Alt-d")
    EndFunc

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

    Func _CTRL_Alt_d ()
    MsgBox(4096,"CTRL-Alt-d","CTRL-Alt-d")
    EndFunc

    [/autoit]
  • Hallo,
    funktioniert das eigentlich auch bei euch nicht? :(

    Ich kann mich erinnern, genau solch eine Definition von Tasten bereits mit einer alten Version von AutoIT verwendet zu haben. Ich suche noch den Quelltext.

    Gruß Ingo

  • Also, diese funktionieren alle:

    [autoit]

    HotKeySet("^!{F2}", "_CTRL_Alt_F2") ;CTRL-Alt + F2
    HotKeySet("{F2}", "_F2") ; F2
    HotKeySet("+!d", "_Shift_Alt_d") ; Shift-Alt-d
    HotKeySet("^!d", "_CTRL_Alt_d") ; CTRL-Alt-d

    [/autoit]


    Nicht funktionieren tut dagegen HotKeySet("{RALT}{F1}", "_ALT_GR_F1") ;ALT-GR + F1
    Dabei wird die Taste {RLAT} verwendet, was nicht erlaubt ist

    Zitat

    The following hotkeys cannot be set:
    ...
    Any global hotkeys a user has defined using third-party software, any combos of two or more "base keys" such as '{F1}{F2}', and any keys of the form '{LALT}' or '{ALTDOWN}'.