How to? Multi-Display Configuration

Aug 3, 2012
5
0
I have a three display configuration and I use TCC 14 for a lot of skripting things on Windows 7 64-bit Ultimate.

I have not yet found a solution for that: I want to move a window (not necessarily the active one) but with a known title name from Display X to Display 2.

Is this possible?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,491
90
Albuquerque, NM
prospero.unm.edu
I haven't tried it, but it seems like ACTIVATE /POS should do what you want. (Usually a second monitor will have X coordinates that are either negative or very large.)
 
May 20, 2008
11,520
102
Syracuse, NY, USA
I haven't tried it, but it seems like ACTIVATE /POS should do what you want. (Usually a second monitor will have X coordinates that are either negative or very large.)
It works. For example,
Code:
activate "%_wintitle" pos=1400,200,400,300
moved TCC to my second monitor (on the right, x=1280 to 2559).
But ACTIVATE POS(=left,top,width,height) is very, very hard to use. You must specify width,height (and who knows those?). Is there an easier way to simply move a window? Perhaps (if SetWindowPos() is used) when width,height is missing, the SWP_NOSIZE flag could be used.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
It works. For example,
Code:
activate "%_wintitle" pos=1400,200,400,300
moved TCC to my second monitor (on the right, x=1280 to 2559).
But ACTIVATE POS(=left,top,width,height) is very, very hard to use. You must specify width,height (and who knows those?). Is there an easier way to simply move a window? Perhaps (if SetWindowPos() is used) when width,height is missing, the SWP_NOSIZE flag could be used.

See %@WINSIZE and %@WINPOS. It would be trivial to define an alias.
 
May 20, 2008
11,520
102
Syracuse, NY, USA
See %@WINSIZE and %@WINPOS. It would be trivial to define an alias.
Yeah, I had a look at @WINSIZE. It gives height,width; POS needs width,height. I suppose that'll roughly double the length of an alias.
And while ACTIVATE may need the window caption quoted, @WINSIZE can't deal with a quoted caption.
This works but I wouldn't call it trivial.
Code:
v:\> alias movewin `activate %1 /POS=%2,%3,%@word[1,%@winsize[%@unquote[%1]]],%@word[0,%@winsize[%@unquote[%1]]]`
 
Aug 3, 2012
5
0
thanks a lot to all. this helped me a lot. I now use a combination of START and ACTIVATE with MAX/MIN that opens my windows, moves them and puts them to the size that I want.
 
Similar threads
Thread starter Title Forum Replies Date
D How to use multi-line DO to loop through first level directory names Support 5
rps Multi-column DIR /v not displaying all files. Support 5
vefatica FFIND and multi-line regular expressions Support 4
D xp support and multi-license Support 5
T WAD Difference between TCC and CMD in handling multi-command lines Support 6
V V - Multi-Pane File Manager Support 14
Daniel P How to Purchase a Multi-System License for TCC? Support 2
B Alias with multi line definitions not assigned Support 6
T Fixed multi-line alias issue Support 13
T Closing multi-tab TCMD crashes Support 4
D Individual vs multi-system licenses Support 1
C Language setup files, to use in creating similar for Multi-Edit Support 2
vefatica Single-line DO inside nested multi-line DOs? Support 9
C multi-INI file merging Support 1
G v28 Display Issue Support 7
samintz WAD Display wrapping issue Support 5
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
Jesse Heines How to? How to display picture creation date with dir command Support 6
B Fullwidth Unicode forms display incorrectly Support 5
D Need to set Take Command font size when switching to high DPI display Support 0
T FFind - can we display n number of lines after the find? Support 2
Joe Caverly PSHELL Blank Line Display Support 2
Alpengreis The TCMD Display problems and font size ... Support 2
vefatica Display of special characters in aliases. Support 25
R How to? Display text same as in CMD Support 14
T TCC display issue Support 1
MikeBaas How to? SELECT: exclude files / display prompt Support 2
D WAD TASKBAR options LogOff and ShutDown do not display a dialog Support 2
rfaquino How to? Display filename being copied on a single line Support 2
rps How to? Portable TCMD display problem Support 2
L Windows 8.1 version display Support 5
mfarah How to? Getting pdir to display relative paths. Support 2
D Folders pane display problem when starting Support 4
D Folders pane display problem after rename Support 0
A WAD Limitations on display of unicode punctuation marks Support 11
N Incorrect display under TCMD 13 Support 1
Joe Caverly Display the VIEW window in a Take Command tab window Support 2
L FFIND no result display Support 10
B TCC v12 display double problem Support 2
B Bdebugger / IDE editor doesn't display called batch file Support 1
nikbackm UTF-8 display in TCMD Support 1
Peter Bratton IDE environment window display Support 0
G Display setting for Tabbed Toolbar Support 1
MickeyF Nice alias display Support 0
A How to? TCMD Configuration Dialog: 'Smooth Scrolling' Option missing? Support 1
D Documentation TCC | Configuration | Conf dialog | Startup Support 0
jbanaszczyk Invalid client configuration file Support 6
A WAD TCC saves its configuration in a discardable place Support 2
cgunhouse Problems with TCC Configuration Dialog Support 0
P Help > Update triggers invalid configuration Support 3

Similar threads