Jump to content

Open Programs Using Vb


Phatclocker911

Recommended Posts

Hey, i was recently trying to make a program in VB where it opens notepad and on screen keyborde then the mouse moves around so stuff types in notepad.... but i can't get the open program code to work can someone help me out...

Share this post


Link to post
Share on other sites

Use the Process control, then expand the startinfo property, and go down to the filename, type in "notepad.exe". Then create a button or whatever to launch the program. Go to the code of the button and type in...

 

process1.start()

 

you can put in a variable that is a string inside the brackets to specify the file to automatically open up when the process launches. This is optional of course.

 

You just need the syntax above to launch the program.

 

BTW I have only done this in VB.NET Not sure if it works in VB 6 or older.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...