View Single Post
10-09-19, 10:14 PM   #1
phrenetic
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 5
understanding the ESC function in a macro

hey guys,

i would like to ask for your help, since i'm struggling with quite an easy to implement function for ESC key to close already open frame. Let's cut to the chase, i'm having the following macro:

Code:
/run LoadAddOn("Blizzard_AzeriteEssenceUI")
/run AzeriteEssenceUI:ClearAllPoints()
/run AzeriteEssenceUI:SetPoint("CENTER",0, 0)
/run local b=AzeriteEssenceUI if b:IsShown() then b:Hide() else b:Show() end
basically, it opens the Heart of Azeroth's essence UI (using it just as a shortcut, yeah) and allows you interaction. it's working totally fine, but ESC key doesn't cover this frame. anyone can give me advice? i prefer a macro only, cause it's Xpac related UI, and i really need the knowledge (ex. proper handling of tinsert() function in a macro)

Highly appreciate any answer ty in advance
  Reply With Quote