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-08-10 09:00
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » The close button is playing hide-and-seek with you View 2,489 Replies 25
Floor 16 Posted 2008-07-23 13:54 ·  中国 浙江 温州 电信
新手上路
Credits 4
Posts 2
Joined 2008-07-23 11:59
18-year member
UID 121944
Gender Male
Status Offline
How to switch the mouse back?
Floor 17 Posted 2008-07-23 14:25 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Go to Control Panel -> Mouse -> Uncheck the box before "Switch primary and secondary buttons"
Floor 18 Posted 2008-07-24 21:17 ·  中国 广东 汕头 电信
新手上路
Credits 16
Posts 8
Joined 2008-07-24 18:23
18-year member
UID 122018
Gender Male
Status Offline
Personally, this is more terrifying:

@echo off
title Close Button Hide-and-Seek
RUNDLL32 USER32.DLL,SwapMouseButton
:1
color f0
mode con cols=39 lines=10
echo Can you close it?
ping/n>nul
color 0f
mode con cols=44 lines=14
echo Can you close it?
ping/n>nul
color f0
mode con cols=49 lines=19
echo Can you close it?
ping/n>nul
color 0f
mode con cols=54 lines=24
echo Can you close it?
ping/n>nul
if "%1"=="" reg add HKCU\Console /v QuickEdit /t REG_DWORD /d 0 /f
::RUNDLL32 USER32.DLL,SwapMouseButton
set /a cols=%random% %% 100 + 20
set /a lines=%random% %% 30 + 10
color f0
mode con cols=%cols% lines=%lines%
start "" %0 nested
start %~n0 &exit
Floor 19 Posted 2008-07-24 21:24 ·  中国 广东 汕头 电信
新手上路
Credits 16
Posts 8
Joined 2008-07-24 18:23
18-year member
UID 122018
Gender Male
Status Offline
Actually, it's just combining everyone's (files or things). After running, there will be many windows. It is suggested to save what you have at hand well before trying. I currently don't know how to close it. I have no choice but to restart. If any expert knows how to close it, please let me know.
Floor 20 Posted 2008-07-24 21:45 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Can I hold down Shift and then click Close?
Floor 21 Posted 2008-10-05 14:48 ·  中国 广东 广州 鹏博士宽带
高级用户
★★★
Credits 740
Posts 373
Joined 2008-05-23 14:40
18-year member
UID 119498
Gender Male
From 中国,广东
Status Offline
Who can modify it to random size? Those who can will get extra points!
别看我是高级用户,其实菜鸟一个,^-^
Floor 22 Posted 2008-10-05 16:25 ·  中国 广东 广州 天河区 电信
初级用户
Credits 23
Posts 11
Joined 2008-08-29 14:18
17-year member
UID 124475
Gender Male
Status Offline
Can I use the %random% system parameter? That is, set mode con cols=%random% lines==%random%
Floor 23 Posted 2008-10-06 21:07 ·  中国 广东 广州 白云区 电信
初级用户
Credits 59
Posts 46
Joined 2007-04-10 00:25
19-year member
UID 84529
Gender Male
Status Offline
Hehe~
The mouse stops when you right-click.
Floor 24 Posted 2008-10-07 13:28 ·  中国 福建 三明 电信
高级用户
★★
论坛上抢劫的
Credits 551
Posts 246
Joined 2006-09-21 12:35
19-year member
UID 63270
Status Offline
Originally posted by driver1998 at 2008-10-5 14:48:
Who can change it to random size? Those who can will get bonus points!

Randomization is not difficult at all!!
@echo off
title Hide and Seek of Close Button
RUNDLL32 USER32.DLL,SwapMouseButton
:1
color f0
set /a num1=%random%/500
set /a num2=%random%/500
mode con cols=%num1% lines=%num2%
echo Can you click the close button?
ping/n>nul
goto 1
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
driver1998 +8 2008-10-26 19:48
Floor 25 Posted 2008-10-07 21:06 ·  中国 广西 桂林 电信
新手上路
Credits 9
Posts 7
Joined 2008-10-07 18:58
17-year member
UID 127686
Gender Male
Status Offline
Right-click on the icon in the top-left corner or double-click the icon in the top-left corner to close it.
Floor 26 Posted 2008-10-26 19:50 ·  中国 广东 广州 鹏博士宽带
高级用户
★★★
Credits 740
Posts 373
Joined 2008-05-23 14:40
18-year member
UID 119498
Gender Male
From 中国,广东
Status Offline
Originally posted by lotus516 at 2008-10-7 01:28 PM:

Randomization is not difficult at all!!
@echo off
title Hide and Seek of Close Button
RUNDLL32 USER32.DLL,SwapMouseButton
:1
color f0
set /a num1=%random%/500
set /a num2=%random%/500
mode con cols=%num1% ...


Thanks, learned it, and have added 8 points for you.
别看我是高级用户,其实菜鸟一个,^-^
Forum Jump: