Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I integrate compiled .NET code with QuickMacros?
#6
To run macro at a certain time, in Properties click Schedule, and create scheduled task.

To run macro when certain file is created, create function like this:

Code:
Copy      Help
str s.expandpath("$desktop$\test2.txt")
rep
,if(dir(s)) break
,1

mes "created"

To run it when QM starts, insert this in the init2 function:

mac "FunctionName"

Here is another version:
Code:
Copy      Help
str s.expandpath("$desktop$\test2.txt")

rep
,;wait until deleted
,rep
,,if(!dir(s)) break
,,1
,,
,;wait until created
,rep
,,1
,,if(dir(s)) break
,
,mac "MacroName"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)