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: AHK script for easy FARR win resize  (Read 7,628 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
AHK script for easy FARR win resize
« on: January 09, 2009, 10:04 PM »
Here's a small AHK script for easy toggling the FARR win width between two sizes. Very convenient if you like me prefer a small FARR win as default but still often need to increase the width to see long file names.

Code
; AHK (Autohotkey) script for easy FARR win resize, by nod5
^CapsLock::
WinGetPos, , ,w,H,A      
WinGet, active_p, ProcessName, A
if active_p = FindAndRunRobot.exe 
 {
  if (W != 258)
   WinMove, A, , , , 258,
  else
   WinMove, A, , , , 450,
 }
Return

Things you can tweak: The widths 258 and 450. The hotkey (but control + capslock is pretty handy!)

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
Re: AHK script for easy FARR win resize
« Reply #1 on: January 15, 2009, 11:37 PM »
It's usually better to use relatives like a ratio of @DesktopWidth (this is how the built-in variable is called in Autoitv3, not sure how AHK calls it). For example, @DesktopWidth/5 for standard and @DesktopWidth/4 for wide (just throwing some random numbers here). This ensures FARR takes up the same size on any resolution (relative to the resolution of the screen).

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: AHK script for easy FARR win resize
« Reply #2 on: January 16, 2009, 04:45 PM »
But why is that better?  :tellme: I'm at 1280x1024. If I moved to higher resolution I can't think of a reason to also want to increase the FARR window size.

Anyway, the relevant autohotkey variables are:
A_ScreenWidth
A_ScreenHeight

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
Re: AHK script for easy FARR win resize
« Reply #3 on: January 16, 2009, 07:25 PM »
Uhm, yes you might want that. Farr would be harder to read at a higher resolution as it gets smaller relatively. Farr is about 1/3 of my screen width. I would like to keep it that way. At 640x480 it would otherwise take up like 88% of my screenwidth, which is something I would not want. Not that I ever use 640x480 ;)

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