Skip to content

Commit

Permalink
Added Program Macros
Browse files Browse the repository at this point in the history
About f*cking time
  • Loading branch information
SirEatsALotOff authored Jul 20, 2017
1 parent 0f44e0a commit 2074753
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
21 changes: 13 additions & 8 deletions MacroHandler.bat
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
@echo off
cls
title Macro Handler V.0.0.01
title Macro Handler V.0.0.02
::Macro Handler, this one may require some coding knowledge, sorry about that.
:main
set txtmcount=0
set prgmcount=0
echo Create macros by going to SEAL.
echo Right now we only handle text macros. Sorry about that.
::If you're reading this for whatever reason, have a nice day :)
set txtmcount=0
for %%x in (*.txt) do set /a txtmcount+=1
for %%x in (*.smac) do set /a prgmcount+=1
echo Text Macros Available: %txtmcount%

echo Program Macros Available: %prgmcount%
::This program is meant to be as streamlined as possible, thus most macro creation will be up to the seal.bat file and/or this programs config.
set /p macroID= MacroID=


if exist %macroID%.txt goto textMacro
if exist %macroID%.smac goto prgMacro
cls
goto textMacro
goto main
:textMacro
::textMacro acts as a sort of large scale clipboard. Once you excecute the command, it puts whatever it needs to into your clipboard, so you can paste. (paste with CTRL V)
::this bit sets the next variable with the text in the file.
Expand All @@ -25,9 +26,13 @@ echo "%txtmcro%" successfully copied! (use CTRL - V to paste anywhere)
echo|set /p=%txtmcro%|clip
cls
set macroID " "
goto main

exit
::I'll be working on the program opening macros next, but the user input is going to be a huge pain because I don't want you to have to type
::an entire directory just to use it.
:prgMacro
::now THIS is going to be a huge pain on seal.bat code. This part is easy.
set /p pgrmcro=<C:\SEAL\%macroID%.smcr
Start "" "%macroID%"
cls
exit
1 change: 1 addition & 0 deletions chrome.smac
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
21 changes: 21 additions & 0 deletions seal.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if %NumericalI%== Predict goto RPre
if %NumericalI%== Info goto GetInfo
if %NumericalI%== startup goto startUp
if %NumericalI%== news goto News
if %NumericalI%== prg goto PRG
cls
::END OF COMMANDS
goto main
Expand All @@ -44,6 +45,7 @@ echo txt or TXT = Create text macro
echo Predict = Opens up a sarcastic magic 8 ball.
echo Info = Menu that allows you to collect information about PCs on your network, and other SEAL files.
echo startup = Allows user to enable SEAL to run on startup
echo prg = Create a program macro
echo.
echo FOR MACRO HANDLER
echo Type in the ID of prefered macro, and hit enter.
Expand Down Expand Up @@ -394,3 +396,22 @@ echo.
call :ColorText 60 "NEXT UPDATE"
PING 1.1.1.1 -n 1 -w 2000 >NUL
pause
:PRG
echo Type in the new program macro ID
set /p x= ID=
if exist %x%.smac goto PRGNEXT
cls
goto PRGNEXT
:PRGNEXT
cls
echo.
echo Copy the directory of your application into the input.
echo Make sure to include the application name itself.
explorer C:\Program Files (x86)
PING 1.1.1.1 -n 1 -w 2000 >NUL
set /p prgthing= Directory=
@echo>C:\SEAL\%x%.smac
@echo %prgthing%> %x%.smac
set prgthing=" "
set x=" "
goto main

0 comments on commit 2074753

Please sign in to comment.