Hi Guys! I am trying to create a script that clears Details’ history upon clicking of the macro.
So far I have the below, that wasn’t working:
/run if IsControlKeyDown () then _detalhes.tabela_historico:resetar() end ’
I initially tried to run some custom code in the ‘Auto Run Code’ section of the addon to clear details upon entering AND leaving an instance which is below, this also didn’t work:
– when the player changes zone, this code will run#
function OnPlayerLeavingWorld()
local instanceType, _, difficulty, _, _, _, _, instanceMapID = GetInstanceInfo()
if instanceType == “party” or instanceType == “raid” or instanceType == “pvp” then
DetailsFramework.tablea_historico:resetar_overall()
end
end
Any help would be greatly appreciated.