get the selected items names from ListView Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Tomer
Posts: 254
Joined: 21 Aug 2016, 05:11

get the selected items names from ListView

24 May 2018, 03:39

i want to get the name\s of the selected items from the ListView,
ex: if i checked line2 & line4 then by clickin on "Show selected items" i'll get it this way:
"line2" "line4"

thanks in advance

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
jmeneses
Posts: 448
Joined: 28 Oct 2014, 11:09
Location: Catalan Republic

Re: get the selected items names from ListView  Topic is solved

24 May 2018, 04:35

Hello Tomer, try this

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Donec Perficiam
User avatar
Tomer
Posts: 254
Joined: 21 Aug 2016, 05:11

Re: get the selected items names from ListView

24 May 2018, 04:42

Amazing!
tnx jmeneses
User avatar
Tomer
Posts: 254
Joined: 21 Aug 2016, 05:11

Re: get the selected items names from ListView

27 May 2018, 08:00

any chance to omit the "c:\" from % names ?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
jmeneses
Posts: 448
Joined: 28 Oct 2014, 11:09
Location: Catalan Republic

Re: get the selected items names from ListView

27 May 2018, 10:19

Tomer wrote:any chance to omit the "c:\" from % names ?


I'm sorry but I do not understand your goal

Code: [Select all] [Download] GeSHi © Codebox Plus

For each, file in % StrSplit(RTrim(List, "|"), "|")
LV_Add(,substr(file,4))
Donec Perficiam
User avatar
Tomer
Posts: 254
Joined: 21 Aug 2016, 05:11

Re: get the selected items names from ListView

28 May 2018, 05:30

jmeneses wrote:
Tomer wrote:any chance to omit the "c:\" from % names ?


I'm sorry but I do not understand your goal

Code: [Select all] [Download] GeSHi © Codebox Plus

For each, file in % StrSplit(RTrim(List, "|"), "|")
LV_Add(,substr(file,4))


Thanks,
thats what I needed,
but i need the text which % names returns will be inside quotes (each item inside quotes)
ex: if i check from list these items: c:\line2 & c:\line4 ,
then % names will return exactly: "line2" "line4"

thanks for your help so far :)
User avatar
jmeneses
Posts: 448
Joined: 28 Oct 2014, 11:09
Location: Catalan Republic

Re: get the selected items names from ListView

28 May 2018, 06:42

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Donec Perficiam
User avatar
Tomer
Posts: 254
Joined: 21 Aug 2016, 05:11

Re: get the selected items names from ListView

28 May 2018, 10:44

wonderful!
ty jmeneses!

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot] and 47 guests