Home | Recent Changes | Search | Log in

Up: World of Warcraft, Warcraft Characters
Guilds: We Know, We Orc, The Elites, Think Different
Guides: WoW AddOns, WoW Macros, WoW Maps, WoW Sites, WoW Tips


WoWmacros.com

Screenshot

Here's a simple one. Remove all frames and take a Screenshot:

/script RunBinding("TOGGLEUI"); TakeScreenshot();

make this a macro and make sure the "Toggle UI" (usually Alt-Z) is still bound. Inquiring minds want to know, why you can't just call the Binding again, and get the UI back. Macros are serialized, which means the UI would come and go, while the shot is taken (this is to stop people from writing quick-cast macros). One COULD do this in a simple AddOn, by calling an Eventhandler which looks for SCREENSHOT_SUCCEEDED and then toggles the UI, but I am not about to write that one in here (I'll upload code for it, though, in a bit).

Speaking about Eventhandlers. They're simple:

create a function for eventhandling, like so:

function SomeMod_OnEvent(event)

and then call RegisterEvent for each event to be registered for. Make sure to be frugal, here, most lag comes from badly written event handling code, not network or server issues (blame Enchantrix, Recap, and some others)


ReloadUI

Tired of having to type to reload your UI (if you're starting to code, you'll do this a lot :)?. Bind a Macro to

/script ReloadUI()

and you're all set.

Page Last Updated: Jan 21 3:12pm by user118190@example.com


Log in - Socialtext v2.22.0.1