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
LonerD



PostPosted: Sun Nov 10, 2024 17:57    Post subject: Reply with quote

У меня такой был на AHK.
Code:
#NoEnv
#NoTrayIcon
#SingleInstance force
SetBatchLines, -1
if not ( WinExist("ahk_class TTOTAL_CMD") || WinActive("ahk_class TTOTAL_CMD") )
  ExitApp
WinGet, hw_TTOTAL_CMD, ID, A
TargetFile := Clipboard
EnvGet, commander_exe, commander_exe
if FileExist(TargetFile)
{
  DllCall("LockWindowUpdate", "uint", hw_TTOTAL_CMD)
  if InStr(FileExist(TargetFile), "D")
    RunWait, %commander_exe% /O /S /P /L="%TargetFile%"
      else
        RunWait, %commander_exe% /O /S /A /L="%TargetFile%"
  DllCall("LockWindowUpdate", "uint", 0)
}
ExitApp

_________________
Windows 11 | TC DreamLair eternal pre-α
View user's profile Send private message Visit poster's website ICQ Number


Powered by phpBB © 2001, 2005 phpBB Group