WINCLASS

x13

Nov 9, 2016
28
0
Netherlands
#1
Hi all.

I'm writing a BTM to manipulate open windows (as in 'ACTIVATE xxx MIN', etc).
Some are weird in that they have no name (%@WINTITLE[%@PID[exe]] is empty).

So I thought I'd try my luck with @WINCLASS but I've never used it.
All the help says is that it requires a "classname"...

Assuming I'm heading in the right direction, how do I go about getting these class names, and how could I then use @WINCLASS ?

On a related subject, is it possible to use ACTIVATE (or something similar) to send a window to another screen?

Thanks.
Mark/x13
 
#7
Wow this is fantastic!

I never knew that trick with the "=" prefix.
Does that work everywhere? Don't remember seeing this in the manual...

Btw, ACTIVATE =%@PID[chrome.exe] MIN works also

Thanks for that!

Any idea how to move a window to another screen (right, left or by number) ?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,716
47
Albuquerque, NM
prospero.unm.edu
#8
Any idea how to move a window to another screen (right, left or by number) ?
You can do that with ACTIVATE /POS=. You just need to know the coordinate ranges for your second screen. On my work system, the second monitor uses negative X coordinates. It's possible that on your system, the second screen may have large X coordinates, starting at the primary monitor's right edge + 1.

The Windows screen-resolution applet has a graphic to show (and manipulate) the relative position of your monitors.