Azaret / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

Function to start a PuTTY session w/o having a SuperPuTTY session #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The single feature I miss the most in SuperPuTTY compared to PuTTY CM is the 
possibilty to start a session by simply specifying hostname, username, pwd etc. 
without having to create a SuperPuTTY session. In my job I have to login to 
many different hosts so if I would create a SuperPuTTY session for each and 
every host my session tree would become too large to handle. 
So I have downloaded the sources and built a dialog for that purpose based on 
dlgEditSession. I have called that dialog QuickSession and added a menu item 
for it in the dropdown menu for folders in the session tree. I will attach a 
zip file with the .cs, .Designer.cs and .resx file of the dialog. Perhaps 
something similar could be built into SuperPuTTY.

PS: Thanks for the great work on the program!

Original issue reported on code.google.com by breker.c...@gmail.com on 20 Apr 2012 at 8:58

Attachments:

GoogleCodeExporter commented 9 years ago
My code for the new menu item looks like this:

        private void quickSessionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            dlgQuickSession dialog = new dlgQuickSession();
            if (dialog.ShowDialog(this) == DialogResult.OK && dialog.ConnectData != null)
            {
                ctlPuttyPanel sessionPanel = null;
                sessionPanel = NewPuttyPanel(dialog.ConnectData);
                sessionPanel.Show(m_DockPanel, dialog.ConnectData.LastDockstate);
                SuperPuTTY.ReportStatus("Opened session: {0} [{1}]", dialog.ConnectData.SessionId, dialog.ConnectData.Proto);
            }
        }

Original comment by breker.c...@gmail.com on 20 Apr 2012 at 9:02

GoogleCodeExporter commented 9 years ago
I'm implementing the connection host bar which should cover this use case

Original comment by btatey...@gmail.com on 22 Apr 2012 at 8:35

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by breker.c...@gmail.com on 25 Apr 2012 at 9:16