2012-03-14 14 views

Odpowiedz

4

Możesz użyć vbscript. Na przykład ten skrypt wyciszy głośniki.

set shell = CreateObject("WScript.Shell") 
shell.run"Sndvol" 
WScript.Sleep 1500 
shell.SendKeys"{TAB}" 
shell.SendKeys" " 
shell.SendKeys"%{F4}" 

można go uruchomić z konsoli z

cscript mute.vbs 

Więcej informacje o here

+0

Używam: \t 'Dim WshShell: Ustaw WshShell = WScript.CreateObject ("WScript.Shell") WshShell.SendKeys WScript.Arguments (0)' – Eugene

5

Oto rozwiązanie jedna linia: Ta linia będzie wpisać "Testing 123", a następnie uderzył Wpisz.

echo >script.vbs set shell = CreateObject("WScript.Shell"):shell.SendKeys "Testing 123{ENTER}" & script.vbs 
Powiązane problemy