English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want a batch file to change a setting on my computer but it has to push some buttons to change it. Thanks

2007-01-06 15:45:51 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

You can't send tabs with batch files.

You should be using .vbs, or something like AutoIT.

Here is a sample vbs file to show you how to send tabs. Just paste everything into a text file, and name it file.vbs, then double click it.

set obj = CreateObject("WScript.Shell")

obj.Run "notepad.exe"
WScript.Sleep 500
obj.SendKeys "{TAB} That was a tab {ENTER}"
Wscript.sleep 500
obj.SendKeys "{TAB}see?{TAB} :D"

2007-01-06 15:58:28 · answer #1 · answered by Mack D 3 · 0 0

You can't really do it unless you have some keyboard simulation software. However, settings might be able to be changed without simulating pressing keys. What are you trying to change?

2007-01-06 15:49:03 · answer #2 · answered by T J 6 · 0 0

fedest.com, questions and answers