Not possible. You cannot modify the mouse-enabled state of secure frames while in combat. The best you could do would be to enable the mouse when you enter combat, and disable it again when you leave.
Also, that is a horribly written macro. I'm guessing you found it, or based it on something you found, on ArenaJunkies. You can just do this instead:
Code:
/run PlayerFrame:EnableMouse(false)
If you want it to be a toggle:
Code:
/run PlayerFrame:EnableMouse(not PlayerFrame:IsMouseEnabled())
If you want to automatically enable the mouse during combat, and disable it out of combat:
Code:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
f:RegisterEvent("PLAYER_REGEN_DISABLED")
f:SetScript("OnEvent", function()
if InCombatLockdown() then return end
PlayerFrame:EnableMouse(UnitAffectingCombat("player"))
end)
If you need help turning the above code into an addon, copy and paste it into this page:
http://addon.ziuo.net/