Author Topic: Do you need to get your windows key but can't find it/want something to find it?  (Read 980 times)

Here's a vbscript that gets you your windows key for you.

Code for the project here:
Code: [Select]
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

Step 1: Create a new text document.

Step 2: Copy the code into the document you just created.

Step 3: Name your project whatever you want, but make sure that Save as Type is selected for All Files.

Step 4: The document/file should now look like this, double click it to run it.

Step 5: A new window should pop up showing you your key with an OK button. You're done now. Write down your key and your done.

but the windows key is on my keyboard



everyone please help me i was looking down to confirm that i also have the windows key but it appears mine is missing

is there a hotline for this im really scared right now


This script works wonders, thanks for posting OP




H0ly c0w I just hacked your PC n00b!!11!11!!
Silly posting your key to the whole w0rld

Meh. My fault for thinking you guys were mature.