China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 04:54
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] The Real "Hacker": Black Screen Technology View 15,728 Replies 22
Original Poster Posted 2009-07-09 09:34 ·  中国 北京 联通
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
We already know that double-clicking the desk.cpl file in the system32 directory or using the command line

rundll32 shell32.dll,Control_RunDLL desk.cpl


can open which dialog box for desktop properties settings. After changing the resolution, there will be a black screen for a while when applying. Hehe, imagine if we keep clicking "Apply", it will always be black. At this time, the person in front of the computer really becomes a blind man groping for an elephant! Unfortunately, we can't keep clicking...

Today, I was bored and analyzed these files. I found that there are actually interfaces in desk.cpl like in dll!
Since I don't know the specific parameters, I can only test one by one to see if there are any fun functions. Sure enough, perseverance pays off, and I found a few useful ones, including the black screen. Hehe, you can execute

rundll32 desk.cpl,DisplayTestSettingsW


So, heh, I thought there seems to be a function of looping to do something in the program. Let's try a batch file:


@echo off
:OhYes
rundll32 desk.cpl,DisplayTestSettingsW
goto OhYes


Wait, don't run this, otherwise you will only have to restart. The CPU will be exhausted. Scientific research has found that each black screen can last about a second or so. It is estimated that it also depends on the machine configuration. So don't torture the CPU too much, let it rest, and also let you have a chance to KILL this P process. You can set the interval to about 1 second:


@echo off
:OhYes
rundll32 desk.cpl,DisplayTestSettingsW
ping -n 1 127.0.0.1 > nul
goto OhYes


Hehe, with this, you can play a prank. Let others only have to choose to stare at the black screen or restart. If you can add it to the startup item, uh, it's too immoral...
Of course, we have to prepare the antidote ourselves. Before executing, first enter in the run

taskkill /f /im cmd.exe


When it's dark, just press the WIN + R shortcut to switch to the run window and press Enter. But if you don't let the CPU rest, you will die...

Here's a VBS version and VBE version. Double-click to have no window, good hidden effect

Save as a.vbs file:

with createobject("wscript.shell")
do
.run "rundll32 desk.cpl,DisplayTestSettingsW",0,false
wscript.sleep 999
loop
end with


Vbe file, preset interval time 999 ms. Since there is a TAB character that can't be pasted correctly, I can only upload the file.

---------------------------------------------

There is another very cool and disgusting one. I haven't found a good solution yet. Please don't try it easily if you are not very familiar with operating the computer with the keyboard:

rundll32 desk.cpl,UpdateUIfontsDueToDPIchange


[ Last edited by qinchun36 on 2009-7-9 at 10:05 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
Evangel +1 2009-07-09 23:02
Attachments
OhYes.zip (268 bytes, Downloads: 64)
Floor 2 Posted 2009-07-09 10:22 ·  中国 江苏 苏州 电信
初级用户
★★
Credits 161
Posts 114
Joined 2009-02-20 13:00
17-year member
UID 139375
Gender Male
Status Offline
Lzoo! You're too... boring. But I like it... top it.
Floor 3 Posted 2009-07-09 10:25 ·  中国 吉林 长春 电信
初级用户
★★
Credits 132
Posts 68
Joined 2008-07-29 20:51
17-year member
UID 122345
Gender Male
Status Offline
If one day I get hold of your computer... I mean, if.
Floor 4 Posted 2009-07-09 11:22 ·  中国 北京 联通
中级用户
★★
Credits 256
Posts 133
Joined 2008-09-29 13:30
17-year member
UID 126984
Gender Male
Status Offline
Hehe, the LZ is very...
Floor 5 Posted 2009-07-09 11:24 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Always spend so much thought on this kind of thing

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 6 Posted 2009-07-09 17:32 ·  中国 北京 海淀区 联通
银牌会员
★★★
Credits 2,098
Posts 566
Joined 2007-09-11 07:27
18-year member
UID 97070
Gender Male
Status Offline
Use eXeScope to view desk.cpl:
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
WANKOILZ +1 2009-07-29 03:15
Attachments
未命名.PNG
Floor 7 Posted 2009-07-09 23:23 ·  中国 山西 忻州 电信
初级用户
★★
Credits 87
Posts 63
Joined 2008-08-23 11:28
17-year member
UID 123947
Gender Male
Status Offline
Originally posted by qinchun36 at 2009-7-9 09:34:
There is also a very cool and disgusting one, and I haven't found a good solution yet. Those who are not very familiar with operating the computer with the keyboard please don't try it easily:
--------------------------------------------------------------------------------

rundll32 desk.cpl,UpdateUIfontsDueToDPIchange



You can end the explorer process, but it seems that the font has become a bit larger~

ntsd -c q -pn explorer.exe
Floor 8 Posted 2009-07-10 00:48 ·  中国 黑龙江 哈尔滨 电信
新手上路
Credits 4
Posts 3
Joined 2009-07-09 06:05
16-year member
UID 149043
Gender Male
Status Offline
This is good, I like it
Floor 9 Posted 2009-07-10 09:03 ·  中国 北京 联通
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
Originally posted by matlan at 2009-7-9 11:23 PM:

You can end the explorer process, but it seems that the font becomes a bit larger~

ntsd -c q -pn explorer.exe


I feel it's unstable. Sometimes it becomes very large, causing the mouse to be unable to perform any operations. Sometimes the entire screen is filled with window title bars
Floor 10 Posted 2009-07-29 00:55 ·  新加坡 Microsoft
新手上路
Credits 12
Posts 6
Joined 2009-07-28 03:19
16-year member
UID 149488
Gender Male
Status Offline
This is how it looks in Vista
Floor 11 Posted 2009-07-29 02:30 ·  中国 广东 东莞 电信
新手上路
Credits 10
Posts 5
Joined 2009-07-11 06:11
16-year member
UID 149187
Gender Male
Status Offline
This is all thought of by the owner, amazing.
Floor 12 Posted 2009-07-30 03:27 ·  中国 江苏 扬州 江都区 电信
高级用户
★★★
Credits 620
Posts 329
Joined 2007-12-05 15:34
18-year member
UID 104754
Gender Male
Status Offline
This post should be a BAT prank,..., ending post
Floor 13 Posted 2009-07-31 06:01 ·  中国 上海 浦东新区 电信
初级用户
★★
Credits 107
Posts 60
Joined 2007-11-07 22:03
18-year member
UID 102010
Gender Male
Status Offline
LZ, you're quite boring!! But I admire you!
Floor 14 Posted 2009-08-04 11:18 ·  中国 云南 昆明 电信
新手上路
Credits 13
Posts 8
Joined 2006-07-22 11:31
19-year member
UID 59017
Gender Male
Status Offline
It seems there might be some input errors. The original "够很 ,很不错" has unclear parts. If it's supposed to be "够狠,很不错" which means "tough enough, very good", then the translation would be "tough enough, very good". But based on the given text as is, maybe it's a bit messy. Let's assume it's "tough enough, very good" for now as a best guess.
Floor 15 Posted 2010-12-28 20:22 ·  中国 广东 东莞 中移铁通
初级用户
★★
Credits 115
Posts 92
Joined 2010-12-24 16:57
15-year member
UID 179794
Gender Male
Status Offline
Pretty good, very good
Forum Jump: