Keybinder Problem

  • Hallo,
    ich bin ziemlich neu in Sachen Autoit
    nun wollte ich einen Keybiner schreiben.
    Soweit habe ich alles bloß meine 2 Probleme sind :
    Ich will das man in der GUI eine Taste reinschreiben kann die dann als bind benutzt wird also zb
    F1 = Hallo wie gehts oder sowas.
    Und mein 2tes Problem ist ich bekomme es nicht in eine InI gespecihert.

    Code :

    Spoiler anzeigen
    [autoit][/autoit] [autoit][/autoit] [autoit]

    $Key = HotKeySet(GUICtrlRead($Input1)

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

    ;HotKeySet(GUICtrlRead($Input2)
    ;HotKeySet(GUICtrlRead($Input3)
    ;HotKeySet(GUICtrlRead($Input4)
    ;HotKeySet(GUICtrlRead($Input5)
    ;HotKeySet(GUICtrlRead($Input6)

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

    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 611, 478, 192, 124)
    $_1 = GUICtrlCreateInput("_1", 16, 24, 121, 21)
    $_2 = GUICtrlCreateInput("Input1", 18, 55, 121, 21)
    $_3 = GUICtrlCreateInput("Input1", 18, 87, 121, 21)
    $_4 = GUICtrlCreateInput("Input1", 18, 119, 121, 21)
    $_5 = GUICtrlCreateInput("Input1", 18, 151, 121, 21)
    $_6 = GUICtrlCreateInput("Input1", 18, 183, 121, 21)
    $Pic1 = GUICtrlCreatePic("C:\Users\cLx\Desktop\logo.jpg", 0, 376, 313, 97)
    $Label1 = GUICtrlCreateLabel("Key Binder 4 RoR", 352, 424, 216, 36)
    GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")
    $Input1 = GUICtrlCreateInput("Input1", 144, 24, 49, 21)
    $Input2 = GUICtrlCreateInput("Input1", 144, 54, 49, 21)
    $Input3 = GUICtrlCreateInput("Input1", 144, 89, 49, 21)
    $Input4 = GUICtrlCreateInput("Input1", 144, 121, 49, 21)
    $Input5 = GUICtrlCreateInput("Input1", 144, 153, 49, 21)
    $Input6 = GUICtrlCreateInput("Input1", 144, 185, 49, 21)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    Func _Key($Key)
    Send("{T}")
    Send(GUICtrlRead($_1))
    Send("{ENTER}")
    EndFunc

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

    Func _Key2()
    Send("{T}")
    Send(GUICtrlRead($_2))
    Send("{ENTER}")
    EndFunc

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

    Func _Key3()
    Send("{T}")
    Send(GUICtrlRead($_3))
    Send("{ENTER}")
    EndFunc

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

    Func _Key4()
    Send("{T}")
    Send(GUICtrlRead($_4))
    Send("{ENTER}")
    EndFunc

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

    Func _Key5()
    Send("{T}")
    Send(GUICtrlRead($_5))
    Send("{ENTER}")
    EndFunc

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

    Func _Key6()
    Send("{T}")
    Send(GUICtrlRead($_6))
    Send("{ENTER}")
    EndFunc

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


    Danke im vorraus :)

  • 1. Ist der Keybinder in dem Spiel wo dus benutzt erlaubt ;)? (GTA SAMP?)
    2. Send ("{T}") Kannst du auch Send ("t") machen
    3. Du hast nichtmal ne While Schleife ;)
    4. Ich würde es nicht mit InputBoxen machen sondern mit einer Combobox in der Mögliche Tasten drinstehen