[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

BAT画画由 cmd1152 和 路过 共同制作

  1. @echo off
  2. title 画画
  3. color 0f
  4. set $=%path%
  5. for /f "delims== eol=$" %%a in ('set ') do (set "%%a=")
  6. set path=%$%
  7. setlocal enabledelayedexpansion
  8. set "$=□▁▂▃▄▅▆▇▏▎▍▌▋▊▉█■★☆▲△▼▽●○◆◇∶∵∴∷※←↑→↓↖↗↘↙┃━┏┓┗┛┣┫┳┻╋×√§◎¤()《》<>①②③④⑤⑥⑦⑧⑨⑩∞∝∽≌∈∩∪∧∨⊙⊕⌒⊿∥⊥∠∫‰%〒℉℃°±╔╦╗╠╬╣╚╩╝═║▓卍卐〓囧の♀♂*‖,。?!:;、·…~&@#︵︶︷︸︹︺︿﹀︽︾﹁﹂﹃﹄︻︼/|\︴_﹏﹍﹎ ̄﹋﹉﹊ˋˇ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  9. for /l %%a in (0,1,1024) do (set C=!$:~%%a,1!
  10. if "!C!" neq "" (set $%%a=!C!&set #Z=%%a))
  11. set/a #x=32,#y=32
  12. call :Clear
  13. call :ReAlloc %#x% %#y%
  14. :Loop 绘图
  15. setlocal
  16. for /l %%a in (1,1,%#y%) do (set "li%%a=┃"
  17. for /l %%b in (1,1,%#x%) do (for /f %%c in ("!.%%b.%%a!") do (set li%%a=!li%%a!!$%%c!)))
  18. cls
  19. echo;┏%$w%┓
  20. for /l %%a in (1,1,%#y%) do (echo;!li%%a!┃)
  21. echo;┗%$w%┛
  22. echo;保存    读取    清除    调整
  23. echo;%$%
  24. endlocal
  25. ::检测鼠标
  26. title 画笔!$%.s%!
  27. cmos 0 -1 1
  28. set /a P=%errorlevel%
  29. set /a X=%P:~0,-3%
  30. set /a Y=%P%-1000*%X%-1
  31. set /a nX=(X-1)/2
  32. if defined .%nX%.%Y% (set/a .%nX%.%Y%=%.s%)
  33. if !Y! gtr %#y% (
  34. set/a Y-=2
  35. if !Y!==%#y% (
  36. set/a sx=nx/2
  37. if !sx!==0 (call :Save)
  38. if !sx!==2 (call :Read)
  39. if !sx!==4 (call :Clear)
  40. if !sx!==6 (call :Adjust)
  41. ) else (
  42. set/a "n=(Y-#Y-1)*wx/2+nx"
  43. if defined $!n! (set/a .s=n)
  44. )
  45. )
  46. goto :Loop
  47. :ReAlloc [x] [y] 重新分配
  48. set/a #x=%1,#y=%2
  49. for /l %%x in (1,1,%1) do (for /l %%y in (1,1,%2) do (if not defined .%%x.%%y (set/a .%%x.%%y=0)))
  50. set "$w="
  51. for /l %%a in (1,1,%#x%) do (set $w=!$w!━)
  52. set/a wx=#x*2+16,wy=#y+#z/#x+6
  53. mode con cols=%wx% lines=%wy%
  54. goto :eof
  55. :Save 保存
  56. cls&echo;保存到 *.batht2
  57. set /p bcwjm=文件名(不要后续名):^>
  58. (for /f "delims=" %%z in ('set #^&set .') do (echo;%%z))>%bcwjm%.batht2
  59. goto :eof
  60. :Read 读取
  61. cls&echo;读取 *.batht2
  62. set /p dqwjm=文件名(不要后续名):^>
  63. if exist %dqwjm%.batht2 (
  64. FOR /F "delims=" %%z in (%dqwjm%.batht2) do (set %%z)
  65. for /l %%x in (1,1,%#x%) do (for /l %%y in (1,1,%#y%) do (if not defined .%%x.%%y (set/a .%%x.%%y=0))))
  66. call :ReAlloc %#x% %#y%
  67. goto :eof
  68. :Clear 清空
  69. for /f "delims==" %%z in ('set .') do (set "%%z=")
  70. for /l %%a in (1,1,%#x%) do (for /l %%b in (1,1,%#y%) do (set .%%a.%%b=0))
  71. set .s=0
  72. goto :eof
  73. :Adjust 调整窗口大小
  74. cls&echo;调整窗口大小
  75. set /p ckdx=请输入新的窗口大小(格式[x,y],如[32,32]。):
  76. for /f "delims=, tokens=1-3*" %%x in ("%ckdx%") do (if "%%y" neq "" (if "%%z"=="" (set/a #x=%%x,#y=%%y)))
  77. if %#x% lss 8 (set/a #x=8)
  78. if %#y% lss 8 (set/a #y=8)
  79. call :ReAlloc %#x% %#y%
  80. goto :eof
复制代码
需要第三方Cmos
求评分QWQ
1

评分人数

梦依旧在,只是,心有余而力渐有不足
年年岁岁花相似,岁岁年年人不同

返回列表