Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using parameter passed from external program
#4
1. Make a macro named "HandleFilename"
2. In FileWatcher, put as application (instead of batch program): "c:\program files (x86)\quick macros\qmcl.exe" M "HandleFilename" "%1"
3. In macro "HandleFilename", write the code

mes F" {_command} "
out F" {_command} "

Mes is a message box, out writes in the bottom box of code lines.

Not tested as i don't own FileWatcher, but it's a general framework for this.

BTW, function HandleFilename can be triggered by a folder monitoring event and
gives directly file modified, no 3rd party hassle. Look into properties (ctrl+P), trigger of the function, choose file and fill as needed.
You'll have code done automagically by QM like

\
function event $name [$newname]
event: 1 added, 2 removed, 4 renamed, 8 modified -> choose when act
out F"{event} {name}" -> say filename in bottom window

mes F" {name} " (added by me, you can use the filename as wished)


{name} is the filename you can use for action..

HTH


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)