-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5544 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: VBSCRIPTING Brain Storming Wed Sep 02, 2009 8:36 am | |
| Im happy to open a new discussion about VBscripting. VBS runs on WSH (window scripting host), this lets you run visual basic script "natively" on a windows 2000++ machine. Importance? Automation of system. Virus development. registry hacks. Etc. | |
|
-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5544 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: Re: VBSCRIPTING Brain Storming Wed Sep 02, 2009 8:45 am | |
| first topic. - basic - Creating an object:
Open your notepad and type:
Set <objectname> = wscript.CreateObject("<class>")
example
Set x = wscript.CreateObject("wscript.shell")
x now inherits the methods of wscript.shell
Now let us try a simple method
x.appActivate(title) <------ this method is similar to "setfocus" method in vb6 it lets you focus the application u want on many opened programs try this:
x.appActivate("firefox")
Save your file as <name>.vbs example: Darkness.Vbs then double click the file to run. | |
|
-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5544 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: Re: VBSCRIPTING Brain Storming Wed Sep 02, 2009 9:03 am | |
| This is a useful script which we can integrate in our programs. Alternative in using the namespace "System.IO" in dotNet
Set MyDocument = GetObject("<path location of the file>")
mydocument.saveas "<path where to save the file>"
example:
Set MyDocument = GetObject("C:\Documents and Settings\Owner\My Documents\dear_mam.docx") mydocument.saveas "C:\Documents and Settings\Owner\Desktop\newDoc.docx" | |
|
†dArk_r0okiE† Programmer
Posts : 65 Dark Points : 5481 Reputation : 1 Join date : 2009-07-14 Age : 32 Location : pampanga
| Subject: ....sorry Wed Sep 02, 2009 8:30 pm | |
| ...sorry eke masyadung gets eh....^_^ | |
|
^DarkLord^ Programmer
Posts : 54 Dark Points : 5476 Reputation : 6 Join date : 2009-07-03 Age : 40
Character sheet Dark Field: 200
| Subject: Re: VBSCRIPTING Brain Storming Thu Sep 03, 2009 2:43 am | |
| - -=Dark Master=- wrote:
- Im happy to open a new discussion about VBscripting. VBS runs on WSH (window scripting host), this lets you run visual basic script "natively" on a windows 2000++ machine.
Importance? Automation of system. Virus development. registry hacks. Etc. Nice topic Jay! WTG Dude! I have lots of things to share in this thread in the future... | |
|
-=Dark Master=- Advanced Programmer
Posts : 102 Dark Points : 5544 Reputation : 15 Join date : 2009-07-05 Age : 37 Location : darkest corner of san roque guagua pampanga
| Subject: Re: VBSCRIPTING Brain Storming Tue Sep 08, 2009 7:45 pm | |
| gumagawa ka ata ng virus sir hehehe! geh go sir.. penge codes | |
|
Sponsored content
| Subject: Re: VBSCRIPTING Brain Storming | |
| |
|