One key for 50% to 100% of the file panel

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
randysejas
Junior Member
Junior Member
Posts: 17
Joined: 2016-02-27, 14:12 UTC

One key for 50% to 100% of the file panel

Post by *randysejas »

Hi! i'm new... i set the key 5 to view my file panel at 100% but to change it back to the 50% i need to set other key (for example 6).
It is possible to use only one key to change to 100% to 50% of the file panel??... Thanks in advance‼

User avatar
petermad
Power Member
Power Member
Posts: 9600
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: One key for 50% to 100% of the file panel

Post by *petermad »

No, currently not.

Maybe somebody has or can make an AHK script for it?
License #524
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.965 (x64)
TC 3.0 on Android 6.0
Get:
Extended Total Commander Menus | TC Languagebar | TC Dark Help | PHSM-Calendar

User avatar
Stefan2
Power Member
Power Member
Posts: 2884
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: One key for 50% to 100% of the file panel

Post by *Stefan2 »

Example commands for 100% / 50% view >>> https://ghisler.ch/board/viewtopic.php?p=369413#p369413


There is also an toggle between a 50%/50% vertical panel split and a 100% single panel
by *MVV » Wed Feb 19, 2014
https://ghisler.ch/board/viewtopic.php?p=279447#p279447
you will need TCFS2Tools installed.




 

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3708
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: One key for 50% to 100% of the file panel

Post by *Horst.Epp »

randysejas wrote:
2020-04-26, 15:08 UTC
Hi! i'm new... i set the key 5 to view my file panel at 100% but to change it back to the 50% i need to set other key (for example 6).
It is possible to use only one key to change to 100% to 50% of the file panel??... Thanks in advance‼
I think TCFS2 and its Tools from MVV can do that.
Here a section from its readme:
Example of command that expand active panel width up to 95% by moving separator if its position is 50%, or reset it back to 50% otherwise.
sp_sw_50_95=run_item(sp_set_active, sepPos == 50 ? 95 : 50)

viewtopic.php?f=6&t=29700
Windows 10 Home x64 May 2020 Update, Version 2004 (OS Build 19041.264)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.51 x64 / x86, Everything 1.4.1.983 (x64)

User avatar
Stefan2
Power Member
Power Member
Posts: 2884
Joined: 2007-09-13, 22:20 UTC
Location: Europa

AHK: Toggle view 50%//100% of the file panel with AutoHotkey

Post by *Stefan2 »

Toggle view 50%//100% with AutoHotkey

FAQs: automate/script TC with AutoHotkey AHK
https://ghisler.ch/board/viewtopic.php?p=350976#p350976

Button
Command: "%Commander_Path%\Tools\AHK\AutoHotkey.exe" "%Commander_Path%\Tools\AHK\Scripts\ToggleView.ahk"
Parameters:
Start path:
Icon: "%Commander_Path%\Tools\AHK\AutoHotkey.exe"
Tooltip: ToggleView.ahk



FAQs: How to create an button / Icons / Variables / Quoting
https://ghisler.ch/board/viewtopic.php?p=344803#p344803
FAQs: User-Defined Command (UDC) (usercmd.ini) em_command - Own commands to use in button or to assign a keyboard shortcut to.
https://ghisler.ch/board/viewtopic.php?p=344777#p344777



ToggleView_50%-100%.ahk
ToggleView.ahk

Code: Select all

; Toggle view 50%//100% with AutoHotkey
; Stefan 18:53 26.04.2020
; https://ghisler.ch/board/viewtopic.php?p=384184#p384184
; FAQs: TC and AutoHotkey >>https://ghisler.ch/board/viewtopic.php?p=350976#p350976

;;;ToggleView.ahk - Button
;;;Command: "%Commander_Path%\Tools\AHK\AutoHotkey.exe" "%Commander_Path%\Tools\AHK\Scripts\ToggleView.ahk"
;;;Parameters:
;;;Start path:
;;;Icon: "%Commander_Path%\Tools\AHK\AutoHotkey.exe"
;;;Tooltip: ToggleView.ahk


EnvGet, CommPath, Commander_Path
MyINI = %CommPath%\ahkuser.ini


;TOTALCMD.inc
;cm_50Percent=909;Window separator at 50%
;cm_100Percent=910;Window separator at 100%
;cm_SeparateTree1=3201;One separate tree panel
;cm_SeparateTreeOff=3200;Disable separate tree panel
;cm_VisButtonbar2 =2944;Show/hide vertical button bar



If (FileExist(MyINI))
	{
		;IniRead, OutputVar, Filename, Section, Key [, Default]
		IniRead, myPanelWidth,   %MyINI%, VIEW, PanelWidth, 0
	}

If (myPanelWidth=0)
{
	;cm_50Percent,cm_SeparateTreeOff
	SendMessage, 1075, 909,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 2944,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 3200,0 , , ahk_class TTOTAL_CMD
	IniWrite, 1,      %MyINI%, VIEW, PanelWidth
}else{
	;cm_100Percent,cm_SeparateTree1
	SendMessage, 1075, 910,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 2944,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 3201,0 , , ahk_class TTOTAL_CMD
	;IniWrite, Value, Filename, Section, Key
	IniWrite, 0,      %MyINI%, VIEW, PanelWidth
}



HTH?

User avatar
randysejas
Junior Member
Junior Member
Posts: 17
Joined: 2016-02-27, 14:12 UTC

Re: One key for 50% to 100% of the file panel

Post by *randysejas »

Horst.Epp wrote:
2020-04-26, 16:20 UTC
randysejas wrote:
2020-04-26, 15:08 UTC
Hi! i'm new... i set the key 5 to view my file panel at 100% but to change it back to the 50% i need to set other key (for example 6).
It is possible to use only one key to change to 100% to 50% of the file panel??... Thanks in advance‼
I think TCFS2 and its Tools from MVV can do that.
Here a section from its readme:
Example of command that expand active panel width up to 95% by moving separator if its position is 50%, or reset it back to 50% otherwise.
sp_sw_50_95=run_item(sp_set_active, sepPos == 50 ? 95 : 50)

viewtopic.php?f=6&t=29700
I have interest to use TCFS2... but like i've said "i'm really new on this".... and i have a few questions of TCFS2, one... i downloaded and it's for 32 bits (this will work with my TC 64 bits??)... and as i want to begin with that with something simple, like hide my titlebar... i have understood that TCFS2 can do that... please help me to begin with that.

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3708
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: One key for 50% to 100% of the file panel

Post by *Horst.Epp »

randysejas wrote:
2020-04-26, 17:32 UTC
Horst.Epp wrote:
2020-04-26, 16:20 UTC
randysejas wrote:
2020-04-26, 15:08 UTC
Hi! i'm new... i set the key 5 to view my file panel at 100% but to change it back to the 50% i need to set other key (for example 6).
It is possible to use only one key to change to 100% to 50% of the file panel??... Thanks in advance‼
I think TCFS2 and its Tools from MVV can do that.
Here a section from its readme:
Example of command that expand active panel width up to 95% by moving separator if its position is 50%, or reset it back to 50% otherwise.
sp_sw_50_95=run_item(sp_set_active, sepPos == 50 ? 95 : 50)

viewtopic.php?f=6&t=29700
I have interest to use TCFS2... but like i've said "i'm really new on this".... and i have a few questions of TCFS2, one... i downloaded and it's for 32 bits (this will work with my TC 64 bits??)... and as i want to begin with that with something simple, like hide my titlebar... i have understood that TCFS2 can do that... please help me to begin with that.
The bitness of the TCFS2 exe is not importand here and the TCFS2 tools DLL is available in x64 (TCFS2Tools64.dll)
For help and examples please look thru the long tread about it.
The author (MVV) reads this forum regulary and answers questions which are not found in the readme.
Windows 10 Home x64 May 2020 Update, Version 2004 (OS Build 19041.264)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.51 x64 / x86, Everything 1.4.1.983 (x64)

User avatar
randysejas
Junior Member
Junior Member
Posts: 17
Joined: 2016-02-27, 14:12 UTC

Re: AHK: Toggle view 50%//100% of the file panel with AutoHotkey

Post by *randysejas »

Stefan2 wrote:
2020-04-26, 16:54 UTC
Toggle view 50%//100% with AutoHotkey

FAQs: automate/script TC with AutoHotkey AHK
https://ghisler.ch/board/viewtopic.php?p=350976#p350976

Button
Command: "%Commander_Path%\Tools\AHK\AutoHotkey.exe" "%Commander_Path%\Tools\AHK\Scripts\ToggleView.ahk"
Parameters:
Start path:
Icon: "%Commander_Path%\Tools\AHK\AutoHotkey.exe"
Tooltip: ToggleView.ahk

ToggleView_50%-100%.ahk

ToggleView.ahk

Code: Select all

; Toggle view 50%//100% with AutoHotkey
; Stefan 18:53 26.04.2020
; https://ghisler.ch/board/viewtopic.php?p=384184#p384184
; FAQs: TC and AutoHotkey >>https://ghisler.ch/board/viewtopic.php?p=350976#p350976

;;;ToggleView.ahk - Button
;;;Command: "%Commander_Path%\Tools\AHK\AutoHotkey.exe" "%Commander_Path%\Tools\AHK\Scripts\ToggleView.ahk"
;;;Parameters:
;;;Start path:
;;;Icon: "%Commander_Path%\Tools\AHK\AutoHotkey.exe"
;;;Tooltip: ToggleView.ahk


EnvGet, CommPath, Commander_Path
MyINI = %CommPath%\ahkuser.ini


;TOTALCMD.inc
;cm_50Percent=909;Window separator at 50%
;cm_100Percent=910;Window separator at 100%
;cm_SeparateTree1=3201;One separate tree panel
;cm_SeparateTreeOff=3200;Disable separate tree panel
;cm_VisButtonbar2 =2944;Show/hide vertical button bar



If (FileExist(MyINI))
	{
		;IniRead, OutputVar, Filename, Section, Key [, Default]
		IniRead, myPanelWidth,   %MyINI%, VIEW, PanelWidth, 0
	}

If (myPanelWidth=0)
{
	;cm_50Percent,cm_SeparateTreeOff
	SendMessage, 1075, 909,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 2944,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 3200,0 , , ahk_class TTOTAL_CMD
	IniWrite, 1,      %MyINI%, VIEW, PanelWidth
}else{
	;cm_100Percent,cm_SeparateTree1
	SendMessage, 1075, 910,0 , , ahk_class TTOTAL_CMDIt works fine!.... but is there a way to use all of these with a shortcut key??
	SendMessage, 1075, 2944,0 , , ahk_class TTOTAL_CMD
	SendMessage, 1075, 3201,0 , , ahk_class TTOTAL_CMD
	;IniWrite, Value, Filename, Section, KeyIt works fine!.... but is there a way to use all of these with a shortcut key??
	IniWrite, 0,      %MyINI%, VIEW, PanelWidth
}



HTH?
It works fine!.... but is there a way to use all of these with a shortcut key??

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3708
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: AHK: Toggle view 50%//100% of the file panel with AutoHotkey

Post by *Horst.Epp »

randysejas wrote:
2020-04-26, 17:45 UTC
...
It works fine!.... but is there a way to use all of these with a shortcut key??
Make an em_command from it and you can assign a hotkey.
Windows 10 Home x64 May 2020 Update, Version 2004 (OS Build 19041.264)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.51 x64 / x86, Everything 1.4.1.983 (x64)

User avatar
randysejas
Junior Member
Junior Member
Posts: 17
Joined: 2016-02-27, 14:12 UTC

Re: One key for 50% to 100% of the file panel

Post by *randysejas »

The bitness of the TCFS2 exe is not importand here and the TCFS2 tools DLL is available in x64 (TCFS2Tools64.dll)
For help and examples please look thru the long tread about it.
The author (MVV) reads this forum regulary and answers questions which are not found in the readme.
Thanks Horst.Epp‼ i will do that!

User avatar
randysejas
Junior Member
Junior Member
Posts: 17
Joined: 2016-02-27, 14:12 UTC

Re: One key for 50% to 100% of the file panel

Post by *randysejas »

Make an em_command from it and you can assign a hotkey.
Thanks man! it works‼

Post Reply