Jump to content

Luacom Plugin


El-Arabi
 Share

Recommended Posts

obj = luacom.GetObject ( "winmgmts:\\\\.\\root\\cimv2");
if (obj ~= nil) then
objEnum = obj:ExecQuery("Select * from Win32_TemperatureProbe");
if (objEnum ~= nil) then
enum = luacom.GetEnumerator(objEnum)
item = enum:Next ()
while item do
str_product = tostring(item:CurrentReading())
Dialog.Message("",str_product);
item = enum:Next()
end

end
end

Arkadaşlar kod bu kadar bununla Win32_TemperatureProbe kütüphanesinden veri çekmek istiyorum bazı verileri çekiyorum fakat bu CurrentReading verisini çekemedim nil diyor.
Kütüğhanelerin adresi.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa394373%28v=vs.85%29.aspx Edited by El-Arabi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...