Writing Script to Crate and Execute VBS Script

Recommended Posts

Lord Nikon 0

Lord Nikon 0

Sup. Need a little help. I just started Coding with AutoIt and have run into a problem. I am trying to write a script that will gather input, then will use that input and create a VBS file. Then the File will save. Then it will execute the VBS File, Delete the VBS File, and Delete itself.

Now, the problem i have is with the creation of the VBS File. As i said, i have just started using AutoIt. But i need to use ("") inside of the VBS and i am not sure how to do this at all. Not only that, i am unsure as how to save the file. Help would be greatly appreciated.

...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines

Share this post

Link to post

Share on other sites

Lord Nikon 0

Lord Nikon 0

The VBS Script that i have is ment to send E-Mails anonymously. I have used it before but i am trying to start using AutoLit more Extensively. I wanted to design a script, and convert it to an EXE with Autoit. The VBS script is this:

;;Beginning of Program
;This Program was Scripted by Lord Nikon
;;Splash Image Declaration and Specification
;===================================================================================================
=========
$destination = @TempDir & "\test.bmp"
FileInstall("C:\Documents and Settings\98433640\My Documents\My Pictures\inner_ruchlogin.bmp", $destination)
SplashImageOn("Splash Screen", $destination)
Sleep(5000)
SplashOff()
;;Warning and Disclaimer
;===================================================================================================
=========
$disclaimer = "I am in no way responsible for the way you use this script.By using this script you are in
agreement that, should you use it maliciously, you will accept all responsibility for your actions and will
not hold me, Lord Nikon, responsible for your actions in any way."
SplashTextOn("Disclaimer", $disclaimer, 500, 200, -1, -1, 4, "", 12)
Sleep(10000)
SplashOff()
;;Program Core
;===================================================================================================
=========
$Subject = InputBox("Subject", "Subject of the E-Mail?")
$To = InputBox("To", "Who is this being sent to?")
$From = InputBox("From", "What do you want your from address to be?")
$CC = InputBox("Carbon Copies", "CC?")
$TextBody = InputBox("Message", "What is the Message?")
Run("Notepad.exe", "", @SW_MAXIMIZE)
WinWaitActive("Untitled -")
Send(" ")

As you can see, the Script is incomplete.

Suggestions? Comments?

Edited December 1, 2004 by Lord Nikon

...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines

Share this post

Link to post

Share on other sites

Lord Nikon 0

Lord Nikon 0

...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines

...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines

...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines

Share this post

Link to post

Share on other sites

Lord Nikon 0

Lord Nikon 0

...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines