Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to have a certain key to stop a macro
#1
Ok I was wondering how to have a certain key to stop the macro instead of using pause break on the key board like using F8 or something can some one please help me? Thank you.
#2
http://www.quickmacros.com/help/Commands/IDP_WAIT.html
try here for and look for the "keystroke" event. that'll do it, however, break will always stop a macro but not a function.
An old blog on QM coding and automation.

The Macro Hook
#3
Method 1: Set the hotkey in Options.

Method 2: Create a function, insert

shutdown -6

or

shutdown -6 0 "macro name"

and assign the hotkey as trigger.
#4
Quote:Hey i have a couple of questions... Ok first how can I make a macro or
function have a box come up asking if I want to stop a macro when I hit
a selected key? Also how can I make a macro or function display in
quick macros when the macro started and how long the macro ran for?
...
I'm Sorry I found something similar to what i was asking but i was wondering how to make a macro or function paste the time it ran(seconds, minutes, hours, days) and also for how to make a macro or function be turned off by holding a key... Like i said im sorry but i couldnt find exactly what i was looking for inside of the forum.
...
im sorry i also forgot to say my friend made a macro that when you hold (F12) a box will pop up asking if you would like to end "Macro1"... and im not sure how he did it please help me.

At the beginning of the macro insert this:
Code:
Copy      Help
DATE+ g_macro_started_date
g_macro_started_date.getclock

Create a function:
Code:
Copy      Help
DATE+ g_macro_started_date
DATE d.getclock
d=d-g_macro_started_date
str s1(g_macro_started_date) s2(d)
mes- "started %s, ran %s.[][]Press Yes to end." "" "YN" s1 s2
shutdown -6 0 "replace this with real macro name"

Assign the function a trigger, eg F12. This function shows macro times and ends the macro if you press Yes.


Forum Jump:


Users browsing this thread: 1 Guest(s)