Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] allow user to select files to manipulate
#1
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.
#2
Function OpenSaveDialog.
#3
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.
#4
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.
#5
Macro Macro2199
Code:
Copy      Help
act win("" "CabinetWClass")
key Cc ;; Ctrl+C
ARRAY(str) a; int i
GetClipboardFiles a
for i 0 a.len
,out a[i]
#6
THANK YOU! Works perfectly!
#7
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.
#8
Macro Macro2202
Code:
Copy      Help
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
Code:
Copy      Help
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
#9
Thanks. It works perfectly.

What is F?
How did you get ; to work differently than commenting?
#10
Look in QM Help:
Numbers and strings


Forum Jump:


Users browsing this thread: 1 Guest(s)