LUACOM
alga_1
这个作者很懒,什么都没留下…
展开
-
20130128-LUACOM-IDL-VBS
LUA很好用,在Windows下COM是老大,如果能结合它们的功能,那会是比较酷的。LuaCOM库(目前版本1.4)非常好的扮演了这个牵线搭桥的角色,本文不讨论Luacom的各项功能,大家可下载LuaCOM User Manual手册作全面的了解。这面只是举一个HelloWorld的例子,以及在实现这个例子过程的一点教训。网上关于这方面的详细例子不多(也可能是本人的搜索方法不是很对),基本上找不着原创 2013-01-28 11:59:16 · 1516 阅读 · 0 评论 -
20130216-LUACOM-WMI-002
CPU温度,可能会有某些系统不支持(?)package.cpath=os.getenv("systemroot") .. [[\system32\?.dll]];require "luacom" function Escape(v) if v == nil then return ""; end if (type(v) == "table") then return T原创 2013-02-16 18:56:44 · 735 阅读 · 0 评论 -
20130216-LUACOM-WMI-001
package.cpath=os.getenv("systemroot") .. [[\system32\?.dll]];require "luacom" firstrun=true results="" if firstrun then WMI = luacom.CreateObject("WbemScripting.SWbemLocator") Services原创 2013-02-16 18:58:06 · 867 阅读 · 0 评论 -
20131104-excel 枚举常量
XlHighlightChangesTime table: 00C7DE58 xlAllChanges 2 xlSinceMyLastSave 1 xlNotYetReviewed 3 XlErrorBarInclude table: 00C8CFD0 xlErrorBarIncludeBoth 1 xlErrorBarIncludeNone -4142 xlErro原创 2013-11-04 14:24:15 · 1861 阅读 · 0 评论