Ingame/outgame info
Posted: Sun Feb 19, 2012 2:28 am
Hi to all!
At 1st,thanks for your code. I get some ideas to my program-"transformer"(ant antihide on this moment) and it's very useful. So,I think,that I must give something useful in answer.
I don't use micromacro long time,so IDK,if it's already realised or not,but if not,I think,that it would be very useful.
There is simple addon,that can show you outgame program's info in game frame and run output commands(as RoMScript,I think,still checkn't,how did you run writed macro).
Ok,so how it work? All isn't hard!
1) Declare function for using output commands/show output text:
FrameOut.lua
Goto FrameOut.xml:
It's not full code,just script-part. last some descriptions of the frame's look,but you can see it by yourself in attach.
Thanks for your attention!
Best regards,Demogor.
At 1st,thanks for your code. I get some ideas to my program-"transformer"(ant antihide on this moment) and it's very useful. So,I think,that I must give something useful in answer.
I don't use micromacro long time,so IDK,if it's already realised or not,but if not,I think,that it would be very useful.
There is simple addon,that can show you outgame program's info in game frame and run output commands(as RoMScript,I think,still checkn't,how did you run writed macro).
Ok,so how it work? All isn't hard!
1) Declare function for using output commands/show output text:
FrameOut.lua
Code: Select all
GLOB_CURR_TARGET="0";
--Use command
function AntiHider.UseScript(text)
RunScript(text);
end;
--Text->Frame
function AntiHider.SetText(text)
AntiHiderFrameDesc:SetText(text);
end
Code: Select all
<OnUpdate>
--set text
local icon,name,macro_body=GetMacroInfo(7);
AntiHider.SetText(macro_body);
local icon2,name2,macro_body2=GetMacroInfo(4);
if(macro_body2~=GLOB_CURR_TARGET) then
GLOB_CURR_TARGET=macro_body2;
--use script
AntiHider.UseScript(GLOB_CURR_TARGET);
end;
</OnUpdate>
It's not full code,just script-part. last some descriptions of the frame's look,but you can see it by yourself in attach.
Thanks for your attention!
Best regards,Demogor.