vbs scripts

Does any one know vbs scripting if so comment cause I want to learn it. (please tell me codes)

Topic by animan1   |  last reply


vbs codes

Hi ...i am still learning  codes was trying to convert this bat codes to  vbs codes but i don't know how. can any one help me? this is the example of the bat codes, i really need your help. Thanks bro..: @echo off echo Hi guy, what do you want to open? set/p "cho=>" if %cho%==facebook start facebook.bat if %cho%==yahoomail start YahooMail.bat if %cho%==youtube start youtube.bat if %cho%==blackboard start blackboard.bat if %cho%==porno start porno.bat if %cho%==hacking start hacking.bat if %cho%==gmail start gmail.bat

Question by diki83 


VBS Commands

I want to know some more vbs commands. Please don't give me links to w3schools.com I've read all those I mean code chunks like these dim variable 0 - ok button only 1 - ok and cancel 2 - abort, retry and ignore 3 - yes no and cancel 4 - yes and no 5 - retry and cancel TO CHANGE THE SYMBOL (RIGHT NUMBER) 16 - critical message icon 32 - warning icon 48 - warning message 64 - info message DEFAULT BUTTON 0 = vbDefaultButton1 - First button is default 256 = vbDefaultButton2 - Second button is default 512 = vbDefaultButton3 - Third button is default 768 = vbDefaultButton4 - Fourth button is default SYSTEM MODAL 4096 = System modal, alert will by on top of all aplications Set Sapi = Wscript.CreateObject("SAPI.SpVoice") Sapi.speak "text here" Sapi.speak variable set wshshell = wscript.CreateObject("wscript.shell") wshshell.run "file.bat" Wscript. sleep duration object.sendkeys "keys" name=msgbox ("Message",0+16,"Title") name=inputbox ("Message",0+16,"Title") if then else end if

Topic by Super_Nerd   |  last reply


VB question

Hi all. I am new to Visual Basic and am wondering how one would make a VB eBook reader. PLEASE READ! i know it can be done, i just haven't found a tutorial for making one. I have virtually no experience working with VB and little experiance programming. If you know of a link to a tutorial of this nature, PLEASE tell me. Thank you.

Question by dungeon runner 


Input to text file in vbs

Im getting increasingly intested in vbs and was wondering how to make an input window for example "Your password" and the "password" could be saved in a txt file stored somewhere, i have the start but dont know where to go from there!"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""WScript.Echo "Your computer is being hacked please enter your password to stop hacker"Set WshShell = WScript.CreateObject("WScript.Shell")Password = InputBox("Please type your password.")""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""Thanks

Topic by k_man   |  last reply


Program or script to change volume...? Answered

Another question that is way out of my league (woe is me).  I need (or rather want) a program, in either Java or VBs (if there's a better one like Python or something, that would be alright too) to change the volume of a Windows computer.  It would also be a good showcase of your skills to make it able to change the volume of a specific program or application.  The way I intend to use it is as if it were a function, rather than a program. So a different script will activate it (perhaps by writing it, which in Java I don't think is possible) and then set the volume and the program to change the volume of. If that can't be achieved, could it be made to read a text file (or something else) with two lines on it; the first the program, the second the volume. If the first line says something like none, It would change the volume of the whole computer. Hopefully I've given you a good enough description to make it clear exactly what to do. Thank you in advance.

Question by Prof. Pickle   |  last reply


How would i save text in a VBScript code? Answered

So far i can create a text file with this code : set objFile= CreateObject ("Scripting.FileSystemObject") Set textfile = objFile.CreateTextFile("Results.txt") but i dont know how i would save text to that file. any help?

Question by animan1   |  last reply


VBS (VISUALBAIC SCRIPT) VBSCRIPT

Does anyone know some cool things that i can do with vbscript i mean i tried to find some stuff on the net ansd i did but i want to learn more lol.

Topic by rickick   |  last reply


What is wrong with this vbs script?

It is a program to add or remove printers on a local machine, and it works locally, but not when trying to run through group policy in the AD.  Btw, this is a friend's, not mine, so I can only answer so many questions.  Please help. Here is the code: PrnName = "Kyocera FS-1100 KX" Set objWshShell = WScript.CreateObject("WScript.Shell" ) 'retrieve username and computername strComputer = objWshShell.ExpandEnvironmentStrings("%COMPUTERNAME%" ) strUserName = objWshShell.ExpandEnvironmentStrings("%username%" ) strHome = objWshShell.ExpandEnvironmentStrings("%HOMEPATH%" ) strDrive = objWshShell.ExpandEnvironmentStrings("%HOMEDRIVE%" ) Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2" ) objWMIService.Security_.Privileges.AddAsString "SeLoadDriverPrivilege", True Set colInstalledPrinters = objWMIService.ExecQuery("Select * from Win32_Printer" ) Set dr = objWMIService.ExecQuery("Select * from Win32_Printer where DeviceID = 'Kyocera FS-1100 KX'" ) Set fs = CreateObject("Scripting.FileSystemObject" ) folder = strDrive & strHome if fs.FolderExists(folder) and dr.Count <> 0 then For Each objPrinter in colInstalledPrinters if objPrinter.DeviceID = PrnName then objPrinter.SetDefaultPrinter() end if Next else 'if fs.FolderExists(folder) and dr.Count = 0 then 'For Each objPrinter in colInstalledPrinters 'objPrinter.Delete_ 'Next 'end if if (fs.FolderExists(folder)) and (dr.Count = 0 or colInstalledPrinters.Count = 0) then ' Add a l'imprimante '''''''''''''''''''''''''' Set objPrinter = objWMIService.Get("Win32_Printer" ).SpawnInstance_ objPrinter.DriverName = PrnName objPrinter.PortName = "USB001" objPrinter.DeviceID = PrnName objPrinter.Location = "Imprimante installée sur la machine " & strComputer objPrinter.Comment = "Imprimante " & PrnName objPrinter.Network = False objPrinter.Put_ objPrinter.SetDefaultPrinter() end if For Each objPrinter in colInstalledPrinters if objPrinter.DeviceID = "Microsoft XPS Document Writer" or objPrinter.DeviceID = "PDF4U Adobe Creator" or objPrinter.DeviceID = "Microsoft Office Document Image Writer" then objPrinter.Delete_ end if Next ' restart spooler Set objSpoolerSvc = objWMIService.Get("Win32_Service.Name='spooler'" ) iReturn = objSpoolerSvc.StopService() iReturn = objSpoolerSvc.StartService() wscript.quit end if 'For Each User In objlocal 'If lcase(User.Name) = lcase(strUserName) Then 'Set objUser = GetObject("WinNT://" & strComputer & "/username, " & strUserName) 'msgbox User.Name & " already exists." & vbCrLf & "The password was re-set." 'WScript.Quit 'End If 'Next 'End Sub 'strCommand = "rundll32 printui.dll,PrintUIEntry /y /n Kyocera FS-1100 KX /f /r USB001" 'intResult = objWshShell.run ("rundll32 printui.dll,PrintUIEntry /p /n Kyocera FS-1100 KX" , 0, true)

Question by geekvig   |  last reply


VB help, (text files)? Answered

Hi, so basically i need to create a .txt file when i press a button but it has to be named as what i entered into textbox1.text ANY HELP GUYSSS!!!!!!!!!

Question by wizzywoo   |  last reply


I need some VBS commands? Answered

Hello there...i need a good list of VBS commands...please explain the code and what it does...all is welcome :)

Question by fwjs28   |  last reply


How can I fix this? VBS

X =msgbox("Do you wish to restart?",4+16+4096,"Critical Errror") if VByes Then CreateObject("WScript.Shell").Run "shutdown.bat" ElseIf VBno Then CreateObject("WScript.Shell").Run "shutdown.bat" I want both the yes and no to do the same thing when pressed

Question by metalshiflet   |  last reply


Calling all VBScripters!

I am trying to create a vbs script that will use vocabulary databases to randomly choose words according to sentence structure, then using a large database (that tells what words are relevant to the random word chosen) it creates a basic sentence. With more complicated sentence structures there are more complicated. I need some other vbscripters to help. Here is how it works The program chose a statement sentence. The basic structure is noun verb Then the program choses a word Cats verb Finally using the matching database it creates a realisitic sentence Cats meowed. A more complex sentence would be article noun verb preposition pronoun noun article cat verb preposition pronoun noun article cat called preposition her kittens article cat called to her kittens The cat called to her kittens 

Topic by Super_Nerd   |  last reply


My second instructabel... Make your windows xp talk !

Hey, check out my 2nd instructable in this site and tell me what you think about it...\Click here...

Topic by SCRIPTmaster   |  last reply


Best Batch and vbs commands/ code chunks/ programs... library

Hey everyone who likes batch or vbs read this... Please list any programs commands or code chunks to this forum so that instructables can have a near complete code library.

Topic by Super_Nerd   |  last reply


whats wrong with my vbs code? Answered

Here it is:MsgBox("virus detected") MsgBox("windows will now perform system format to attempt to get rid of the virus")MsgBox("formatting system...")  MsgBox("warningram = failedhard disk = failedsystem firewall = failedplease shutdown the system and seek proffesional advice") it says terminated string constant can someone please point out my mistake?

Question by sharlston   |  last reply


Does anyone have any vbs mapi and tapi commands? Answered

The title pretty much says it. I wondered how to send e-mails or make phone calls through vbs. Also... are there any mapi commands for receiving e-mails?

Question by Super_Nerd   |  last reply


VB 2008 AxWindowsMediaPlayer Control Help?

Hey everyone. If your an advanced user in Visual Basics 2008 Express Edition, I could use some help. Right now, I'm working on a video presentation program for my Home Theater PC. I'm planning on hooking up my computer to my T.V and using it as a secondary screen. I will then run an HDMI cable to my monitor, and use that as my main screen. My mouse and keyboard are wireless so it won't pose a problem. But, anyways. I'm getting off topic... I made a form with a bunch of controls on it. It has 10 textboxes for video URLs and 5 textboxes for audio URL. It has 2 AxWindowsMediaPlayers on it. One for music, the other for video. The main one (Bigger one) will be used for video, and it will also act as a control window. So, when I click play one one the textboxes, it will open the file up one both Media Players and will begin to play. I know the coding for that, its just I need to know how to control the 3rd Media Player, on a different form. So basically, the 3rd Media Player would copy the 1st media player. Any help would be much appreciated.  Thanks. 

Question by brandencota 


what is vbCr in vb 2010 ? And, must we add vbCr to send a string to serialport ? Answered

I want to send and receive at command to my phone using vb

Question by Rendydevara   |  last reply


Batch files?

Hey people! Just so you know, im sorta new at this whole 'computer' tech thing. I was wondering how i could learn how to write batch, VBS, HTML, and JAVAScript. Please help, thanks

Topic by B.F.L.M   |  last reply


on press visual basic?

This seems really simple but I just cannot find out how to make a program in visual basic that presses enter after any key is pressed. thank you in advance!

Question by FastLearner   |  last reply


Is it possible to upload a new Arduino, already compiled sketch with VB or C?

Hello everyone, so my question is: Is it possible to upload already compiled sketch with the Arduino IDE (.ini file) with a program created in VB or C?

Question by mart225   |  last reply


HTA application help

Hello fellow friends, I have an HTA (HTML application) and im trying to create a button to change the "img src". Im attemping this by using a variable, but it doesnt work heres my code so far: Sub Window_Onload a="msgbox.jpg" End Sub Sub RunScript a="test.jpg" End Sub   Thanks in advance, -animan

Question by animan1   |  last reply


VBScript Addition Problems? Answered

Hello I Have a Addition Problem In VBScript. If i use 2 Inputboxes to get to numbers (Lets say 3 and 5), there both numeric (isNumeric return "True"), but when i add them (c=a+b) and then msgbox 'c' it comes up '35' not 8. PLEASE HELP ME

Question by animan1   |  last reply


How to access Textbox & Command button in JAR application?

 I am new to VBS. I need to write a VBS script for accessing Textboxes & Command button in JAR application. As of now, I am able to open that application using WShell codes in VBS.

Question by Justlogin 


Controlling multiple Arduino pins in VB or C#? Answered

How do I control different pins of an Arduino via VB or C#. Something simple, for instance; if I created 4 buttons. Button 1 would turn ON pin 13, button 2 would turn OFF pin 13. Button 3 would turn ON pin 12 and button 4 would OFF pin 12. I know that it works via a serial port, but I can only control 1 pin. Simple stuff, but I just can't figure it out. PLEASE HELP!!!!

Question by cmcg182   |  last reply


How could I load a txt file into a HTA (HTML Application) Multi-line Textbox? Answered

Hello, I have an HTA file in it is a multi line textbox, I would like to load a txt file into this textbox. the script language is VBScript here is the textbox   Thanks in advance 1Animan

Question by animan1   |  last reply


how do you make a picture pop up using notepad and saving it as a .vbs file?

I am trying to figure out how to make a picture pop up using notepad and saving it as a .vbs file?how do you make it pop up after this script code:dim answeranswer=MsgBox("hello",16,"hello")answer=MsgBox("how are you", 16,"hello")*selected picture*answer=MsgBox("yes", 16,"hello")using notepad and saved as a .vbs file.Your help will be greatly appreciated.

Question by salvador13   |  last reply


I NEED HELP WITH VISUAL BASIC CODE CAN ANYONE HELP ME? Please Inbox me :)?

I am creating a game for my class at school using vb,and i am creating a game that is basically the Blackberry"Bubble Popper". There are a bunch or little balls on the form( all random colors and painted in vb) i have the game board set up and everything, i just can not figure out how to use the timer to make the game work. What i want to do is have all the balls running on one timer so that when a group of two or more balls the same color are clicked they disappear, giving the player a point for each ball popped and then the balls above must fall into the empty places. INBOX ME FOR MORE DETAILED INFO AND IF YOU HAVE QUESTIONS

Question by rickick   |  last reply


How do i identify drone camera wires?

Hi I have a small drone which was run over, but the camera survived and i'd like to re-purpose the little camera. The camera has only three wires on a connector, it has a space at the back for a micro sd card too. On the pcb where the three wireds are connected the black is marked vb-, the red is marked vb+ and the blue wire is marked P12. Obviosly vb+ & - are easy to desypher. Can anyone help me identify the P12 connection? Would this be a trigger wire of some sort and how do i connect it to actually trigger between capture picture/capture video/off? Also, is it safe to assume that if connected correctly, that this camera can work as a stand alone camera with no other interface being that it has a slot for micro sd card? Thanks in advance for any help :)

Question by GhengisKhan1981   |  last reply


How to make barcode using VB.NET

I need to make a barcode in my Visual Basic .NET projects? Is there any available solutions? Can you help me with code?

Topic by ellismadison275   |  last reply


Is there a way i can can control the arduino from a distance

(code and program wise) And not using the arduino's seral monitor? programs could be VB Pytham Pixilate... code ????????????

Question by Pyrotechnic-Robot   |  last reply


where can i find non-HTML vbscript tutorials?

I have been hunting for a vbs tutorial and cant find one that follows up with anything can anyone help?

Question by eoscondor   |  last reply


How do I control DC &amp; Stepper motors using my PC?

I need to control 4 DC motors (no speed control, only direction) and 1 stepper motor (again no speed control, only direction) for an engineering project of mine using a PC. I am not sure if I should use the serial or the parallel port. Also, I'm comfortable using VB. So it would be helpful if someone could help me with the interfacing circuits and the code or atleast point me to some resources! Please help!

Question by exchequer598   |  last reply


C voice lessons?

Hiya! I just got a new Sansa fuze for Xmas (8 gigs, Installed Rockbox, IT ROCKS!!!) and I wana start learning C. I actually already started, But I best process info when I hear it. Where can I find simple English (Russian or Hebrew also welcome) lessons of the C programming language? I have learned the basics of both C# and VB 5.0, So it don't have to be THAT easy... any help?

Question by netbus 


Anyone know of a good decompiler? Answered

I was recently asked to make some mods to a program I made a few years ago, however, I can't for the life of me find my source code.  Does anyone know of a free decompiler that I can use?  I tried a few that I found on Google, but they all wanted money, and I'm not willing to spend the money. I made the program with VB express 2005, (the file I want to decompile is a .exe file obviously) and I currently use Visual Studio 2010.  (I still have my VB 2005 install disc if I need it... but I think there is no reason why I should need it) Thanks in advance!

Question by thegeeke   |  last reply


How do i connect my created device into my program?

I am creating an ultrasonic device which i want to interface into my program, how is it possible? please help me anyone..

Question by vpuato   |  last reply


Adobe Flash to Blackberry application

I haven't developed anything in years (software). Back when I used to, there was an app that converted VB code to Palm apps. Is/are there apps out there that can do this for the Blackberry? I'd specifically like to develop an app with Flash and convert it for use on the Blackberry.

Question by Sovereignty 


how do you load a Java script Variable from a webpage into a VB program?

I would like to have the Visual Basic progam to load the user logged into Habbo via the variable habboName and make the title in the title bar (HabboName - HabbOS.)           Code: document.habboLoggedIn = true; var habboName = "Habboname"; var habboId = 25724911; var facebookUser = false; var habboReqPath = ""; var habboStaticFilePath = "http://images.habbo.com/habboweb/50_e3801d20ad745cc86660598ea0c4bdf4/15/web-gallery"; var habboImagerUrl = "/habbo-imaging/"; var habboPartner = ""; var habboDefaultClientPopupUrl = "http://www.habbo.com/client"; window.name = "060fd7869028127ca5d9aa2f02167c8f4e70651d"; if (typeof HabboClient != "undefined") { HabboClient.windowName = "060fd7869028127ca5d9aa2f02167c8f4e70651d"; }  

Question by drmjj55 


How should I decorate my space ship? Answered

I am making a rocket out of a refridgerator box for VBS. I will be spray painting it silver/grey, and it will have a door to enter it.  Does anyone know what I can put on the rocket (windows, control panels, nuts and bolts, etc.) that will make it more space-like?

Question by Alayer   |  last reply


make interface for sending text (using vb6) to a running led matrix arduino uno?

I was succed to make my running led matrix using arduino uno, now i get trouble to make interfaceng for it (sending text etc). thanks alot for your replay..

Question by faisolhanif   |  last reply


How to connect a mobile phone to a vb.net application?

Hi, i'm new to vb.net programming and im trying to connect a mobile phone to a vb application, can you help me how? and what is the easiest way to connect the phone? I did a little research and came up with MSCOMM controls but i really don't have any idea on how to use the commands and where.

Question by code123   |  last reply


Can you control an Arduino with Visual Basic? Answered

If it is posible could some awesome person give me the code for Visual basic express to light a light on the arduino by clicking on a button in VB I am trying to control a vecial that has alot of motors and sensors so i thought to use an ardoino instead of a 20 wire teather. It wil stil hfave a teather but it will only be a USB wire. Thanks!!!!!!!!!!!!!

Question by Pyrotechnic-Robot   |  last reply


What are all the command lists used in Notepad?

Hi, I am Newbie to Profession.  I was wondering if anyone have knowledge about coding in notepad. Can you post all the command lists used in notepad? If you do, please seperate them. for e.g. Batch - echo vbs DO LOOP And also can you show me an example of how it is used?

Topic by Newbie To Profession   |  last reply


for the 8x8x8 led cube what would i change in the ready made code to make the cube work with a usb to parallel cable?

I have the code for the 8x8x8 led cube from this instructable https://www.instructables.com/id/How-to-build-a-8x8x8-led-cube-English-version/ and am trying to make it work with a usb to parallel cable. I'm using vb 6.0

Question by deanevans   |  last reply


How would a code for a batch file go to change multiple files from say .exe to .txt go? Answered

I am trying to write a batch file that renames multipile files with different extentions to the same one e.g. .txt. Would it be possilbe to get the same effects from a .vbs file? And then if I didn't want how would I delete all of them? Thx in advance

Question by QwertyuioLP   |  last reply


PLEASE HELP! Visual Basic in excel programming help!? Answered

I need help to program in VB in excel i want to make a program that when i put a memory stick (like one in a camera) it automatically recognizes it sorts between photo and video puts the videos and pictures into separate folders onto a WDMybooklive (personal cloud 2 terabyte) and then deletes the files on the memory card all automatically and with visual basic in excel. Thank You!

Question by Xixfas   |  last reply


How do I make a program start on my usb when you click on it in My Computer??

I have written a program in vbs and put it on my usb. When you start it it asks you for a password then if you get it right it unlocks some folder if you get it wrong it asks you to return it to a spesifc (can't spell) address. My question is how do I make that program start when you click on the usb in My Computer???

Question by QwertyuioLP   |  last reply


simulation error? Answered

Main:irin [1000,main],C.3,b0 if b0=16 then ahead if b0=18 then right if b0=19 then left ahead:high C.0,B.5 ,C.1,B.4 pause 300 goto main right: high B.5,B.4 pause 300 goto main left: high C.0,C.1 pause 300 goto main this is the code when i try to simulate it  the programming editor says variable not found can you please tell me the reason

Question by robot1398   |  last reply


VB.net VLC plugin take screen shot from the running video ?

Hello every one, I'm making a program in VB.NET that includes a VLC Plugin, according to the video running in the plugin some actions will be taken, my problem is in making a simple button that simply takes a screen shot of that video, I tried to use : VLCP.video.takeSnapshot() , but it gives me an error and I even can't know where will that snapshot will be saved ! So please help me in this, and another question ... how can I make it record too ?

Question by Hawk-Eagle   |  last reply