The non-standard question is on a subject of job with a remote host.
Let's assume that we pass to a remote host the type command:
cd \\<ip-address or NetBIOS-name>,
entering it in the command line of TC.
Having worked on a remote host, “we come back”, repeatedly clicking the button of the mouse or pressing Enter key on [..] - return level upwards. When we reach "top level" of a host, by default we come back in “regular network neighborhood” of the Commander - workgroup by Windows Browser.
Whether there is a way to call substitution (or somehow differently) other plugin (either the button, or the command) instead of “regular network neighborhood” ?
There is a decision by means of AutoHotKey:
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
LButton::
If not(A_ThisHotkey = A_PriorHotkey and A_TimeSincePriorHotkey < 300) {
Click Down
KeyWait, LButton
Click Up
return
}
Enter::
NumpadEnter::
ControlGetFocus, Active_Panel, ahk_class TTOTAL_CMD
If Active_Panel = TMyListBox2
ControlGetText, Panel_Text, TPathPanel1
If Active_Panel = TMyListBox1
ControlGetText, Panel_Text, TPathPanel2
FoundPos := RegExMatch(Panel_Text, "\\\\[a-zA-Z0-9_-\s\(\)]+\\\*\.\*")
If (FoundPos = 1) {
SendMessage, 1075, 4003,,, ahk_class TTOTAL_CMD
ControlSend, Edit1, ^{Enter}+{Home}^{Ins}, ahk_class TTOTAL_CMD
SendMessage, 1075, 2004,,, ahk_class TTOTAL_CMD
StringTrimRight, Host, clipboard, 1
If (Host = "..") {
SendMessage, 1075, 1001,,, ahk_class TTOTAL_CMD
ControlSetText, Edit1, cd \\\net, ahk_class TTOTAL_CMD
ControlSend, Edit1, {Enter}, ahk_class TTOTAL_CMD
}
else
SendMessage, 1075, 1001,,, ahk_class TTOTAL_CMD
clipboard =
}
else
ControlSend, Edit1, {Enter}, ahk_class TTOTAL_CMD
Shortly the question sounds so:
"To catch the moment of return from a host and automatic to transfer control not on regular network neighborhood, but to other plugin".