Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Get tab position and size

Jun
770
6
I can get the position and size of a TCC window via %@winpos[=%_pid] and %@winsize[=%_pid]. Is there a way to get the position and size of a tab in Take Command?

TCC 21.00.39 x64 Windows 10 [Version 10.0.15063]
 
I meant the window below the tab. I don't want to write to the window. I want to pop up my editor over the window. That's the main feature of LIST that I use: it runs in the existing window rather than opening in a random location. The following btm file works reasonably well for a TCC console window, but not when run in a tab.

Code:
*on errormsg cancel
*setlocal
*unalias *
set pos=%@winpos[=%_pid]
set size=%@winsize[=%_pid]
set cols=%@max[10,%@eval[(%@word[1,%size] \ 7) - 6]]
set lines=%@max[10,%@eval[(%@word[0,%size] \ 11) - 6]]
"%@shfolder[42]\Eps13\bin\epsilon.exe" -p0 -ka73 -vx%@word[1,%pos] -vy%@word[0,%pos] -vc%cols -vl%lines %$

Or, maybe this suggestion will be in the next version: https://jpsoft.com/forums/threads/add-view-option-to-open-in-same-position-as-current-window.8191/
 

Similar threads

Back
Top