From 2074753cb7c5fe7639b4ab9c31bfc50fb276d09f Mon Sep 17 00:00:00 2001 From: SirEatsALotOff Date: Thu, 20 Jul 2017 18:32:03 -0500 Subject: [PATCH] Added Program Macros About f*cking time --- MacroHandler.bat | 21 +++++++++++++-------- chrome.smac | 1 + seal.bat | 21 +++++++++++++++++++++ 3 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 chrome.smac diff --git a/MacroHandler.bat b/MacroHandler.bat index a909100..61c4d9d 100644 --- a/MacroHandler.bat +++ b/MacroHandler.bat @@ -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. @@ -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=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