How to change the cm_50Percent view to 20/80 view.
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 83
- Joined: 2004-03-14, 22:22 UTC
How to change the cm_50Percent view to 20/80 view.
Goodevening.
To my embarrasment, i just found out its possible to change the windowpanes by right-clicking on the divider.
Now i like to place an button on the bar by using the "cm_50Percent".
I need the 20/80 view, what is an exellent width for viewing mp3 info.
The question is how can i fix this view?!
TIA
Andre Linoge
To my embarrasment, i just found out its possible to change the windowpanes by right-clicking on the divider.
Now i like to place an button on the bar by using the "cm_50Percent".
I need the 20/80 view, what is an exellent width for viewing mp3 info.
The question is how can i fix this view?!
TIA
Andre Linoge
No parameter---
2Andre Linoge
Hello !
• This command can't be adjusted with some parameter, it's always back to 50%…
- Besides, when the divider is set to another ratio (any), and then you close TC, that ratio isn't saved.
That you wish should need a new special command like i.e. :
KR
Claude
Clo
Hello !
• This command can't be adjusted with some parameter, it's always back to 50%…
- Besides, when the divider is set to another ratio (any), and then you close TC, that ratio isn't saved.
That you wish should need a new special command like i.e. :
where 20(left)/80(right) is a parameter able to accept all normal possible values for right and left…PANELS_RATIO <20/80>
KR
Claude
Clo
Last edited by Clo on 2010-04-20, 09:35 UTC, edited 1 time in total.
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
-
- Junior Member
- Posts: 83
- Joined: 2004-03-14, 22:22 UTC
Re: No parameter---
I have tryed:Clo wrote:2Andre Linoge
Hello !
• This command can't be adjusted with some parameter, it's always back to 50%…
- Besides, when the divider is set to another ratio (any), and then you close TC, that ratio isn't saved.
That you wish should need a new special command like i.e. :where 20(left)/80(right) is a parameter able to accept all normal possible values for right and left…PANELS_RATIO <20/80>
KR
Claude
Clo
Command: OPENCUSTOMVIEW
and
Parameters: PANELS_RATIO <20/80>
but had no succes.
but i keep on experimenting.
Thanks
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
PowerPro script:
For 80/20 set "local Where = 7". Good luck.
P.S. Works for horizontal (default) panels only!
Code: Select all
local Where = 1
local i
local Hand = win.handle("c=TTOTAL_CMD")
flag set 1
for(i = 1; 1; i = i + 1)
hh = childwin.handle(Hand, i)
if(hh != "" && win.width(hh) == 3) do
flag clear 1
break
endif
endfor
if(pproflag(1))
quit
local HCenter = (win.left(hh) + win.right(hh))/2
local VCenter = (win.top(hh) + win.bottom(hh))/2
local expr = "ab " ++ HCenter ++ " " ++ VCenter
win.mouse(expr)
wait.for(10)
mouse rightdown
wait.for(10)
mouse rightup
for(i = 1; i <= Where; i = i + 1)
*keys {down}
endfor
*keys {enter}
P.S. Works for horizontal (default) panels only!
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
-
- Junior Member
- Posts: 83
- Joined: 2004-03-14, 22:22 UTC
After some fighting, i filled in the blanks with:Vochomurka wrote:PowerPro script:For 80/20 set "local Where = 7". Good luck.Code: Select all
local Where = 1 local i local Hand = win.handle("c=TTOTAL_CMD") flag set 1 for(i = 1; 1; i = i + 1) hh = childwin.handle(Hand, i) if(hh != "" && win.width(hh) == 3) do flag clear 1 break endif endfor if(pproflag(1)) quit local HCenter = (win.left(hh) + win.right(hh))/2 local VCenter = (win.top(hh) + win.bottom(hh))/2 local expr = "ab " ++ HCenter ++ " " ++ VCenter win.mouse(expr) wait.for(10) mouse rightdown wait.for(10) mouse rightup for(i = 1; i <= Where; i = i + 1) *keys {down} endfor *keys {enter}
P.S. Works for horizontal (default) panels only!
Command: C:\Program Files\Software\Tools\Total Commander\TOTALCMD.EXE
and
Parameters: C:\Program Files\Software\Tools\Total Commander\script\windowpane.txt("%P", "5")
I used the instructions for "how to" of the FAQ from PowerPro, but no luck.
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Just replace
with
(it is the default path, check whether it is valid).
andwith
Note that:
1. No parameter is required;
2. No file extension must be specified;
3. Plugins win.dll and childwin.dll must be in your plugins\ subfolder.
All that is said here.
Please tell me about your results.
Code: Select all
C:\Program Files\Software\Tools\Total Commander\TOTALCMD.EXE
Code: Select all
C:\Program Files\PowerPro\PowerPro.exe
and
Code: Select all
C:\Program Files\Software\Tools\Total Commander\script\windowpane.txt("%P", "5")
Code: Select all
runfile.windowpane
1. No parameter is required;
2. No file extension must be specified;
3. Plugins win.dll and childwin.dll must be in your plugins\ subfolder.
All that is said here.
Please tell me about your results.
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
You should also declare hh as local and warn about the usage of flag n°1 used.Vochomurka wrote:PowerPro script:...
Code: Select all
local Where = 1
local i
local Hand = win.handle("c=TTOTAL_CMD")
local hh
flag set 1
for(i = 1; 1; i = i + 1)
hh = childwin.handle(Hand, i)
if(hh != "" && win.width(hh) == 3) do
flag clear 1
break
endif
endfor
if(pproflag(1))
quit
local HCenter = (win.left(hh) + win.right(hh))/2
local VCenter = (win.top(hh) + win.bottom(hh))/2
local expr = "ab " ++ HCenter ++ " " ++ VCenter
win.mouse(expr)
wait.for(10)
mouse rightdown
wait.for(10)
mouse rightup
for(i = 1; i <= Where; i = i + 1)
*keys {down}
endfor
*keys {enter}
Code: Select all
local Where = 1
local i
local Hand = win.handle("c=TTOTAL_CMD")
flag set 1
for(i = 1; 1; i = i + 1)
hh = childwin.handle(Hand, i)
if(hh != "" && win.width(hh) == 3) do
flag clear 1
break
endif
endfor
if(pproflag(1))
quit
local HCenter = (win.left(hh) + win.right(hh))/2
local VCenter = (win.top(hh) + win.bottom(hh))/2
local expr = "ab " ++ HCenter ++ " " ++ VCenter
win.mouse(expr)
wait.for(10)
mouse rightdown
wait.for(10)
mouse rightup
for(i = 1; i <= Where; i = i + 1)
*keys {down}
endfor
*keys {enter}
Wish---
2Andre Linoge
Hello !
• I guess that you didn't get me :
PANELS_RATIO <20/80> is just a wish¦proposal, this doesn't exist (yet) of course…
KR
Claude
Clo
Hello !
• I guess that you didn't get me :
PANELS_RATIO <20/80> is just a wish¦proposal, this doesn't exist (yet) of course…
KR
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Right. This was one of my first scripts published 5 years ago on the Russian site only. One guy dared me to write it , and I couldn't imagine that somebody needs it.You should also declare hh as local and warn about the usage of flag n°1 used.
Frankly, these are not severe errors, and are critical for people who uses PowerPro widely. I think it is not the case.
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
-
- Junior Member
- Posts: 83
- Joined: 2004-03-14, 22:22 UTC
Re: Wish---
Ah, right. So thats why it didnt work. It was to good to be true.Clo wrote:2Andre Linoge
Hello !
• I guess that you didn't get me :
PANELS_RATIO <20/80> is just a wish¦proposal, this doesn't exist (yet) of course…
KR
Claude
Clo
-
- Junior Member
- Posts: 83
- Joined: 2004-03-14, 22:22 UTC
I have done all there is, without succes, but i suppose for this to work, Powerpro should be installed aswell??!!Vochomurka wrote:Just replacewithCode: Select all
C:\Program Files\Software\Tools\Total Commander\TOTALCMD.EXE
(it is the default path, check whether it is valid).Code: Select all
C:\Program Files\PowerPro\PowerPro.exe
andwithCode: Select all
C:\Program Files\Software\Tools\Total Commander\script\windowpane.txt("%P", "5")
Note that:Code: Select all
runfile.windowpane
1. No parameter is required;
2. No file extension must be specified;
3. Plugins win.dll and childwin.dll must be in your plugins\ subfolder.
All that is said here.
Please tell me about your results.
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Yes. And (I forgot to say) also you should better have a computer
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
-
- Junior Member
- Posts: 83
- Joined: 2004-03-14, 22:22 UTC
Now, what is that supposed to mean!! For your information, i fixed it.Vochomurka wrote:Yes. And (I forgot to say) also you should better have a computer
First i installed PowerPro (again), placed, (after copying NSP's code)
the script into PowerPro's Script folder (not the Plugins folder), added childwin.dll and tc.dll in PowerPro's Plugins folder and pushed the button, and it worked like a charm. The only bummer was the 20% was on the rightside, so i changed local Where = 7 back to local Where = 1 now i have the screen as i need it 20/80.
Thanks for the help, gents.
Now i have to re-configure PowerPro again.
Who knows ?
2Andre Linoge
Again…
Please check mail…
KR
Claude
Clo
Again…
• But sometimes, the dreams come true… Who knows ?It was too good to be true.
Please check mail…
KR
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials