Category Archives: Visual Basic Script

visual basic scripting

Read your product key and windows version with VBScript.

First you need to create one file named : productkey.vbs .
Edit this file with this source code:

How it’s working:
You have to select the Windows Registry with two functions: GetProductKey and GetOSVersion.
Also you need to select the entry in the target registry path: HKEY_LOCAL_MACHINE , MyRegKeyName , MyRegKeyValue.
The result of this functions will be a binary and string.
The binary will be converted into string using: ArrayProductKeyChars and one loop ( with for ) versus registry values.

Posted in All, Programming, Visual Basic Script, Windows 10. Tagged with , , , , , , .

Visual Basic Scripts example – part 01 .

This is two simple examples programming with visual basic script.

First script will say what you want to hear.

The Speech Application Programming Interface or SAPI is an API developed by Microsoft to allow the use of speech recognition and speech synthesis within Windows applications. – see wikipedia

Also if you run VBScript programs then you need to save the script in file with .vbs extension.

You can select the type voice from : Control Panel – Ease of Access – Speech Recognition – Text to Speech.

The next script will open the Notepad software and then will put some text into this app.

Posted in All, Programming, Visual Basic Script. Tagged with , , .