Jump to content

Recommended Posts

Posted

i need to change the properties of the cmd.exe window. size font layout.

does anyone know how to do that from within a script ?

maybe registry, maybe a cmd parameter ?

thx j.

Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Posted (edited)

i need to change the properties of the cmd.exe window. size font layout.

does anyone know how to do that from within a script ?

maybe registry, maybe a cmd parameter ?

thx j.

Change Window Size

$Pos = WinGetPos("TITLE")
WinMove ("title", "", $Pos[0], $Pos[1] , width , height)

Change Font Color

From within command line, execute "color 02"

Use "Color/?" for other variation

[EDIT] Oops.. Didn't see over 700 posts before... I don't think this will help you, as I'm willing to bet your looking for something better... :P[EDIT]

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

Posted

http://phatness.com/node/1643

Basically, as I've understood, you need to append REG_SZ which is named to increasing zero like:

Value name:     Value type:     Value:
       0                   REG_SZ           Arial
      00                  REG_SZ        Courier New

under the key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont"

Also, there is this key "HKEY_CURRENT_USER\Console" for other properties although I couldn't manage to change properties directly without invoking the console's properties window. Require a little more patience.

Posted (edited)

I come back with a simple solution... :P

Create a shortcut to cmd.exe... Make all the changes to cmd by right clicking on the shortcut, and selecting properties... Those changes will be saved in the lnk... You can pack with with AutoIt and use it that way... :unsure:

Or you could use ResHacker to modify cmd.exe in the way you want, and then unpack it to the host machine... Try this site, it has some useful info for opening CMD in unique ways using .cmd files...

http://www.virtualplastic.net/wint/showtweak.php?tweak_id=73

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

Posted

i will try the suggestions tomorrow....

i need to do this "on the fly", from a running script. i cannot rightclick and edit.... and i would like to permanently change the params until the script finishes, and then restore the before values.......

complicated ?

thx meanwhile

j.

Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Posted

i will try the suggestions tomorrow....

i need to do this "on the fly", from a running script. i cannot rightclick and edit.... and i would like to permanently change the params until the script finishes, and then restore the before values.......

complicated ?

thx meanwhile

j.

@jennico

this is my 4nt's reg management for CMD's properties.

try this;

;--------------------------------------------------------------------------------------------------------------------;

; REG_IMPORT Begin 2008-08-28(Thu) 18:06:38 W+0.000s 1140(+1.11KB) [___A_________] C:Ycm-Pid_02040-F_Reg.tmp [Line12630];

; 2008-08-28(Thu) 18:06:38 CRC=0xFEFC5DD0 - ChangMinYang 010-3163-0488 year1969@naver.com InitTime+31m31s ;

;--------------------------------------------------------------------------------------------------------------------;]

[-HKEY_CURRENT_USER\Console]

[HKEY_CURRENT_USER\Console]

"CodePage"=dword:000003B5

"ColorTable00"=dword:00000000

"ColorTable01"=dword:00CD0000

"ColorTable02"=dword:00009600

"ColorTable03"=dword:00B49700

"ColorTable04"=dword:000000B4

"ColorTable05"=dword:00B400B4

"ColorTable06"=dword:0000D2DC

"ColorTable07"=dword:00CCCCCC

"ColorTable08"=dword:00979797

"ColorTable09"=dword:00FF0000

"ColorTable10"=dword:0000FF00

"ColorTable11"=dword:00FFFF00

"ColorTable12"=dword:000000FF

"ColorTable13"=dword:00FF00FF

"ColorTable14"=dword:0000FFFF

"ColorTable15"=dword:00FFFFFF

"CurrentPage"=dword:00000002

"CursorSize"=dword:00000064

"FaceName"="Terminal"

"FontFamily"=dword:00000030

"FontSize"=dword:000C0008

"FontWeight"=dword:00000190

"FullScreen"=dword:00000000

"HistoryBufferSize"=dword:00000032

"HistoryNoDup"=dword:00000001

"InsertMode"=dword:00000001

"LoadConIME"=dword:00000000

"NumberOfHistoryBuffers"=dword:00000001

"PopupColors"=dword:000000f5

"QuickEdit"=dword:00000800

"ScreenBufferSize"=dword:10000077

"ScreenColors"=dword:00000007

"WindowPosition"=dword:00000000

"WindowSize"=dword:00320077

;--------------------------------------------------------------------------------------------------------------------;

; REG_IMPORT Ended 2008-08-28(Thu) 18:06:38 W-1.000s 1140(+1.11KB) [___A_________] C:Ycm-Pid_02040-F_Reg.tmp [Line12630];

; 2008-08-28(Thu) 18:06:39 CRC=0x432B54B2 - ChangMinYang 010-3163-0488 year1969@naver.com InitTime+31m32s ;

;--------------------------------------------------------------------------------------------------------------------;

Posted

yes, this is it , it seems !

thank you.

it looks very comfortable to modify. will play with the values.

funny: my vals for FontFamily, FontWeight, FontSize are all 0. maybe this means some default.

thx j.

Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Posted (edited)

i found a thread about that topic. at first i thought it's the autoit forum, but it only looks alike. :P

j.

but there are more registry locations. link

Edited by jennico
Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...