yahuu
|
Posted: Tue Sep 17, 2024 08:38 Post subject: |
|
|
SendCommand and IniWrite do not support variables, right?
Code: |
SetHotkeyAction /K:A /H:F12 SwitchCmd Switch_cm_SrcShort cm_SrcShort cm_SrcComments
Func SwitchCmd(sectionName, cmd1, cmd2)
IniRead executed %COMMANDER_INI% sectionName "executed"
If executed = cmd1 Then
SendCommand cmd2
IniWrite %COMMANDER_INI% sectionName "executed" cmd2
Else
SendCommand cmd1
IniWrite %COMMANDER_INI% sectionName "executed" cmd1
EndIf
EndFunc
|
|
|