Thanks a bunch Vic, that was perfect. I saw your other email first, and did the batch method, and it worked fine. So, I guess deleting the vbs is not necessary. ? Hmm, I added that line and it didn't work, it keep saying 'couldn't find the vbs file' before anything loaded. So, I removed it. Evidently the vbs file is needed for the file to execute.
I'll post later exactly what I am doing, it will probably help others wanting to make some shortcuts for multiple app's at the same time. Thanks again, -Clint God Bless Us All Clint Hamilton, Owner http://OrpheusComputing.com � ----- Original Message ----- From: "vic" <[EMAIL PROTECTED]> Forgot to add the delete command at the end of the batch file. Obviously, you would want the vbs deleted if the bat method is necessary. So just add DEL CTRLA.VBS to the end of the batch file before cls. vic ----- Original Message ----- From: "vic" <[EMAIL PROTECTED]> > I use vbs to do this, the send keys command. > You can either use a straight vbs file or incorporate it into bat file. > > VBS > set sh=WScript.CreateObject("WScript.Shell") > sh.SendKeys "^(a)" > > BAT > > @echo off > ECHO.set sh=WScript.CreateObject("WScript.Shell")>Ctrla.vbs > ECHO.sh.SendKeys "^(a)">>Ctrla.vbs > start ctrla.vbs > cls > > hth > http://groups.yahoo.com/group/WinTips-Tricks/ > vic > ----- Original Message ----- > From: "OrpheusComputing.com" <[EMAIL PROTECTED]> > > Group, can anyone tell me please how to enter keystrokes or > > simulate keystrokes in a batch file? (In this case, I need > > to have [ctrl] and [a] pressed at the same time, then > > released). > > Thanks, > > -Clint ============= PCWorks Mailing List ================= Don't see your post? Check our posting guidelines & make sure you've followed proper posting procedures, http://pcworkers.com/rules.htm Contact list owner <[EMAIL PROTECTED]> Unsubscribing and other changes: http://pcworkers.com =====================================================
