In Need of a batch file command
So, I need a command for batch files, or other things that a batch file can link to, that selects another window, say a text window(notepad) and then can be typed into.
I've used the vbs scripting with
Set oShell = CreateObject("WScript.Shell")
oShell.AppActivate "Window name"
oShell.SendKeys "text~"
but it will get screwy if you are using the computer, it activates, and you activate a window other than in the vbs, and it sselecs everything, or does something. I need something that links to it, not "select it" like with a mouse click. I thank anyone who can help, even if the vbs is the only way.
So, I need a command for batch files, or other things that a batch file can link to, that selects another window, say a text window(notepad) and then can be typed into.
I've used the vbs scripting with
Set oShell = CreateObject("WScript.Shell")
oShell.AppActivate "Window name"
oShell.SendKeys "text~"
but it will get screwy if you are using the computer, it activates, and you activate a window other than in the vbs, and it sselecs everything, or does something. I need something that links to it, not "select it" like with a mouse click. I thank anyone who can help, even if the vbs is the only way.
Last edited:
My Computer
- Computer Manufacturer/Model Number
- Toshiba Satellite L755
- OS
- Windows 7 Home Premium 64bit
- Memory
- 500 GB