WoWInterface (
-   nUI: Bug Reports (
-   -   Set Focus (

Slaytanic 06-23-11 01:21 AM

Set Focus
I receive this error when attempting to set focus:

Date: 2011-06-23 01:18:36
ID: 1
Error occured in: AddOn: nUI
Count: 1
Message: Error: AddOn nUI attempted to call a forbidden function (FocusUnit()) from a tainted execution path.
[C]: FocusUnit()
..\FrameXML\UnitPopup.lua:1504: func()
..\FrameXML\UIDropDownMenu.lua:638: UIDropDownMenuButton_OnClick()
[string "*:OnClick"]:1:
[string "*:OnClick"]:1
Swatter, v5.11.5146 (DangerousDingo)
AucAdvanced, v5.11.5146 (DangerousDingo)
AucFilterBasic, v5.11.5146 (DangerousDingo)
AucFilterOutlier, v5.11.5146.2531
AucMatchUndercut, v5.11.5146.2531
AucStatHistogram, v5.11.5146 (DangerousDingo)
AucStatiLevel, v5.11.5146 (DangerousDingo)
AucStatPurchased, v5.11.5146 (DangerousDingo)
AucStatSales, v5.11.5146.2842
AucStatSimple, v5.11.5146 (DangerousDingo)
AucStatStdDev, v5.11.5146 (DangerousDingo)
AucStatWOWEcon, v5.11.5146.2530
AucUtilAHWindowControl, v5.11.5146.3311
AucUtilAppraiser, v5.11.5146.2530
AucUtilAskPrice, v5.11.5146.3175
AucUtilAutoMagic, v5.11.5146.3142
AucUtilCompactUI, v5.11.5146.2530
AucUtilEasyBuyout, v5.11.5146.3583
AucUtilFixAH, v5.11.5146 (DangerousDingo)
AucUtilGlypher, v5.11.5146.5061
AucUtilGlypherPost, v5.11.5146.5069
AucUtilItemSuggest, v5.11.5146.3108
AucUtilPriceLevel, v5.11.5146.2545
AucUtilScanButton, v5.11.5146.2530
AucUtilScanFinish, v5.11.5146.2530
AucUtilScanProgress, v5.11.5146.2530
AucUtilScanStart, v5.11.5146.4784
AucUtilSearchUI, v5.11.5146.3655
AucUtilSimpleAuction, v5.11.5146.4546
AucUtilVendMarkup, v5.11.5146.2530
AutoRepair, v
Babylonian, v5.1.DEV.130
BadBoy, vv6.499
BadBoyCCleaner, v3.26
BadBoyGuilded, v1.27
BadBoyLevels, v2.77
Bagnon, v4.1.1
BagnonForever, v1.1.3
BagnonTooltips, v
BeanCounter, v5.11.5146 (DangerousDingo)
Configator, v5.1.DEV.282
DebugLib, v5.1.DEV.275
Enchantrix, v5.11.5146 (DangerousDingo)
EnchantrixBarker, v5.11.5146 (DangerousDingo)
Gatherer, v3.2.3
HealBot, v4.1.0.0
Informant, v5.11.5146 (DangerousDingo)
nUI, v5.07.19 (Lite)
nUIInfoPanelHealBot, v4.1.0.0
nUIInfoPanelStats, v5.07.17
Omen, v3.1.2
SlideBar, v5.11.5146 (DangerousDingo)
Stubby, v5.11.5146 (DangerousDingo)
BlizRuntimeLib_enUS v4.1.0.40100 <us>

I use set focus for DPS and healing. I NEEDS it. :(

Xrystal 06-23-11 01:45 AM

That's a known problem with addons unfortunately. You will have to use the /focus command to make your target your focus. typing /focus without a target will remove the focus frame.

Vlad 06-23-11 02:24 AM

And /clearfocus will remove it no mater what you target. ^^

Chmee 06-23-11 12:39 PM

What does /foggyfocus do? :eek::banana:

Xrystal 06-27-11 08:32 AM


Originally Posted by Vladinator (Post 239813)
And /clearfocus will remove it no mater what you target. ^^

Thanks Vlad, I knew there was a command to do that but my macros always used /focus to make things easier.

Verttex 06-27-11 10:37 AM

Can I get an macro that is, if a target is selected and i have no focus it does /focus and if i click it again and i still have that focus it will /clearfocus?

Xrystal 06-27-11 01:14 PM

My sheep macro was as simple as this:


#showtooltip Polymorph
/cast [button:2,@focus] Polymorph;
/focus [nobutton:2];

I'm not sure if a test for an existing focus is available but maybe the following will do what you want.


#showtooltip Polymorph
/cast [button:2,@focus] Polymorph;
/focus [nobutton:2,noexists];
/clearfocus [nobutton:2,exists];

button 2 is the right mouse, so nobutton 2 means left or other button.

Seerah 06-27-11 02:09 PM

/focus [@focus,noexists]

/clearfocus [@focus,exists]

Xrystal 06-27-11 02:25 PM

Thanks seerah, still figuring out those conditionals

Seer 06-27-11 03:01 PM

/focus [mod:alt]
/clearfocus [mod:ctrl]; [target=focus,dead]
/stopmacro [mod:ctrl]; [nocombat,mod:alt]
/focus [target=focus,noexists]
/cast [target=focus] Fear

/focus [mod:alt]
/clearfocus [mod:ctrl]; [target=focus,dead]
/stopmacro [mod:ctrl]; [nocombat,mod:alt]
/focus [target=focus,noexists]
/cast [target=focus] Banish

etc etc

(Thanks to CCfocus)

All times are GMT -6. The time now is 01:36 AM.

vBulletin © 2018, Jelsoft Enterprises Ltd
© 2004 - 2017 MMOUI