이 사이트는 자바스크립트를 사용합니다.
브라우저에서 자바스크립트를 활성화 해주십시오.
라이브
PTR
10.2.7
PTR
10.2.6
베타
Call macro from another macro - is it possible?
답글 달기
보드 인덱스로 돌아가기
LoqueNahak
의 게시글
Is there a way to call macro1 from macro2, without placing macro2 on the action bars?
Say
macro1
is like this:
/whisper Bob hello
and
macro2
is:
/executemacro
macro1
So if I click
macro2
it calls
macro1
and whispers "hello" to Bob.
pelf
의 게시글
You have to simulate clicks on a button that has the second macro assigned to it.
/click ButtonName
I think this is in one of the recent sticky type messages ... Wildhorn's? He even listed some of the common button frame names.
Wildhorn
의 게시글
Yeah, read my guide or die trying!
LoqueNahak
의 게시글
without placing macro2 on the action bars
That's why I asked, I know you can do the button way but I hoped for a
direct macro call inside the macro code
, thanks anyway.
pelf
의 게시글
Hmm, -1 reading comprehension for pelf.
What's the root cause for why you're asking? There might be another solution.
RedwoodElf
의 게시글
Problem is, the ability to chain macros from within macros without using /click, isn't supported. There's no /usemacrobyname(macroName) function, at least I don't see one in the API.
You could, however, write a mini-addon that contains all the macros you want to use and implements them as slash commands, but NOT if they cast any spells, since spell casting is protected. For spell casting, you're pretty much stuck with /click. Your example would work, but not if Macro2 was, for example
/cast fireball
답글 달기
로그인이 되어있지 않습니다. 답글을 달려면
로그인
하거나, 계정이 없다면
회원가입
을 해 주세요.