• Welcome to Valhalla Legends Archive.
 

Scripts

Started by j0k3r, September 16, 2003, 05:39 PM

Previous topic - Next topic

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.
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

Banana fanna fo fanna

A script is generally a short program in a stripped-down language that is used manipulate another program.

Camel

In VB, you can use the MS Script Control (msscript.ocx).

j0k3r

#3
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]
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


j0k3r

#5
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?
QuoteAnyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin
John Vo

iago

No, type the name from a shell, either cmd.exe or bash or kshcr or whatever you like
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*