forked from pebcak/ingress-ice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress-ice.cmd
61 lines (59 loc) · 1.49 KB
/
ingress-ice.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
52
53
54
55
56
57
58
59
60
61
@echo off
SETLOCAL EnableDelayedExpansion
REM ingress-ice start script
REM (http://github.com/nibogd/ingress-ice)
REM Double-click this file and follow the
REM instructions
set FILE="%APPDATA%\.ingress-ice.conf"
:args
IF '%1'=='/?' GOTO :help
IF '%1'=='-h' GOTO :help
IF '%1'=='-r' GOTO :config
if '%1'=='-c' GOTO :count
GOTO :check
:count
shift
set COUNT=%1
shift
goto :args
:check
IF EXIST "ingress-ice.conf" (
set FILE="ingress-ice.conf"
GOTO :start
)
IF EXIST %FILE% (
GOTO :start
) else (
copy ice\ingress-ice.conf.sample %FILE%
GOTO :config
)
:config
cls
echo Ingress ICE, Automatic screenshooter for ingress intel map
echo.
echo I've created a blank configuration file for you.
echo Notepad will be opened now. Insert your settings, save the file and close the notepad. Ice will start automatically
echo.
echo You can edit your configuration any time, just start 'reconfigure.cmd'
echo.
notepad %FILE%
:start
cls
echo Existing config file found (%FILE%). Starting ice...
if '%COUNT%' NEQ '' echo Taking %COUNT% screenshots...
phantomjs.exe --ignore-ssl-errors=true ice\ice.js %FILE% %COUNT%
pause
goto :eof
:help
echo Ingress ICE, an automated screenshooter for ingress intel map
echo Copyright (c) Nikitakun (github.com/nibogd)
echo.
echo Usage:
echo ingress-ice.cmd [-r] [-h]
echo.
echo Options:
echo -r Edit the configuration
echo -h Print this help
echo.
echo Please visit https://ingress.netlify.com/ or http://github.com/nibogd/ingress-ice for more information
:eof