Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Autorun 
Author Message
yahuu



PostPosted: Tue Sep 17, 2024 08:38    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail


Powered by phpBB © 2001, 2005 phpBB Group