Ich versuche mich seit kurzem daran einen eingenen Keybinder zu scripten und hab das Problem das ich die Hotkeys nicht gespeichert werden und ich nicht weiß wie ich sie dann ingame ausgeben kann
Vielleicht könnt ihr mir helfen
IfNotExist, %A_MyDocuments%\Pinkman-Keybinder\
{
FileCreateDir, %A_MyDocuments%\Pinkman-Keybinder
}
version = 1.0
Gui, Add, Picture, x-8 y0 w640 h380 , %Stammverzeichnis%background.jpg
Gui, Add, Button, x2 y10 w100 h30 gKeybinds, Keybinds
Gui, Add, Button, x122 y10 w100 h30 gTextbinds, Textbinds
Gui, Add, Button, x242 y10 w100 h30 gEinstellungen, Einstellungen
Gui, Add, Button, x2 y350 w90 h20 , Changelog
Gui, Show, x322 y233 h375 w630, Pinkman Family Keybinder %version%
Return
GuiClose:
ExitApp
Einstellungen:
Gui, 2: Add, Picture, x-44 y0 w676 h380 , %Stammverzeichnis%background.jpg
Gui, 2: Add, Text, x22 y30 w170 h20 +BackgroundTrans, Name:
Gui, 2: Add, Edit, x22 y50 w170 h20 , Edit
Gui, 2: Add, Button, x232 y320 w180 h30 , Speichern
Gui, 2: Show, x330 y197 h369 w624, Pinkman Family Keybinder | Einstellungen %version%
Return
IniRead, key1, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key1
IniRead, key2, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key2
IniRead, key3, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key3
IniRead, key4, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key4
IniRead, key5, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key5
IniRead, key6, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key6
IniRead, key7, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key7
IniRead, key8, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key8
IniRead, key9, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key9
IniRead, key10, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key10
IniRead, key11, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key11
IniRead, key12, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key12
IniRead, key13, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key13
IniRead, key14, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key14
IniRead, key15, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key15
IniRead, key16, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key16
IniRead, key17, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key17
IniRead, key18, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key18
IniRead, key19, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key19
IniRead, key20, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key20
IniRead, hotkey1, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey1
IniRead, hotkey2, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey2
IniRead, hotkey3, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey3
IniRead, hotkey4, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey4
IniRead, hotkey5, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey5
IniRead, hotkey6, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey6
IniRead, hotkey7, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey7
IniRead, hotkey8, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey8
IniRead, hotkey9, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey9
IniRead, hotkey10, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey10
IniRead, hotkey11, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey11
IniRead, hotkey12, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey12
IniRead, hotkey13, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey13
IniRead, hotkey14, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey14
IniRead, hotkey15, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey15
IniRead, hotkey16, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey16
IniRead, hotkey17, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey17
IniRead, hotkey18, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey18
IniRead, hotkey19, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey19
IniRead, hotkey20, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey20
Keybinds:
Gui, 3: Add, Picture, x-64 y-30 w916 h410 , %Stammverzeichnis%background.jpg
Gui, 3: Add, Hotkey, x12 y20 w70 h20 vhotkey1, %hotkey1%
Gui, 3: Add, Edit, x82 y20 w230 h20 vkey1, %key1%
Gui, 3: Add, Hotkey, x12 y40 w70 h20 vhotkey2, %hotkey2%
Gui, 3: Add, Edit, x82 y40 w230 h20 vkey2, %key2%
Gui, 3: Add, Hotkey, x12 y60 w70 h20 vhotkey3, %hotkey3%
Gui, 3: Add, Edit, x82 y60 w230 h20 vkey3, %key3%
Gui, 3: Add, Hotkey, x12 y80 w70 h20 vhotkey4, %hotkey4%
Gui, 3: Add, Edit, x82 y80 w230 h20 vkey4, %key4%
Gui, 3: Add, Hotkey, x12 y100 w70 h20 vhotkey5, %hotkey5%
Gui, 3: Add, Edit, x82 y100 w230 h20 vkey5, %key5%
Gui, 3: Add, Hotkey, x12 y120 w70 h20 vhotkey6, %hotkey6%
Gui, 3: Add, Edit, x82 y120 w230 h20 vkey6, %key6%
Gui, 3: Add, Hotkey, x12 y140 w70 h20 vhotkey7, %hotkey7%
Gui, 3: Add, Edit, x82 y140 w230 h20 vkey7, %key7%
Gui, 3: Add, Hotkey, x12 y160 w70 h20 vhotkey8, %hotkey8%
Gui, 3: Add, Edit, x82 y160 w230 h20 vkey8, %key8%
Gui, 3: Add, Hotkey, x12 y180 w70 h20 vhotkey9, %hotkey9%
Gui, 3: Add, Edit, x82 y180 w230 h20 vkey9, %key9%
Gui, 3: Add, Hotkey, x12 y200 w70 h20 vhotkey10, %hotkey10%
Gui, 3: Add, Edit, x82 y200 w230 h20 vkey10, %key10%
Gui, 3: Add, Hotkey, x322 y20 w70 h20 vhotkey11, %hotkey11%
Gui, 3: Add, Edit, x392 y20 w220 h20 vkey11, %key11%
Gui, 3: Add, Hotkey, x322 y40 w70 h20 vhotkey12, %hotkey12%
Gui, 3: Add, Edit, x392 y40 w220 h20 vkey12, %key12%
Gui, 3: Add, Hotkey, x322 y60 w70 h20 vhotkey13, %hotkey13%
Gui, 3: Add, Edit, x392 y60 w220 h20 vkey13, %key13%
Gui, 3: Add, Hotkey, x322 y80 w70 h20 vhotkey14, %hotkey14%
Gui, 3: Add, Edit, x392 y80 w220 h20 vkey14, %key14%
Gui, 3: Add, Hotkey, x322 y100 w70 h20 vhotkey15, %hotkey15%
Gui, 3: Add, Edit, x392 y100 w220 h20 vkey15, %key15%
Gui, 3: Add, Hotkey, x322 y120 w70 h20 vhotkey16, %hotkey16%
Gui, 3: Add, Edit, x392 y120 w220 h20 vkey16, %key16%
Gui, 3: Add, Hotkey, x322 y140 w70 h20 vhotkey17, %hotkey17%
Gui, 3: Add, Edit, x392 y140 w220 h20 vkey17, %key17%
Gui, 3: Add, Hotkey, x322 y160 w70 h20 vhotkey18, %hotkey18%
Gui, 3: Add, Edit, x392 y160 w220 h20 vkey18, %key18%
Gui, 3: Add, Hotkey, x322 y180 w70 h20 vhotkey19, %hotkey19%
Gui, 3: Add, Edit, x392 y180 w220 h20 vkey19, %key19%
Gui, 3: Add, Hotkey, x322 y200 w70 h20 vhotkey20, %hotkey20%
Gui, 3: Add, Edit, x392 y200 w220 h20 vkey20, %key20%
Gui, 3: Add, Button, x252 y250 w150 h30 gSave, Speichern
Gui, 3: Show, x571 y207 h369 w624, Pinkman Family Keybinder | Keybinds %version%
Return
3GuiClose:
Gui, Destroy
return
; Speichern:
;Gui,Submit,Nohide
;IniWrite, %name%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen, name
;Text Befehle
Save:
GuiControlGet, key1 ,,key1
GuiControlGet, hotkey1 ,,hotkey1
If(Hotkey1 !="")
Hotkey, %hotkey1%, hotkey1
IniWrite, %key1%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key1
IniWrite, %key2%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key2
IniWrite, %key3%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key3
IniWrite, %key4%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key4
IniWrite, %key5%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key5
IniWrite, %key6%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key6
IniWrite, %key7%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key7
IniWrite, %key8%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key8
IniWrite, %key9%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key9
IniWrite, %key10%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key10
IniWrite, %key11%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key11
IniWrite, %key12%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key12
IniWrite, %key13%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key13
IniWrite, %key14%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key14
IniWrite, %key15%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key15
IniWrite, %key16%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key16
IniWrite, %key17%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key17
IniWrite, %key18%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key18
IniWrite, %key19%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key19
IniWrite, %key20%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, key20
;hotkeys
IniWrite, %hotkey1%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey1
IniWrite, %hotkey2%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey2
IniWrite, %hotkey3%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey3
IniWrite, %hotkey4%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey4
IniWrite, %hotkey5%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey5
IniWrite, %hotkey6%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey6
IniWrite, %hotkey7%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey7
IniWrite, %hotkey8%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey8
IniWrite, %hotkey9%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey9
IniWrite, %hotkey10%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey10
IniWrite, %hotkey11%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey11
IniWrite, %hotkey12%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey12
IniWrite, %hotkey13%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey13
IniWrite, %hotkey14%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey14
IniWrite, %hotkey15%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey15
IniWrite, %hotkey16%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey16
IniWrite, %hotkey17%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey17
IniWrite, %hotkey18%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey18
IniWrite, %hotkey19%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey19
IniWrite, %hotkey20%, %A_MyDocuments%\Pinkman-Keybinder\Keybinds.ini, Einstellungen:, hotkey20
TrayTip, Alles wurde erfolgreich Gespeichert
Return
hotkey1:
SendInput tTest{enter}
sendChat("" . key1 . "")
Textbinds:
Gui, 4: Add, Picture, x-32 y-10 w854 h400 , %Stammverzeichnis%background.jpg
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x242 y20 w110 h30 +BackgroundTrans, Textbinds
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y80 w280 h20 +BackgroundTrans, /rc - /rentcar
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y100 w280 h20 +BackgroundTrans, /uc - /unrentcar
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y120 w280 h20 +BackgroundTrans, /bd - /buydonut 10
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y140 w280 h20 +BackgroundTrans, /ed -/eatdonut
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y160 w280 h20 +BackgroundTrans, /ff - /fastfood [ID] 1
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y180 w280 h20 +BackgroundTrans, /sex - /sex [ID] 1
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y200 w280 h20 +BackgroundTrans, /mi - /mission info
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y220 w280 h20 +BackgroundTrans, /gi - /gebietinfo
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y240 w280 h20 +BackgroundTrans, /staxi /smedic /soamt /swh /smech /spizza - Service
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x52 y260 w280 h20 +BackgroundTrans, /ctaxi /cmedic /coamt /cwh /cmecha /cpizza - Servie
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y80 w240 h20 +BackgroundTrans, /25k /50k /100k /200k /500k /1kk
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y100 w240 h20 +BackgroundTrans, /f90 /f20 - FPS Limit auf 90 oder 20 setzen
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y120 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y140 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y160 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y180 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y200 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y220 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y240 w240 h20 +BackgroundTrans,
Gui, 4: Font, cFFFFFF
Gui, 4: Add, Text, x332 y260 w240 h20 +BackgroundTrans,
Gui, 4: Show, x499 y232 h369 w624, Pinkman Family Keybinder | Textbinds %version%
Return
#include samp.ahk
#SingleInstance, Force
#UseHook, On
#IfWinActive, GTA:SA:MP
#NoEnv
Alles anzeigen