ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > N.A.N.Y. 2010

NANY 2010 Release: ClipTrap

<< < (5/27) > >>

skwire:
Nice!  Sounds like a good idea for a separate tool/script -- does it work for multi-display situations too?-ewemoa (January 13, 2010, 07:25 PM)
--- End quote ---

It will center the window to the main display.  Here's the code snippet:


--- Code: AutoIt ---WinGetPos, , , Width, Height, AWinMove, A, , ( A_ScreenWidth / 2 ) - ( Width / 2 ), ( A_ScreenHeight / 2 ) - ( Height / 2 )
Nothing to it, really.

ewemoa:
Thanks for the code!

It seems to work fine in my limited testing of two screens :)


P.S. Using your code seems more robust than the alt-space / window menu alternative.  I tested with an Emacs window and found that it doesn't bring up a window menu in response to alt-space.  Perhaps this type of situation is rare, but I find it nice to have this alternative.

sunsetdan:
Thank you skwire.
 Seems to work great so far.. 8)

skwire:
Thank you skwire.
 Seems to work great so far.. 8)
-sunsetdan (January 19, 2010, 05:32 AM)
--- End quote ---

You're welcome; glad you've found it useful.

skwire:
Website | Download
v1.0.3 - 2010-07-30
    ! Fixed a couple of 120 DPI graphical glitches.  (Thanks, cmpm)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version