Posts: 197
Threads: 60
Joined: Dec 2013
Hi
How do I let the user select files to manipulate? Eg macro waits for me to select 3 files that will then get resized. Thanks.
Posts: 12,091
Threads: 142
Joined: Dec 2002
Posts: 197
Threads: 60
Joined: Dec 2013
Thank you.
edit: Hwndowner - I can't find this in the help menu. How do I use this?
ps. I'm trying to select multiple files from the file explorer directly without opening additional dialog boxes, if possible.
Posts: 197
Threads: 60
Joined: Dec 2013
I tried opensavedialog. but it's not what I intended.
I'm trying to select multiple files inside windows explorer like this...
and then I need to get the filename + extension for each of the selected files.
Posts: 12,091
Threads: 142
Joined: Dec 2002
Macro
Macro2199
act win("" "CabinetWClass")
key Cc ;; Ctrl+C
ARRAY(str) a; int i
GetClipboardFiles a
for i 0 a.len
,out a[i]
Posts: 197
Threads: 60
Joined: Dec 2013
THANK YOU! Works perfectly!
Posts: 197
Threads: 60
Joined: Dec 2013
New problem,
I can't join some strings with the array that you gave.
I tried this
str namestart = "<img style=[[border-top-color:; border-bottom-color:; border-right-color:; border-left-color:[[ border=[[0[[ src="
str nameend = "[[>"
for i 0 a.len
out str namefull.from(namestart a[i] nameend)
I get this error - "missing ( after function name, or ; after statement."
note: I will replace the [[ later with " - it just wouldn't work otherwise with the " getting mixed up.
Posts: 12,091
Threads: 142
Joined: Dec 2002
Macro
Macro2202
str namestart =
;<img style="border-top-color:; border-bottom-color:; border-right-color:; border-left-color:" border="0" src="
str nameend = "''>"
for i 0 a.len
,str namefull.from(namestart a[i] nameend)
,out namefull
or
Macro
Macro2202
for i 0 a.len
,str namefull=
,F
,;<img style="border-top-color:; border-bottom-color:; border-right-color:; border-left-color:" border="0" src="{a[i]}">
,out namefull
Posts: 197
Threads: 60
Joined: Dec 2013
Thanks. It works perfectly.
What is F?
How did you get ; to work differently than commenting?
Posts: 12,091
Threads: 142
Joined: Dec 2002
Look in QM Help:
Numbers and strings