08-21-2011, 08:44 AM
(08-21-2011, 08:28 AM)Ace Wrote: You know you don't need it inside of a function, the function is really useless if it's the only part of your code. Just makes things more complicated than they have to be. You can do something like this instead:
Code:Set wmi = GetObject("winmgmts:")
For Each cpu in wmi.InstancesOf("Win32_Processor")
MsgBox "CPU: " & cpu.ProcessorID, 64, "HWID Generation"
Next
That's all the code you need. You don't even need to define cpu because it's being used as it's own parameter in the For Each loop.
ok Thanks buddy, i am just new in these things
Don't try to act smart... i am smarter than you...