Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable Macro File
#1
Hello, i need to make a macro that will enable another macro wen a hot key is pressed...cant figure it out w/o using lefs Sad
#2
read:

If key is pressed

Wait for event


Code:
Copy      Help
rep
,out "Press F1 for help"
,ifk(F1)
,,out
,,break
pi
#3
hello, i read both of those in the help and neither does quite what i am looking for maybe i need to explain again lol...

i need to write something so that wen it is triggered it will enable a different macro

is it possible?
#4
When you explain what you want, it would be nice if you could be a little more specific on what you want, rather then using words such as
Quote:i need to write something
Try to explain what you want to write or give examples and you will probably get help faster, or show your code and we can help you from there.
#5
Are you wanting something like:

Macro1:
Code:
Copy      Help
rep
,ifk(F1)
,,mac "Macro2"
,,break


or


Code:
Copy      Help
rep 1
,mac- "Macro2"


Are you wanting anything like either of these?
#6
YOUR CODE JUST RUNS THE MACRO...I NEED IT TO ENABLE THE MACRO
#7
What exactly are you meaning by enabling the macro?
#8
Quote:int hwnd=val(_command)



out "CLOSERS_ACTIVATED"

Well, if i understand right then why not just use:

Code:
Copy      Help
int hwnd=val(_command)

out "CLOSERS_ACTIVATED"
mac "Macro1"
mac- "Macro2"

That way when that main macro is triggered then it triggers the other 2 macros?
#9
NEVERMIND TYHANK YOU FOR YOUR HELP BUT I FIGURED IT OUT...ENABLING A MACRO BY RIGHT CLICKING IT AND HITTING ENABLE WELL I WAS TRYING TO MAKE SUMTIN TO ENABLE IT W/O USING LEFS.

TY FOR THE HELP THO
#10
OK, no problem but now I get what your saying... Just simply use:
dis- "Macro" ;; enable macro
dis+ "Macro" ;;disable macro
#11
i have two extra toolbars attached to the qm editor.
one button is for en/disabling the current macro.

Code:
Copy      Help
dis _s.getmacro("" 1)

***
Contributors should avoid the use of all CAPITAL LETTERS in posts. ALL CAPS is considered "shouting" and causes readability issues.
pi
#12
ok sorry pi...and yes qm assistant that is exactly what i needed got it now ty


Forum Jump:


Users browsing this thread: 1 Guest(s)