Docs. and Scripts

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Becky636
Posts: 7
Joined: 2003-01-05 22:12

Docs. and Scripts

Post by Becky636 » 2003-03-17 03:05

I was woundering is there is any Documentation for DC Hub ? I would also like to learn how to make scripts.. I am no dummy in programming as I used to program in RPG and Basic some Cobal..

So where can I get the nessary tools to learn and Write
Scripts for My new hub?



Thank you
Becky636 makeitso.dyndns.tv or enterprisenx01.dyndns.tv

E=mc²
Posts: 17
Joined: 2003-03-15 22:32
Location: Stockholm

Post by E=mc² » 2003-03-17 08:19

DC Hub Script is on language Visual Basic.
Buy or download a book of that language. :D
NuclearFusionâ„¢ 24:7

jeza
Posts: 17
Joined: 2003-01-28 18:40
Location: SLOVENIJA

Post by jeza » 2003-03-17 12:46

SLOVENIJA
Take it easy..............
:)

ButterflySoul
Posts: 210
Joined: 2003-01-23 22:24
Location: Nevada

Post by ButterflySoul » 2003-03-18 11:12

Let's see ... For the DC Hub documentation, you have a basic description of the objects and events (help.script) included in the files of the hub software download itself, and Jeza posted you the details of the protocol.

The language is Visual Basic Script, which is essentially Visual Basic with no variable types other than variants, with a few features removed from classic VB, but also a few features specific to VBS which you won't find in VB (like RegExp objects or creating you own classes, for example)

If you download this, you will now also have a nice tutorial to VBS (the "User's Guide" section) and a complete language reference (the "reference" section).

Eventually, you might want another script editor than the one built in the hub software. I'd suggest AEdiX which has a bunch of nice features (like synthax highlighting, for example) and happens to be free.
It might look a bit funny the first time you start it, but if you modify AEdiXmain.amf to this :

Code: Select all

Program MainAEditScript;
{  You Can use this script to customize AEdiX, anyway
   it is better that you make a backup copy before change
   The chages on this file wil take effects only when you restart AEdiX
   }

Procedure OnInit;
begin
     Editor.SetTabWidth(3);
     Editor.SetSmartTabs(False);
     Editor.SetRightEdge(0);
end;

Procedure OnFileLoad(Name:string);
begin
     if (trim(extractfileext(uppercase(name)))='.SCRIPT') then Document.SynSelectChange(7);
end;

Begin
//do not write nothing here
end.

things should look a bit better.

Guess you're all set now ? =)
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best

Who is online

Users browsing this forum: Google [Bot] and 0 guests