Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop on desktop macro shortcut
#1
when i drop files with only one word as filename on my macro88 shortcut on desktop, then i get
QM command line error: ...F:\tmp\tmp\Cleopatra.avi
when i add a whitespace after filename it works
F:\tmp\tmp\Cleopatra .avi

Macro Macro88
Code:
Copy      Help
out _command

the desktop icon is generated by qm.
("C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88")
pi
#2
If dropped file path is without spaces, Windows does not enclose it in double quotes. QM does not recognize such command line.

C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" "file with spaces, works"
C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" file_without_spaces_error
#3
Gintaras Wrote:If dropped file path is without spaces, Windows does not enclose it in double quotes. QM does not recognize such command line.

so you got any idea how to bypass this?
pi
#4
Create .exe instead. It receives command line through _command variable.
#5
found a way.

just add manually A to the shortcut
"C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" A

Macro Macro88
Code:
Copy      Help
function $files
out files

Big Grin Big Grin Big Grin
pi
#6
Or
C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" C -

When with C, enclosing in " is not necessary.
But when you double click, command line ends with C and nothing more. Error. Therefore i added -. Let macro remove it.
#7
Good thinking, i had double click not in mind.

Thanks!
pi


Forum Jump:


Users browsing this thread: 5 Guest(s)