01-17-2015, 15:42 PM
01-17-2015, 19:04 PM
(01-17-2015 15:42 PM)teris1994 Wrote: [ -> ]Hallo guys , i want take information of html files in official .. How can i do this? I reamber we can do that , but not reamber how?
LUA Programming
--ShowToClient("html dialog",tostring(GetDialogHtml()));
HtmlStatus = false;
--------------------------------------------------------------------------------
function OnCreate()
this:RegisterCommand("html", CommandChatType.CHAT_ALLY, CommandAccessLevel.ACCESS_ME);
end;
--------------------------------------------------------------------------------
function OnCommand_html(vCommandChatType, vNick, vCommandParam)
if (HtmlStatus == false) then
HtmlStatus = true;
ShowToClient("Plugin","HTML saveed.");
end;
end;
--------------------------------------------------------------------------------
function OnLTick1s()
if(HtmlStatus)then
local file = io.open(GetDir() .. "html.txt", "w");
file:write(tostring(GetDialogHtml()).. "\n");
-- file:write(tostring(HtmlDialog()).. "\n");
file:close();
HtmlStatus = false;
end;
end;