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 

Autorun
Goto page Previous  1, 2, 3 ... 191, 192, 193
 
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Loopback



Joined: 07 Sep 2009
Posts: 1544

Post (Separately) Posted: Wed Jul 02, 2025 00:51    Post subject: Reply with quote

AkulaBig wrote:
Как все-таки правильно запись делать?

Если имеется в виду текст с COMMANDER_PATH, находящийся в переменной ini_Buttonbar (например, %COMMANDER_PATH%\buttonbar.bar), то нужно раскрыть его с помощью Set:

Code:

# применение Set в ФЗ - раскрытие переменных вида %var% в переданном тексте
ini_Buttonbar = Set(ini_Buttonbar)


Можно и прямо в функциях, конечно:

Code:

Local Buttonbar = IniRead("~/R", Set(ini_Buttonbar), "Buttonbar", "Buttonbar", "")

# в КЗ используем вычисляемую строку
IniRead /R Buttonbar %"Set(ini_Buttonbar)" "Buttonbar" "Buttonbar" ""
Back to top
View user's profile Send private message
AkulaBig



Joined: 03 Dec 2008
Posts: 351

Post (Separately) Posted: Wed Jul 02, 2025 04:40    Post subject: Reply with quote

Loopback
Спасибо. То, что нужно. Единственное, что саму ini_Buttonbar я раскрыл:
Code:

Local ini_Buttonbar = IniGetSectionLocation(COMMANDER_INI, "Buttonbar")

А надо было раскрыть Buttonbar. Все получилось:
Code:

      Local Buttonbar = IniRead(ini_Buttonbar, "Buttonbar", "Buttonbar", "")
      SwitchIniSect(Set(Buttonbar), sect_Buttonbar, lng)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander All times are GMT + 4 Hours
Goto page Previous  1, 2, 3 ... 191, 192, 193
Page 193 of 193

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group