DonationCoder.com Software > Post New Requests Here
IDEA: Grab contents of an on-screen list
skrommel:
:) Try this script!
Save it as CopyListView.ahk, and download and install AutoHotkey.
Skrommel
--- ---;CopyListView.ahk
; Press F1 over a listview to copy the contents to the clipboard
;Skrommel @ 2007
#SingleInstance,Force
#NoEnv
AutoTrim,Off
columnseparator=%A_Tab% ; replace with your own separator tab = %A_Tab%
rowseparator=`n ; replace with your own separator newline = `n
F1::
MouseGetPos,mx,my,mwin,mctrl
ControlGet,list,List,,%mctrl%,ahk_id %mwin%
If columnseparator<>%A_Tab%
StringReplace,list,list,%A_Tab%,%columnseparator%,All
If rowseparator<>`n
StringReplace,list,list,`n,%rowseparator%,All
clipboard:=list
TrayTip,CopyListView,%list%
Return
Jimdoria:
Thank you both JoTo and Skrommel!
I'll use the AHK script first, then check out SysExporter when I have some time. Sounds like a good one to keep in the toolkit.
I appreciate the script because I am trying to learn AHK and it helps to see how the "pros" do it! :Thmbsup:
Navigation
[0] Message Index
[*] Previous page
Go to full version