Valhalla Legends Forums Archive | General Programming | Scripts

AuthorMessageTime
j0k3r
Can anyone give me a quickoverview (no links please to description of a script, maybe to some vb scripting tutorials though :P) on what a script consists of, and how they work?

Thanks.
September 16, 2003, 10:39 PM
St0rm.iD
A script is generally a short program in a stripped-down language that is used manipulate another program.
September 16, 2003, 10:51 PM
Camel
In VB, you can use the MS Script Control (msscript.ocx).
September 16, 2003, 11:48 PM
j0k3r
Ok say I wanted to make a script and bind it to a key on my keyboard (I have unused keys...), I know how to link the key but how do I make it a script, because to the best of my knowledge scripts don't use as many resources as a program.

[edit]And how do I start the program as a script in VB? I need some sort of a direction or instruction on how to make a script in VB[/edit]
September 17, 2003, 9:26 PM
iago
Well, the classic way to script is to put your commands into a plain-text file.

On windows, call the file blah.bat.
On linux, give the program permissions 0700 (chmod 0700 blahscript).

Then just type the name to run it.
September 17, 2003, 9:55 PM
j0k3r
1. How does the OS know how to compile it as a VB file if I write it in VB?

2. What do you mean by just type the name? If I just typed the name in an msn chat room it would execute the script?
September 18, 2003, 2:45 AM
iago
No, type the name from a shell, either cmd.exe or bash or kshcr or whatever you like
September 18, 2003, 3:29 AM

Search