-
Notifications
You must be signed in to change notification settings - Fork 1
/
jispeak.cmd
51 lines (46 loc) · 1.23 KB
/
jispeak.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
setlocal EnableExtensions EnableDelayedExpansion
set LOG="%USERPROFILE%\JAWSInspectSpeechOutput.csv"
set JI=%ProgramFiles%\Freedom Scientific\Inspect\Inspect.exe
set USAGE1="Usage: 'jispeak on' to begin capturing, or 'jispeak off' to stop capturing."
set USAGE2="(NOTE: Capturing will overwrite %LOG% if it exists)"
set STARTCAPTURE="Capturing JAWS Inspect speech output to: %LOG%"
set STOPCAPTURE="Capturing complete!"
set OVERWRITEWARNING="!LOG! already exists. If you continue, the file will be overwritten. Do you want to continue?"
if exist "!JI!" (
if "%1%"=="on" (
if exist !LOG! (
choice /c YN /m !OVERWRITEWARNING!
if !errorlevel!== 1 (
goto captureon
) else (
goto end
)
) else (
goto captureon
)
) else if "%1%"=="off" (
goto captureoff
) else (
echo !USAGE1:^"=!
echo !USAGE2:^"=!
goto :end
)
) else (
echo "Couldn't find JAWS Inspect!"
echo "!JI!"
)
:captureon
echo !STARTCAPTURE:^"=!
start /b "" "!JI!" /startspeechcapture:"!LOG!"
goto :end
:captureoff
echo !STOPCAPTURE:^"=!
start /b "" "!JI!" /stopspeechcapture
dir "!LOG!"
goto :end
:end
endlocal
exit /b
rem © The Paciello Group. All rights reserved.
rem For license information, refer to the JAWS Inspect User License Agreement