| View previous topic :: View next topic |
| Author |
Message |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Jul 15, 2003 3:32 pm Post subject: aha - cmd.exe |
|
|
Success! It was the cmd.exe program that was running full-screen instead of windowed. I couldn't browse to it and change the settings, however. I had to run it, and then do alt-Enter to make it a window, then access the properties from the window's top bar.
But - it works, all runs hidden now, and life is good.
Thanks for the replies. |
|
| Back to top |
|
 |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Wed Jul 16, 2003 1:40 am Post subject: |
|
|
Found a better solution then alt enter. Well at least for xp pro. Have not had a change to test it on any other platforms yet. The below code adds a registry key to your curent user\colsole key that is \%SystemRoot%_System32_cmd.exe\ this sub key holds custom setting for your cmd prompt. "goto the properties setting on a command prompt same settings colors change etc" If you have not changed any of these properties then the key will not be there. Changing values in this subkey will effect all cmd.exe prompts that launch under the current user. so those cmds that launch a child cmd can be hidden by running them way off your screen. or running them very tiny so that big black window isnt in your face.
If this works on nt and 2k I would be interested in hearing about it.
same goes for 95/98 with command.com
| Code: |
Title cmd prompt
DIALOG CREATE,cmd prompt,-1,0,293,209
DIALOG ADD,BUTTON,BUTTON1,12,42,202,24,Full Screen
DIALOG ADD,BUTTON,BUTTON2,40,42,202,24,Window 0|0
DIALOG ADD,BUTTON,BUTTON3,68,42,202,24,Window Tiny 0|0
DIALOG ADD,BUTTON,BUTTON4,96,42,202,24,Window Tiny off viewable screen
DIALOG ADD,BUTTON,BUTTON5,124,42,202,24,Window 0|0 Different Color
DIALOG ADD,BUTTON,BUTTON6,154,42,202,24,Reset to Default CMD Prompt settings
DIALOG SHOW
:Evloop
wait event
goto @event()
:BUTTON1BUTTON
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",FullScreen,1,DWORD
run cmd.exe /k
WAIT .5
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",FullScreen,0,DWORD
wait 3
window send,@WINACTIVE(N),@alt(@cr())
goto evloop
:BUTTON2BUTTON
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowPosition,0,DWORD
run cmd.exe /k
goto evloop
:BUTTON3BUTTON
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowPosition,0,DWORD
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowSize,0,DWORD
run cmd.exe /k
wait 3
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowSize,4391059,DWORD
goto evloop
:BUTTON4BUTTON
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowPosition,3000,DWORD
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowSize,0,DWORD
run cmd.exe /k
wait .5
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowSize,4391059,DWORD
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowPosition,0,DWORD
goto evloop
:BUTTON5BUTTON
%I = @input(input 23 39 199 or just pick a number for grins,23)
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowPosition,0,DWORD
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",WindowSize,4391059,DWORD
REGISTRY WRITE,curuser,"Console\%SystemRoot%_System32_cmd.exe",ScreenColors,%I,DWORD
run cmd.exe /k
goto evloop
:BUTTON6BUTTON
REGISTRY DELETE,curuser,"Console\%SystemRoot%_System32_cmd.exe"
goto evloop
:Close
exit
|
|
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Wed Jul 16, 2003 11:16 am Post subject: |
|
|
| cool. I'll check it out. |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Mar 07, 2006 8:13 pm Post subject: |
|
|
Just to update this old discussion:
I ran into the same problem on a Win 2000 computer today. I wasn't able to get the cmd.exe properties to change to run it hidden, until I changed the font from "Raster" to "Lucida". Then my console programs ran hidden without any problem.
FYI if anyone is interested. _________________ Joe Floyd |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|