topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 5:55 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Auto Center FARR  (Read 4981 times)

uries62

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Auto Center FARR
« on: January 23, 2009, 03: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 [Select]
  1. #Persistent, On
  2.  
  3. SetTimer, center, 500
  4.  
  5. ; Center FARR
  6. center:
  7. IfWinActive, ahk_class TMainForm
  8. Wingetpos, , ,Width, Height, ahk_class TMainForm
  9. WinMove, ahk_class TMainForm, , (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Auto Center FARR
« Reply #1 on: January 23, 2009, 04: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,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Auto Center FARR
« Reply #2 on: January 23, 2009, 06:41 PM »
Welcome to the site uries62

Here's the plugin that jgp was mentioning:
https://www.donation...ex.php?topic=13760.0