DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Auto Center FARR  (Read 6,593 times)

uries62

  • Participant
  • Joined in 2006
  • *
  • Posts: 3
Auto Center FARR
« on: January 23, 2009, 09:02 PM »
Just a little something I came up with using ahk and FARR to auto-center regardless of size.  Maybe it has already been done?

Code: (autoit)
#Persistent, On

SetTimer, center, 500

; Center FARR
center: 
IfWinActive, ahk_class TMainForm
Wingetpos, , ,Width, Height, ahk_class TMainForm
WinMove, ahk_class TMainForm, , (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
return

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Auto Center FARR
« Reply #1 on: January 23, 2009, 10:12 PM »
I believe there's a farr plugin that does just this :)

But learning ahk is always a good thing ;)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Auto Center FARR
« Reply #2 on: January 24, 2009, 12:41 AM »
Welcome to the site uries62

Here's the plugin that jgp was mentioning:
http://www.donationcoder.com/forum/index.php?topic=13760.0

Original address: https://www.donationcoder.com/forum/index.php?topic=16725.0