怎样将bat显示窗口全屏化?
bat吧
全部回复
仅看楼主
level 7
可爱的wrfr 楼主
就比如那个黑客帝国数码雨
2015年05月03日 15点05分 1
level 7
可爱的wrfr 楼主
不用汇编,仅bat命令是否可以?@vfasdgsdf
2015年05月03日 15点05分 2
level 7
可爱的wrfr 楼主
2015年05月03日 15点05分 3
level 11
mode con:根据屏幕分辨率调整长宽,模拟全屏[汗]我想到的是这个
2015年05月03日 15点05分 4
只好先试试了
2015年05月03日 16点05分
level 8
模拟键盘上的ctrl加enter
2015年05月03日 17点05分 5
可以具体一些吗
2015年05月04日 04点05分
好高端的样子[滑稽]
2015年05月04日 04点05分
回复 永远de满月 :那个是dos游戏全屏
2015年05月06日 03点05分
level 14
1.那个黑客帝国数码雨不是bat...
2.不用汇编的方法也有,ls就是一个例子,但是Vista以上cmd不支持全屏
2015年05月04日 09点05分 6
表示见识不足1.ls是什么?2.请发穿送门
2015年05月04日 13点05分
回复
�ɰ���wrfr
:ls楼上[汗]
2015年05月05日 15点05分
回复
د��Ӧʦؼ��
:看到这楼莫名喜感
2015年05月14日 15点05分
level 14
@echo off
CAPI
set CAPI=API Call user32 GetSystemMetrics ;0
set /a x=%CAPI_Ret%+21
set CAPI=API Call user32 GetSystemMetrics ;1
set /a y=%CAPI_Ret%+59
mode con cols=%x% lines=%y%
set CAPI=API Call kernel32 GetConsoleWindow
set hCMD=%CAPI_Ret%
set CAPI=API Call user32 SetWindowPos ;%hCMD% ;-1 ;0 ;0 ;0 ;0 ;3
set CAPI=API Call user32 MoveWindow ;%hCMD% ;-6 ;-25 ;%x% ;%y% ;1
pause
用CAPI注入版模拟全屏,最高支持到Win 7,字体就没模拟了.
(非注入版SetWindowPos和MoveWindow调用失败,改天有时间再找原因...)
htt[太阳]p://http://www.bathome.n[太阳]et/thread-19238-1-1.html
2015年05月04日 15点05分 7
高高兴兴带回家研究去喽!
2015年05月04日 16点05分
手打打这代码要多久
2015年05月14日 23点05分
level 14
@echooff
CAPI
CAPI Call user32 GetSystemMetrics #0
set /a x=%errorlevel%+21
CAPI Call user32 GetSystemMetrics #1
set /a y=%errorlevel%+59
mode con cols=%x% lines=%y%
CAPI Call kernel32 GetConsoleWindow
set hCMD=%errorlevel%
CAPI Call user32 SetWindowPos
#%hCMD% #
-1
#0 #
0
#0 #
0 #3
CAPI Call user32 MoveWindow
#%hCMD% #
-6 #-25
#%x% #
%y% #1
pause
非注入版,误杀率小,Win8.1下仍有效
htt[太阳]p://ww[太阳]w.bathome.n[太阳]et/viewthread.php?tid=13867
2015年05月05日 09点05分 8
去掉第二行的CAPI
2015年05月05日 09点05分
duang duang.叼!!!谢谢啦
2015年05月05日 15点05分
#%hCMD% #
-6
#-25 #
%x%
#%y% #
1 怎么翻译?
2015年05月05日 15点05分
还有
#-1 #
0
#0 #
0
#0 #
3
2015年05月05日 15点05分
level 7
可爱的wrfr 楼主
这些命令无效,cmd不识别,这是怎么回事@aiwozhonghuaba
2015年05月09日 05点05分 9
需要第三方CAPI的支持
2015年05月09日 15点05分
level 11
数码雨不是exe么,有BAT版本的?求分享,rootsbook=163.com谢谢
2015年05月14日 17点05分 10
level 9
bat格式代码拿去不谢,自己存为.bat文件
@echo off
title 黑客帝国
setlocal ENABLEDELAYEDEXPANSION
color 0a
for /l %%i in (1,1,80) do (
set Down%%i=0
)
:loop
for /l %%j in (1,1,80) do (
set /a Down%%j-=1
if !down%%j! LSS 0 (
set /a Arrow%%j=!random!%%4
set /a Down%%j=!random!%%15+10
)
if "!Arrow%%j!" == "1" (
set /a chr=!random!%%2
set /p=!chr!<nul
) else (
set /p= <nul
)
)
goto loop
goto :eof
2017年12月31日 04点12分 11
大神厉害[真棒][真棒]
2018年07月13日 00点07分
@任你风剑 额,半年后的回复……其实这个不是我写的,是我复制别人的。
2018年07月14日 03点07分
那么麻烦干啥 直接用 @ echo off @ color 0a :M dir /b /s goto :M (话说我现在回答有些晚了)
2020年03月24日 10点03分
@◎VVVF◎ 嗯,的确,还是dir用来**来的快……(tree也不错[滑稽]) 哎,两年了,想想当时啥都不会,发的程序自己都看不懂,就直接一个复制
2020年03月24日 11点03分
level 6
vbs倒是可以[灯泡]
2020年03月25日 03点03分 12
1