Hello I need some help
I am using a Batch file to write a VBS
The VBS uses sendkeys on the Batch file
Obviously focus can be taken away from the Batch file which could cause problems
So I am asking for one of two solutions
A way to bring the Batch file into focus or only send keystrokes to that specific Batch file
Thanks in advance
[Batch and VBS] Keeping focus on Batch?
Started by Mairu, Aug 05 2009 02:25 AM
3 replies to this topic
#1
Posted 05 August 2009 - 02:25 AM
|
|
|
#2
Posted 05 August 2009 - 07:29 AM
Errr... huh? You may need to post some code because it sounds like you're doing something rather strange.
#3
Posted 05 August 2009 - 09:17 AM
I don't have anything down in code yet so I'll try to make it easier to understand
User runs Batch file
-Creates a new VBS file
-Runs that VBS file
All this I can do but then...
VBS file runs
-Finds the Batch file that made it
-Simulates keyboard input in that file (If it's still running)
I hope that makes it clearer
User runs Batch file
-Creates a new VBS file
-Runs that VBS file
All this I can do but then...
VBS file runs
-Finds the Batch file that made it
-Simulates keyboard input in that file (If it's still running)
I hope that makes it clearer
#4
Posted 05 August 2009 - 09:55 AM
No. Generally, the Batch file will be paused while the VBS file is running, so I don't see how you're doing keyboard input to the Batch file. It also sounds VERY odd to be using two different scripting systems like this.


Sign In
Create Account

Back to top









