mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Use SendKeys to Execute the Opening Command on the Putty window after logged in + NEWLINE. Tested and working.
This commit is contained in:
@@ -203,6 +203,10 @@ namespace mRemoteNG.Connection.Protocol
|
||||
string.Format(Language.PanelHandle,
|
||||
InterfaceControl.Parent.Handle), true);
|
||||
|
||||
NativeMethods.SetForegroundWindow(PuttyHandle);
|
||||
var finalCommand = InterfaceControl.Info.OpeningCommand.TrimEnd() + "\n";
|
||||
SendKeys.SendWait(finalCommand);
|
||||
|
||||
Resize(this, new EventArgs());
|
||||
base.Connect();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user