Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HWID Generater Script (vbs)
#3
(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 Big Grin
Don't try to act smart... i am smarter than you...Ninja
Reply


Messages In This Thread
HWID Generater Script (vbs) - by Akinova - 08-21-2011, 08:16 AM
RE: HWID Generater Script (vbs) - by AceInfinity - 08-21-2011, 08:28 AM
RE: HWID Generater Script (vbs) - by Akinova - 08-21-2011, 08:44 AM
RE: HWID Generater Script (vbs) - by AceInfinity - 08-21-2011, 09:08 AM
RE: HWID Generater Script (vbs) - by Injection - 08-24-2011, 01:27 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)