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: Кнопка вкл\выкл "внутренние ассоциации" 
Author Message
mf-zl



PostPosted: Sun Apr 28, 2013 18:40    Post subject: AHK_L переключение ассоциаций без перезапуска TC Reply with quote

AHK_L переключение ассоциаций без перезапуска TC:
Code:
#SingleInstance off
SetBatchLines, -1
SetKeyDelay, -1
SetWinDelay, -1

IniRead, RedirectAssociations, % COMMANDER_INI, Associations, RedirectSection, 0
Transform, INI, Deref, % (RedirectAssociations ? RedirectAssociations : COMMANDER_INI)
IniRead, Associations, % INI, Associations
If StrLen(Associations) < 65531 {
  IniRead, _d, % INI, % (Asc(Associations) ? "" : "-") "Associations"
  IniWrite, % _d, % INI, % (Asc(Associations) ? "-" : "") "Associations"
  IniDelete, % INI, % (Asc(Associations) ? "" : "-") "Associations"
  PostMessage, 1075, 519, 0,, ahk_class TTOTAL_CMD
  WinWait, ahk_class TDlgCustomColors
  If !ErrorLevel
    ControlClick, TButton2,,,, 2
} Else, MsgBox, Error: associations reached 64Kb section limit!


Last edited by mf-zl on Mon Apr 29, 2013 03:46; edited 7 times in total
View user's profile Send private message Visit poster's website


Powered by phpBB © 2001, 2005 phpBB Group