View Single Post
Old 03-27-10, 09:03 AM   #68
Flopper
Weps
 
Join Date: Jan 2010
Location: Asheville, NC, USA
Posts: 356
Downloads: 107
Uploads: 0
Default

Quote:
Originally Posted by JScones View Post
Would people prefer this option be *replaced* with a simple "Copy activated mods list to clipboard" task?
Either way is fine. IMO, the ultimate would be to just allow a normal highlight and copy from that (listbox?) with ctrl + c, and maybe throw a "copy" item on your right-click context menu. No idea what language you're using, but in case it's .net, here's the keystroke vb code ready to plug in:

Code:
Private Sub ListBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyDown
        If e.Control Then
            If e.KeyCode = Keys.C Then
                Dim strContents As String = ""
                For j As Integer = 0 To ListBox1.SelectedItems.Count - 1
                    strContents += ListBox1.SelectedItems(j).ToString & vbNewLine
                Next
                Clipboard.SetText(strContents)
            End If
        End If
    End Sub
__________________


Last edited by Flopper; 03-27-10 at 09:37 AM.
Flopper is offline