El-Arabi Posted March 29, 2012 Share Posted March 29, 2012 (edited) 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 March 29, 2012 by El-Arabi Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Author Share Posted March 30, 2012 Arkadaşlar anlayan yokmu herkezin işine yarayacak birşey bu.AMS de WMI kullanma. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 30, 2012 Share Posted March 30, 2012 uint32 CurrentClockSpeed; uint16 CurrentVoltage; CurrentReading yok ki verdiğin sayfada? Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Author Share Posted March 30, 2012 Özürdilerim kintaro sayfayı yanlış vermişim. http://msdn.microsoft.com/en-us/library/windows/desktop/aa394493%28v=vs.85%29.aspx sint32 CurrentReading; yardımcı olursan pc bilgilerinde çok işe yarayacak. Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 31, 2012 Author Share Posted March 31, 2012 @Kintaro bakabildinmi acaba. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.