We already know that double-clicking the desk.cpl file in the system32 directory or using the command line
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
So, heh, I thought there seems to be a function of looping to do something in the program. Let's try a batch file:
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:
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
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:
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:
[ Last edited by qinchun36 on 2009-7-9 at 10:05 ]
rundll32 shell32.dll,Control_RunDLL desk.cplcan 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,DisplayTestSettingsWSo, 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.exeWhen 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
| Rater | Score | Time |
|---|---|---|
| Evangel | +1 | 2009-07-09 23:02 |
Attachments

