Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP!
#1
Im trying to make a macro that will tell me I am already running a macro and that it will not run the second macro and the QM Message box will come up telling me that u have any idea how to make?
#2
not an answer to your question, but a general hint:

Quick Macros :: View topic - Before you post, read this (absolutely necessary)!
Forum rules and tips

Quote:In your post

- The Subject field is important. Only few of us will read your message if the subject says nothing (e.g., "need help”, “question”).
pi
#3
try these links for info on using global variables to help.
WatchDog Thread

Pausing a Function/Macro
An old blog on QM coding and automation.

The Macro Hook
#4
Convert it to function and insert this at the beginning:

Code:
Copy      Help
if(getopt(nthreads 3)>1) mes- "already running"
#5
how would i end Macro9 and Dialog2 ?

function Macro9
Code:
Copy      Help
if(getopt(nthreads 3)>1) shutdown ???
str controls = "3 4 5"
str rea3url rea4siz e5tit
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret
pi
#6
Dialog2 runs in the same thread and is automatically closed when Macro9 ends.
#7
Macro9
Code:
Copy      Help
if(getopt(nthreads 3)>1) shutdown -7
str controls = "3 4 5"
str rea3url rea4siz e5tit
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret

so it is -7, right ?
pi
#8
To end this thread it will be ret or end. To end previous thread, it will be clo "Dialog2 dialog title".


Forum Jump:


Users browsing this thread: 4 Guest(s)