LonerD
 
  
 
  | 
		
			
				 Posted: Sun Nov 10, 2024 17:57    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				У меня такой был на 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-α | 
			 
		  |