4console plugin

Aug 2, 2011
258
4
Berlin, Germany
Hi,

I have a little problem with the 4console plugin:
Code:
C:\Program Files (x86)\JPSoft\TCMD >ver /r
 
TCC  13.04.52  Windows 7 [Version 6.1.7601]
TCC Build 52  Windows 7 Build 7601  Service Pack 1
Registered to
 
C:\Program Files (x86)\JPSoft\TCMD >plugin /i
Module:      \\aaaaaa\xxxxxx\!admin\bin\4console.DLL
Name:        4CONSOLE
Author:      Vincent Fatica
Email:      moc.rr.yncwt@snigulp
Web:
Description: Various console-related utilities
Implements:  _ALTENTER,_BUFROWS,_BUFCOLS,_BUFX,_BUFY,_CURCHAR,_CURSOR,_FGCO
OSE,@BOOL,@BUFCHAR,@FONTH,@FONTW,@ICONS,ALTENTER,CFIND,CONHELP,CONSIZE,CSBF
 
Version:    6.6  Build 6
 
C:\Program Files (x86)\JPSoft\TCMD >consize /q
Window (screen coords)
 
        Console:        1548 x 1099
        Client:        1520 x 1068
        Left,top:        277 , 38
        right,bottom:  1825 , 1137
        Font size:        8 x 12
 
Console (chars)
 
        Window:          190 x 89
        Buffer:          190 x 9999
        Max console:    239 x 84
        Max w/scroll:    237 x 82
 
C:\Program Files (x86)\JPSoft\TCMD >consize /w 180 70 /b 180 9999 /p 200 70
TCC: (Sys) Falscher Parameter.
"Falscher Parameter" means "wrong parameter" ;-)

Could be the reason that the window is already pretty big sized and cannot be shrinked?
 
May 20, 2008
11,432
99
Syracuse, NY, USA
Hi,

I have a little problem with the 4console plugin:
Code:
C:\Program Files (x86)\JPSoft\TCMD >ver /r
 
TCC  13.04.52  Windows 7 [Version 6.1.7601]
TCC Build 52  Windows 7 Build 7601  Service Pack 1
Registered to
 
C:\Program Files (x86)\JPSoft\TCMD >plugin /i
Module:      \\aaaaaa\xxxxxx\!admin\bin\4console.DLL
Name:        4CONSOLE
Author:      Vincent Fatica
Email:      moc.rr.yncwt@snigulp
Web:
Description: Various console-related utilities
Implements:  _ALTENTER,_BUFROWS,_BUFCOLS,_BUFX,_BUFY,_CURCHAR,_CURSOR,_FGCO
OSE,@BOOL,@BUFCHAR,@FONTH,@FONTW,@ICONS,ALTENTER,CFIND,CONHELP,CONSIZE,CSBF
 
Version:    6.6  Build 6
 
C:\Program Files (x86)\JPSoft\TCMD >consize /q
Window (screen coords)
 
        Console:        1548 x 1099
        Client:        1520 x 1068
        Left,top:        277 , 38
        right,bottom:  1825 , 1137
        Font size:        8 x 12
 
Console (chars)
 
        Window:          190 x 89
        Buffer:          190 x 9999
        Max console:    239 x 84
        Max w/scroll:    237 x 82
 
C:\Program Files (x86)\JPSoft\TCMD >consize /w 180 70 /b 180 9999 /p 200 70
TCC: (Sys) Falscher Parameter.
"Falscher Parameter" means "wrong parameter" ;-)

Could be the reason that the window is already pretty big sized and cannot be shrinked?

I don't know what's happening. I can't reproduce it (I can only go to 1280 x 1024). Anyone else ... ?
 
May 20, 2008
3,515
4
Elkridge, MD, USA
I have a similar issue - when the /w parameters specify a window size that will not fit, it just reports "wrong parameter" without indicating which parameter is wrong and why, and does nothing. If I specify a window size that will not fit my preference would be to set the window as big as possible without an error message, but setting an exit code to represent the error. By selecting codes for each possible parameter errors that are powers of 2 (i.e., separate bits for different errors) multiple errors could be reported (logical OR).
 
May 20, 2008
11,432
99
Syracuse, NY, USA
Like Rex, I don't make up the error codes and their text messages. If a Windows API function fails I call GetLastError() and then FormatMessage() and the text you see comes from Windows.

As for determining the biggest console allowed ... well that's iffy. The GetLargestConsoleConsoleWindowSize() function is inaccurate as is (IIRC) CONSOLE_SCREEN_BUFFER_INFO::dwMaximumWindowSize. I've done my best to improve on them but apparently I haven't got it perfect. CONSIZE is very complicated and changing it without screwing it up is hard. When I have the time I'll try to make it better.

I am more likely to have success (much quicker, too) if I implemented a MAXCON command using the info supplied by Windows but I'm not sure those who want the biggest console possible would be happy with it! Myself, I determined the biggest console by experiment and use a MAXCON alias.
 
Aug 2, 2011
258
4
Berlin, Germany
For me I bypass the problem by using CONSIZE only if the actual dimensions are 25x80.
I assume that if they are different, then the user has already adjusted them manually according to his needs.
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly Alt+Left Alt-Right CYCLE (4CONSOLE) Plugins 3
vefatica 4CONSOLE Plugins 36
C 4Console's Scoll command n/w in v8 but w in v14 Plugins 5
S 4CONSOLE.DLL Plugins 15
S 4console.dll - divide by zero Plugins 0
S CONSIZE command in Vince's 4console.dll Plugins 3
nickles [4console] SETICON Plugins 3
Joe Caverly 64-bit Plugin development using PureBasic Plugins 15
R New Plugin Plugins 0
Alpengreis elevated plugin questions Plugins 3
fpefpe utf-8 support in sdk/plugin api Plugins 4
S How to? Can @DU function in 4Utils64 plugin somehow cater for dirs with spaces? Plugins 3
vefatica Plugin access to arrays? Plugins 4
vefatica How big is a plugin's parameter buffer? Plugins 5
C @knownpath plugin Plugins 0
Charles Dye Updated OSD plugin Plugins 0
Joe Caverly C# plugin framework for JPSoft's TCC Plugins 0
dcantor Help for newest version of TEXTUTILS plugin Plugins 10
dcantor UISTUFF plugin missing help topic Plugins 12
M How to? Use SafeChars plugin... Plugins 2
dcantor Error in SAFECHARS plugin v 1.9.0 Plugins 2
dcantor Request for documentation for ISO8601 plugin Plugins 4
vefatica Possible with a plugin? Plugins 6
dcantor Inconsistency between textutils plugin and wrap utility Plugins 2
M (Stupid?) Problem with 64-bit 4Utils plugin... Plugins 3
H Latest ISO8601 plugin? Plugins 1
Charles Dye New plugin: QKeys Plugins 34
S Plugin to quickly locate all files hard linked together Plugins 5
S Documentation Plugin everything.dll Plugins 5
newbie How to? Multi-plugin installation errors, Re: FedUtils8 Plugins 7
vefatica Plugin -> thread -> Command() -> Ctrl-C? Plugins 20
Charles Dye A weirdoid plugin question Plugins 6
M SafeChars plugin misbehaving... Plugins 3
M A weird error re a plugin... Plugins 0
vefatica Plugin dilemma Plugins 2
fpefpe Documentation Plugin API/SDK Plugins 3
C Looking for Vince's old 4UTILS plugin for TCMD v8 Plugins 1
S DESKTOP plugin - anyone ? Plugins 0
C How to? a plugin to sort Outlook Express "rules" Plugins 0
M ISO Plugin: Yes, it's wonderful, but it could be yet more wonderful... Plugins 7
M The ISO plugin is wonderful, but it lacks a little something... Plugins 22
Charles Dye Beta plugin: HidePasswords Plugins 3
M ISO8601 Plugin not "reporting" errors to TCC... Plugins 4
S WAD ISO8601 Plugin Plugins 15
Joe Caverly Plugin and 64-bit TCC Plugins 3
C Problem with FixNames plugin Plugins 9
dcantor Suggestion and request for DBF plugin Plugins 6
dcantor Suggestion for SafeChars plugin Plugins 7
M Charles, I just installed the "new" SafeChars plugin, ... Plugins 5
M A problem with the SafeChars Plugin... Plugins 30

Similar threads