Hey, hab dir ma eben was fertig gemacht, guck dir das mal an... Bei Fragen, hau raus
#SingleInstance, force
#NoEnv
IniRead, outkey1, Key.ini, Hotkeys,Key1
IniRead, HotkeyCMD1, Key.ini,HkCMDS,HotkeyCMD1
IniRead, outkey2, Key.ini, Hotkeys,Key2
IniRead, HotkeyCMD2, Key.ini,HkCMDS,HotkeyCMD2
IniRead, outkey3, Key.ini, Hotkeys,Key3
IniRead, HotkeyCMD3, Key.ini,HkCMDS,HotkeyCMD3
IniRead, outkey4, Key.ini, Hotkeys,Key4
IniRead, HotkeyCMD4, Key.ini,HkCMDS,HotkeyCMD4
IniRead, outkey5, Key.ini, Hotkeys,Key5
IniRead, HotkeyCMD5, Key.ini,HkCMDS,HotkeyCMD5
Hotkey, %outkey1%,TestKey1
Hotkey, %outkey2%,TestKey2
Hotkey, %outkey3%,TestKey3
Hotkey, %outkey4%,TestKey4
Hotkey, %outkey5%,TestKey5
Gui, Add, Hotkey, x12 y5 w60 h20 vGui_Hotkey1,%outkey1%
Gui, Add, Hotkey, x12 y+5 w60 h20 vGui_Hotkey2,%outkey2%
Gui, Add, Hotkey, x12 y+5 w60 h20 vGui_Hotkey3,%outkey3%
Gui, Add, Hotkey, x12 y+5 w60 h20 vGui_Hotkey4,%outkey4%
Gui, Add, Hotkey, x12 y+5 w60 h20 vGui_Hotkey5,%outkey5%
Gui, Add, Edit, x82 y5 w170 h20 vGui_HkCMD1,%HotkeyCMD1%
Gui, Add, Edit, x82 y+5 w170 h20 vGui_HkCMD2,%HotkeyCMD2%
Gui, Add, Edit, x82 y+5 w170 h20 vGui_HkCMD3,%HotkeyCMD3%
Gui, Add, Edit, x82 y+5 w170 h20 vGui_HkCMD4,%HotkeyCMD4%
Gui, Add, Edit, x82 y+5 w170 h20 vGui_HkCMD5,%HotkeyCMD5%
Gui, Add, Button, x12 y+5 w240 h20 gSave, Speichern
Gui, Show, CENTER, Hotkey Test
Return
GuiClose:
ExitApp
Save:
Gui,Submit,Nohide
IniWrite, %Gui_Hotkey1%, Key.ini, Hotkeys,Key1
IniWrite, %Gui_HkCMD1%, Key.ini, HkCMDS,HotkeyCMD1
IniWrite, %Gui_Hotkey2%, Key.ini, Hotkeys,Key2
IniWrite, %Gui_HkCMD2%, Key.ini, HkCMDS,HotkeyCMD2
IniWrite, %Gui_Hotkey3%, Key.ini, Hotkeys,Key3
IniWrite, %Gui_HkCMD3%, Key.ini, HkCMDS,HotkeyCMD3
IniWrite, %Gui_Hotkey4%, Key.ini, Hotkeys,Key4
IniWrite, %Gui_HkCMD4%, Key.ini, HkCMDS,HotkeyCMD4
IniWrite, %Gui_Hotkey5%, Key.ini, Hotkeys,Key5
IniWrite, %Gui_HkCMD5%, Key.ini, HkCMDS,HotkeyCMD5
Hotkey, %Gui_Hotkey1%,TestKey1
Hotkey, %Gui_Hotkey2%,TestKey2
Hotkey, %Gui_Hotkey3%,TestKey3
Hotkey, %Gui_Hotkey4%,TestKey4
Hotkey, %Gui_Hotkey5%,TestKey5
return
TestKey1:
IniRead, HotkeyCMD1, Key.ini,HkCMDS,HotkeyCMD1
MsgBox 1 Funktioniert auf %A_ThisHotkey% CMD: %HotkeyCMD1%
return
TestKey2:
IniRead, HotkeyCMD2, Key.ini,HkCMDS,HotkeyCMD2
MsgBox 2 Funktioniert auf %A_ThisHotkey% CMD: %HotkeyCMD2%
return
TestKey3:
IniRead, HotkeyCMD3, Key.ini,HkCMDS,HotkeyCMD3
MsgBox 3 Funktioniert auf %A_ThisHotkey% CMD: %HotkeyCMD3%
return
TestKey4:
IniRead, HotkeyCMD4, Key.ini,HkCMDS,HotkeyCMD4
MsgBox 4 Funktioniert auf %A_ThisHotkey% CMD: %HotkeyCMD4%
return
TestKey5:
IniRead, HotkeyCMD5, Key.ini,HkCMDS,HotkeyCMD5
MsgBox 5 Funktioniert auf %A_ThisHotkey% CMD: %HotkeyCMD5%
return
Alles anzeigen