Saw a script that can gray out the close button of the CMD window to prevent someone from closing the window.
[ Last edited by uiopuiop on 2008-9-14 at 02:48 PM ]
[ Last edited by uiopuiop on 2008-9-14 at 02:48 PM ]
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!
Originally posted by tireless at 2008-9-14 05:17 PM:
1 HOUR SOFTWARE has a NoClose,
If you want to hide a certain batch processing window, how to use this thing?
I tried the following script, but the focus has to move to other windows and then move back, and X only becomes grayed out. It does not take effect immediately.
test.bat
x /dahk_classConsoleWindowClass
echo test
pause
~~~~~~~~~~~~~~~~~~~~
Or:
testbat.bat
title testbat
x /dtestbat
echo test
pause
[ Last edited by uiopuiop on 2008-9-14 at 06:18 PM ]
Originally posted by uiopuiop at 2008-9-13 10:36 PM:
That's right, thanks! Great stuff!
VB has just too much code. This thing is also packed - 203kb, gray.exe is only 56kb.
Originally posted by tireless at 2008-9-14 06:41 PM:
It's not a packed shell. This is a script compiled with AutoHotkey, with the file extension .ahk. If you have AutoHotkey installed on your computer, you can just use x.ahk directly.
When you compile x.ahk into x.exe, it's just this size. After I added an icon, the size is 203 KB, and without an icon, it's 198 KB.
Originally posted by uiopuiop at 2008-9-13 10:52 PM:
Want to use it as a domain login script. The original icon is too ugly. The smaller the exe, the better, so it copies faster. Your current one still has a H icon :^)
[ Last edited by uiopuiop on 2008-9-14 at 06:54 PM ]