Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run function/macro from another program
#1
So I want to call macros from a program that is called from GlovePIE

The syntax to execute an exe is: Execute(filename, [arguments]), Chain(filename)
Don't know what Chain does.

QM command line to run a function/macro is:
run "c:\program files (x86)\quick macros 2\qmcl.exe" M "function"

So what can I put into the GlovePIE script?

I was even thinking about a simple program that would relay the function as an argument, but I can't figure out how to run a function in a QM exe using the run command. Funny.

-jim
#2
Depends on how the program parses Execute arguments. Should they be enclosed in ""? If yes, what is the escape sequence for " inside ""?

try

Execute(qmcl.exe, M "Function")

Execute("qmcl.exe", "Q ^ M ^Function^")

Execute(qmcl.exe, Q ^ M ^Function^)
#3
The second one works.

I really appreciate your experience. I would have never thought to put the ^ character in the arguments.

Thank you so much!

BTW, you should check out glovePIE if you haven't. You can interface with a lot of different control interfaces. Currently I am working to convert Wiimote motions to midi continuous control parameters where I am using QM to run macros that are too complicated to code in glovePIE.


Forum Jump:


Users browsing this thread: 1 Guest(s)