Guten Morgen meine Damen und Herren,
ich wollte mir einen Keybinder erstellen, der dafür sorgt das Nutzer dieses Keybinders eigene Hotkeys festlegen können.
Ich habe viele Varianten ausprobiert. Jedoch wenn ich den Bind setze und Ihn auch Ingame betätige, crasht mein GTA.
Hoffe mal, dass ich hier etwas Hilfe bekomme. Ich bedanke mich im Voraus.
Code
Iniread,EigeneHotkey1, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey1 %A_Space%
Iniread,EigeneHotkey2, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey2 %A_Space%
Iniread,EigeneHotkey3, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey3 %A_Space%
Iniread,EigeneHotkey4, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey4 %A_Space%
Iniread,EigeneHotkey5, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey5 %A_Space%
Iniread,EigeneHotkey6, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey6 %A_Space%
Iniread,EigeneHotkey7, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey7 %A_Space%
Iniread,EigeneHotkey8, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey8 %A_Space%
Iniread,EigeneHotkey9, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey9 %A_Space%
Iniread,EigeneHotkey10, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey10 %A_Space%
Iniread,EigeneHotkeyBeleg1, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg1
Iniread,EigeneHotkeyBeleg2, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg2
Iniread,EigeneHotkeyBeleg3, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg3
Iniread,EigeneHotkeyBeleg4, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg4
Iniread,EigeneHotkeyBeleg5, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg5
Iniread,EigeneHotkeyBeleg6, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg6
Iniread,EigeneHotkeyBeleg7, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg7
Iniread,EigeneHotkeyBeleg8, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg8
Iniread,EigeneHotkeyBeleg9, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg9
Iniread,EigeneHotkeyBeleg10, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg10
Hotkeys:
Gui, 2:Add, Picture, x-8 y-1 w800 h480 ,bg.png
Gui, 2:Add, Hotkey, x22 y29 w150 h30 vEigeneHotkey1, %EigeneHotkey1%
Hotkey, ~%EigeneHotkey1%, EigeneHotkeyBeleg1
Gui, 2:Add, Hotkey, x22 y69 w150 h30 vEigeneHotkey2, %EigeneHotkey2%
Hotkey, ~%EigeneHotkey2%, EigeneHotkeyBeleg2
Gui, 2:Add, Hotkey, x22 y109 w150 h30 vEigeneHotkey3, %EigeneHotkey3%
Hotkey, ~%EigeneHotkey3%, EigeneHotkeyBeleg3
Gui, 2:Add, Hotkey, x22 y149 w150 h30 vEigeneHotkey4, %EigeneHotkey4%
Hotkey, ~%EigeneHotkey4%, EigeneHotkeyBeleg4
Gui, 2:Add, Hotkey, x22 y189 w150 h30 vEigeneHotkey5, %EigeneHotkey5%
Hotkey, ~%EigeneHotkey5%, EigeneHotkeyBeleg5
Gui, 2:Add, Hotkey, x22 y229 w150 h30 vEigeneHotkey6, %EigeneHotkey6%
Hotkey, ~%EigeneHotkey6%, EigeneHotkeyBeleg6
Gui, 2:Add, Hotkey, x22 y269 w150 h30 vEigeneHotkey7, %EigeneHotkey7%
Hotkey, ~%EigeneHotkey7%, EigeneHotkeyBeleg7
Gui, 2:Add, Hotkey, x22 y309 w150 h30 vEigeneHotkey8, %EigeneHotkey8%
Hotkey, ~%EigeneHotkey8%, EigeneHotkeyBeleg8
Gui, 2:Add, Hotkey, x22 y349 w150 h30 vEigeneHotkey9, %EigeneHotkey9%
Hotkey, ~%EigeneHotkey9%, EigeneHotkeyBeleg9
Gui, 2:Add, Hotkey, x22 y389 w150 h30 vEigeneHotkey10, %EigeneHotkey10%
Hotkey, ~%EigeneHotkey10%, EigeneHotkeyBeleg10
Gui, 2:Add, Edit, x182 y29 w570 h30 vEigeneHotkeyBeleg1, %EigeneHotkeyBeleg1%
Gui, 2:Add, Edit, x182 y69 w570 h30 vEigeneHotkeyBeleg2, %EigeneHotkeyBeleg2%
Gui, 2:Add, Edit, x182 y109 w570 h30 vEigeneHotkeyBeleg3, %EigeneHotkeyBeleg3%
Gui, 2:Add, Edit, x182 y149 w570 h30 vEigeneHotkeyBeleg4, %EigeneHotkeyBeleg4%
Gui, 2:Add, Edit, x182 y189 w570 h30 vEigeneHotkeyBeleg5, %EigeneHotkeyBeleg5%
Gui, 2:Add, Edit, x182 y229 w570 h30 vEigeneHotkeyBeleg6, %EigeneHotkeyBeleg6%
Gui, 2:Add, Edit, x182 y269 w570 h30 vEigeneHotkeyBeleg7, %EigeneHotkeyBeleg7%
Gui, 2:Add, Edit, x182 y309 w570 h30 vEigeneHotkeyBeleg8, %EigeneHotkeyBeleg8%
Gui, 2:Add, Edit, x182 y349 w570 h30 vEigeneHotkeyBeleg9, %EigeneHotkeyBeleg9%
Gui, 2:Add, Edit, x182 y389 w570 h30 vEigeneHotkeyBeleg10, %EigeneHotkeyBeleg10%
Gui, 2:Add, Picture, x22 y435 w170 h30 gHotkeysSave , Speichern.png
Gui, 2:Show, w775 h474, ICF-Binder [Hotkeys] %version%
return
HotkeysSave:
Gui,Submit,Nohide
Iniwrite, %EigeneHotkeyBeleg1%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg1
GuiControlGet, EigeneHotkeyBeleg1
Iniwrite, %EigeneHotkeyBeleg2%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg2
GuiControlGet, EigeneHotkeyBeleg2
Iniwrite, %EigeneHotkeyBeleg3%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg3
GuiControlGet, EigeneHotkeyBeleg3
Iniwrite, %EigeneHotkeyBeleg4%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg4
GuiControlGet, EigeneHotkeyBeleg4
Iniwrite, %EigeneHotkeyBeleg5%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg5
GuiControlGet, EigeneHotkeyBeleg5
Iniwrite, %EigeneHotkeyBeleg6%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg6
GuiControlGet, EigeneHotkeyBeleg6
Iniwrite, %EigeneHotkeyBeleg7%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg7
GuiControlGet, EigeneHotkeyBeleg7
Iniwrite, %EigeneHotkeyBeleg8%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg8
GuiControlGet, EigeneHotkeyBeleg8
Iniwrite, %EigeneHotkeyBeleg9%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg9
GuiControlGet, EigeneHotkeyBeleg9
Iniwrite, %EigeneHotkeyBeleg10%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkeyBeleg10
GuiControlGet, EigeneHotkeyBeleg10
Iniwrite, %EigeneHotkey1%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey1
GuiControlGet, EigeneHotkey1
Iniwrite, %EigeneHotkey2%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey2
GuiControlGet, EigeneHotkey2
Iniwrite, %EigeneHotkey3%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey3
GuiControlGet, EigeneHotkey3
Iniwrite, %EigeneHotkey4%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey4
GuiControlGet, EigeneHotkey4
Iniwrite, %EigeneHotkey5%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey5
GuiControlGet, EigeneHotkey5
Iniwrite, %EigeneHotkey6%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey6
GuiControlGet, EigeneHotkey6
Iniwrite, %EigeneHotkey7%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey7
GuiControlGet, EigeneHotkey7
Iniwrite, %EigeneHotkey8%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey8
GuiControlGet, EigeneHotkey8
Iniwrite, %EigeneHotkey9%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey9
GuiControlGet, EigeneHotkey9
Iniwrite, %EigeneHotkey10%, Eigene-Hotkeys.ini, Eigene-Hotkeys, EigeneHotkey10
GuiControlGet, EigeneHotkey10
;TrayTip, ICF-Binder - Eigene-Hotkeys, Hotkeys erfolgreich gespeichert
reload
return
EigeneHotkeyBeleg1:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg1 "")
return
EigeneHotkeyBeleg2:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg2 "")
return
EigeneHotkeyBeleg3:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg3 "")
return
EigeneHotkeyBeleg4:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg4 "")
return
EigeneHotkeyBeleg5:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg5 "")
return
EigeneHotkeyBeleg6:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg6 "")
return
EigeneHotkeyBeleg7:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg7 "")
return
EigeneHotkeyBeleg8:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg8 "")
return
EigeneHotkeyBeleg9:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg9 "")
return
EigeneHotkeyBeleg10:
if(IsInChat() == 1){
SendInput {%A_ThisHotkey%}
return
}
if(IsDialogOpen() == 1){
SendInput {%A_ThisHotkey%}
return
}
SendChat("" EigeneHotkeyBeleg10 "")
return
Alles anzeigen