promotional bannermobile promotional banner

CandyEnterHook

What it Says - PiggyBacks off the Chat keybinds (Chatbox Texture Aura) This is a small addon to get a texture to load when opening and closing your chatbox.
the working WA texture using the addon

the working WA texture using the addon

Description

CandyEnterHook

What it says on the tin: piggybacks off the chat keybinds so you can show/hide a WeakAuras texture when the chat box opens/closes.
Perfect for a “Chatbox Texture Aura”, stream overlays, or any reactive UI candy.

What it does

  • Hooks the default chat edit box (open/close).

  • Fires custom events you can listen to in WeakAuras.

  • No options, no taint, microscopic footprint. Install → done.


How to use (WeakAuras)

Create a Texture (or any display) in WA, then set the trigger like this:

Trigger → Custom → Event
Event(s):

 
CANDY_UI_SHOW, CANDY_UI_HIDE, PLAYER_ENTERING_WORLD

Custom Trigger:

 
function(event) aura_env.visible = aura_env.visible or false if event == "CANDY_UI_SHOW" then aura_env.visible = true return true elseif event == "CANDY_UI_HIDE" then aura_env.visible = false return false elseif event == "PLAYER_ENTERING_WORLD" then return aura_env.visible -- remember state across /reload if you want end end

Custom Untrigger:

 
function() return not aura_env.visible end

Load:
Make sure it’s Always (no boxes ticked).

Result:
Press Enter → chat opens and WA shows (one press).
Send message (Enter) or close chat (Esc/click) → chat closes and WA hides (no extra presses).


Extra notes (for tinkerers)

  • This addon is tiny on purpose. If you know code, you can adapt the pattern to other functions that are bound by “hard-locked” keybinds and broadcast your own events.

  • If you fork the event names, just swap them in your WA trigger.

Installation

  1. Drop the CandyEnterHook folder into Interface/AddOns/

  2. /reload

  3. Build the WA and werk.

Compatibility & Performance

  • Works with the default chat and any UI using the standard ChatEdit frame (plays nice with SUI and skins — it only listens).

  • Virtually zero CPU; just a couple of show/hide hooks.

Issues / Requests

Open a ticket on GitHub or ping me on CurseForge. If you want extras (typing start/stop, whisper focus, etc.), I can ship more signals.


Why did I make these addons? for my own personal usage but sharing them incase they help others with creativity too :) 
Check out my WoW Challenge : https://candyblk95.github.io/-TOKEN-OR-TOMB-ASHES-OF-TELDRASSIL-/

The CandyEnterHook Team

profile avatar
  • 3
    Projects
  • 62
    Downloads

More from CandyBlack