Computer Hope

Software => Computer programming => Topic started by: takeanumber on November 29, 2007, 09:25:26 PM

Title: need some help basic .bat scripting
Post by: takeanumber on November 29, 2007, 09:25:26 PM
OK so i was wondering if i could get some help,, this site has been very resourceful,, i have a program that i use very frequently for data entry and preform the same task about 80% of the time,, the system i use is xp based,, what i would like to do is get a script that can select the program bring it to the front and preform predetermined actions basically a macro. i have built a GUI thru vb that i can link the scripts to anyone have anything they can throw my way?

the keys strokes in order in example would be F5, a, up, tab, n 5x, tab, enter

Title: Re: need some help basic .bat scripting
Post by: Sidewinder on November 30, 2007, 07:40:46 AM
Script56.chm should be installed on your machine. It's the compiled help file for VBScript. Check out the sendkeys method of the Shell object. You should be able to write a VBScript to handle this chore.

Good luck  8)

Note: VBScript has been installed with Windows since Win95C. If you cannot find the help file you can download it here (http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en)