sasha457
|
Posted: Wed Jun 06, 2012 21:51 Post subject: |
|
|
Написал скрипт с помощью AutoHotkey:
Code: | GetActivePanel()
{
ControlGetFocus, tcFocus
If( RegExMatch( tcFocus, "^TMyListBox1$" ) )
return 1
Else If( RegExMatch( tcFocus, "^TMyListBox2$" ) )
return 2
Else
return 0
}
#IfWinActive, ahk_class TTOTAL_CMD
vk46:: ; f
if(GetActivePanel())
Run, %A_ScriptDir%\\..\\totalcmd.exe /O /S "%Clipboard%"
Else
Send {vk46}
Return
#IfWinActive |
|
|