Sigx

We are the future in the past.
It is currently Wed Dec 13, 2017 12:52 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Thu Jun 23, 2005 2:29 pm 
Offline

Joined: Mon Mar 15, 2004 1:48 pm
Posts: 1395
Location: Los Angeles
SigX 2.1.6 - Released on June 23, 2005


What i hope to accomplish here is to show you what new features came out in 2.1.6 and how to take advantage of them

The feature I am most happy to introduce is the new VBscript execute feature, it allows the users to create and share external scripts which have endless amount of features. The scripts I included with 2.1.6 are just a few sample scripts that show off the abilities of VBscript. You can get html output, parse XML files, get local system information, get email status, whatever you want (as long as you know how to do it) .

The way this works

First off you write a script, lets start off with a simple "hello world" script for example.

Code:
' the Path is the name of our file
Const Path = "helloworld.txt"
Set fs = CreateObject("Scripting.FileSystemObject")
Set outFile = fs.CreateTextFile(Path, True)
outfile.write "Hello World"

Note: You must save the output txt file with the identical file name as the VBscript file name.

So now we save the above code as helloworld.vbs. And next we place the helloworld.vbs inside your SigXC, scripts folder. To test and debug our code we simply double click on the vbs file and it will create a helloworld.txt file in the same folder or throw an error.

To use the VBscript file in our SigX we have to edit the templates.txt filde which is also found inside the SigXC folder.

Working with the template

Open up templates.txt folder and paste the following code into it at the end.

Code:
"HelloWorld" "{script}=scripts/helloworld.vbs,60"


The first part "HelloWorld" is what you will see in the drop down box inside SigX.

The second part tells SigX what to do "{script}=scripts/helloworld.vbs,60"

The number 60 is in minutes. Which would mean that you want the vbscript file to execute every 1 hour or 60 minutes.


Conclusion

Obviously I gave a very simple example how SigX uses VBscripts but they are very powerfull. I have included an RSS reader with version 2.1.6 that allows you to to read RSS from your favorite news sites, or even your own blog and show them on the SigX image.


Last edited by yuriy on Thu Jun 23, 2005 2:54 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Jun 23, 2005 2:46 pm 
Offline

Joined: Mon Mar 15, 2004 1:48 pm
Posts: 1395
Location: Los Angeles
I have released 3 scripts with 2.1.6 which I think are pretty cool.
  • rss.vbs
  • foldingStats.vbs
  • worldpopulation.vbs

RSS Feeder
This is a great script, it allows you to read RSS from any of your favorite news sites or blogs and its easy to use.

How to configure:

1. Open rss.vbs inside the scripts folder.
2. Modify the following:

Code:
rss.ContentURL = "http://slashdot.org/rss/index.rss"
rss.MaxResults = 3


Sample output with 5 headlines:
Image


Replace the "http://slashdot.org/rss/index.rss" with the RSS of your desired site, and the number of headlines to obtain.

3. Close the rss.vbs and reload SigX
4. Select "rssFeed" from the drop down list.
note: It will take up as many lines of your signature as you specify in the MaxResults.

Folding Stats
This is made for the [email protected] site, you must edit the VBscript filde on the following line:

Quote:
const conURLSrc = "http://vspx27.stanford.edu/cgi-bin/main.py?qtype=userpage&teamnum=4&username=gwhall007"


Replace the username and the team number with your own.

World Population

This is a sample script I included for sample purposes. It connects to the census webpage and parses the html for the current world population.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group