SteemVBS - Yes, It is VBScript

in #utopian-io8 years ago (edited)

SteemVBS is the first Steem Library written in VBScript. Yes, it is VBScript. ;)

Why VBS?

VBScript is my favorite. It is not dead. VBScript comes with almost every Windows since Win98. With COM support, the language is neat and can do almost anything.

Steem library has been ported to many high-level and modern languages e.g. Steem-Python, Steem-JS. Nowadays, the VBScript is still being used by many network administrators on Windows. SteemVBS aims to provide a easy interface to Steem Blockchain using VBScript.

However, Coding in VBScript may be sometimes quite tricky considering VBScript lacks of modern features (the last update was a bug fix almost 20 years ago).

SteemVBS

Fully open source: https://github.com/DoctorLai/steemvbs
Submit PR or Issue.

Examples

Currently, what SteemVBS does is quite limited, except getting the account information.

Class Steem is declared in lib\steem.vbs and you can do something like this

Dim SteemIt
Set SteemIt = (New Steem)("https://rpc.steemviz.com")

WScript.Echo SteemIt.Node
SteemIt.Node = "https://api.steemit.com"
WScript.Echo SteemIt.Node

Dim Account
Set Account = SteemIt.GetAccount("justyy")
WScript.Echo Account("voting_power")

To run the example:

cscript.exe /Nologo steem.wsf examples\account.vbs

image.png

Unit Tests

VBScript Unit tests can be run via:

cscript.exe /Nologo tests.wsf tests\test_account.vbs

Roadmap

Most of the features of Steem-Js and Steem-Python will be brought in.

Notice

This library is under development. Beware.


Support me and my work as a witness by

  1. voting me here, or
  2. voting me as a proxy

Some of my contributions: SteemIt Tools, Bots, APIs and Tutorial

Sort:  

Hey @justyy

We're already looking forward to your next contribution!

Decentralised Rewards

Share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.me/utopian-io

Thats is nice no need to learn a new language, thanks will take a look.

any programmers can learn VBS in just one hour!

Last time I coded in vbs it was about 4.5 years ago

less and less people are using vbs..

Now the only chance I may use it is vba

谢谢分享,对我这个初学者很有帮助

不客气,一起学习进步。

很厉害的样子

隔行如隔山,其实没有啥技术含量的

I like Visual Basic because it reminds me a bit of Dart and Smalltalk which are very nice languages.

Indeed. The beauty of VBScript is that it is so straightforward, it comes with OS and you just need a notepad!

Yeah its nice and straightforward and fairly clean to deal with. I'm not sure why people hate on VB/VBScript so much (maybe because its Microsoft?)

Magical steem library :D

Thanks for the contribution. It has been approved.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

might play around with this a little when you have it developed more.

Thank you @paulag for stopping by. Yes, I will develop more and this can be very powerful to use in Excel via VBA.

Coin Marketplace

STEEM 0.05
TRX 0.33
JST 0.079
BTC 63481.02
ETH 1684.55
USDT 1.00
SBD 0.42