Shivter
Shivter
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Use getInput64.dll, it's a plugin that allows you to use Mouse input without pausing execution. I've even got documentation on how to use it at https://github.com/Shivter14/Shivter14/blob/main/GetInputDoc.md
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
¿
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
And that's why this message should be quoted
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Alright now I fixed it with the power of editing a message
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
oh wait wrong code
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
and after the ... into an infinite loop
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Put the code before the ... at the start of your script
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
if not defined \e for /f %%a in ('echo prompt $E^| cmd') do set "\e=%%a"
for /f "tokens=1-4 delims=:.," %%a in ("!time: =0!") do set /a "t2=((((1%%a-1000)*60+(1%%b-1000))*60+(1%%c-1000))*100)+(1%%d-1000)"
...
for /f "tokens=1-4 delims=:.," %%a in ("!time: =0!") do set /a "t1=((((1%%a-1000)*60+(1%%b-1000))*60+(1%%c-1000))*100)+(1%%d-1000), deltaTime=(t1 - t2), t2=t1, timer.50cs+=deltaTime"
if !timer.50cs! geq 50 (
echo=¤OV %\e%[999;1H%\e%[48;2;0;31;63;38;2;255;255;255m%\e%[2K !focusedWindow!%\e%[999C%\e%[32D!date! !time!
set /a "timer.50cs%%=50"
)
if not defined \e for /f %%a in ('echo prompt $E^| cmd') do set "\e=%%a"
for /f "tokens=1-4 delims=:.," %%a in ("!time: =0!") do set /a "t2=((((1%%a-1000)*60+(1%%b-1000))*60+(1%%c-1000))*100)+(1%%d-1000)"
...
for /f "tokens=1-4 delims=:.," %%a in ("!time: =0!") do set /a "t1=((((1%%a-1000)*60+(1%%b-1000))*60+(1%%c-1000))*100)+(1%%d-1000), deltaTime=(t1 - t2), t2=t1, timer.50cs+=deltaTime"
if !timer.50cs! geq 50 (
echo=¤OV %\e%[999;1H%\e%[48;2;0;31;63;38;2;255;255;255m%\e%[2K !focusedWindow!%\e%[999C%\e%[32D!date! !time!
set /a "timer.50cs%%=50"
)
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
wait
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Just put it at the start of your script
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Well, this can set %\e% to the ESC character:
if not defined \e for /f %%a in ('echo prompt $E^| cmd') do set "\e=%%a"
if not defined \e for /f %%a in ('echo prompt $E^| cmd') do set "\e=%%a"
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
You know how to define escape variables though, right?
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Just remove the ¤OV part
152 replies
PDProgram Dream
Created by Shivter on 9/11/2024 in #📦┃project-showcase
Shivtanium - OS-Like environment in Batch
Here specifically is the part that does the bottom bar:
for /f "tokens=1-4 delims=:.," %%a in ("!time: =0!") do set /a "t1=((((1%%a-1000)*60+(1%%b-1000))*60+(1%%c-1000))*100)+(1%%d-1000), deltaTime=(t1 - t2), t2=t1, timer.50cs+=deltaTime"
if !timer.50cs! geq 50 (
echo=¤OV %\e%[999;1H%\e%[48;2;0;31;63;38;2;255;255;255m%\e%[2K !focusedWindow!%\e%[999C%\e%[32D!date! !time!%\e%[H
set /a "timer.50cs%%=50"
)
for /f "tokens=1-4 delims=:.," %%a in ("!time: =0!") do set /a "t1=((((1%%a-1000)*60+(1%%b-1000))*60+(1%%c-1000))*100)+(1%%d-1000), deltaTime=(t1 - t2), t2=t1, timer.50cs+=deltaTime"
if !timer.50cs! geq 50 (
echo=¤OV %\e%[999;1H%\e%[48;2;0;31;63;38;2;255;255;255m%\e%[2K !focusedWindow!%\e%[999C%\e%[32D!date! !time!%\e%[H
set /a "timer.50cs%%=50"
)
152 replies