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: request: FARR window position and size as FARR variables  (Read 8,517 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
request: FARR window position and size as FARR variables
« on: November 25, 2019, 03:55 PM »
Minor request: Add FARR variables for the FARR window's position (x y), width and height at the moment right before a result was triggered.

This lets us make results that can run a script with FARR position/size as parameters. The script can then position its window based on where the FARR window was.

edit: I forgot that we can make the script parse those values from these FindAndRunRobot.ini lines
Code
[Windows]
MainLeft=1001
MainTop=53
MainWidth=340
MainHeight=70
But built in variables that can be used as parameters would be handy.
« Last Edit: November 25, 2019, 04:09 PM by Nod5 »

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: request: FARR window position and size as FARR variables
« Reply #1 on: December 08, 2019, 08:50 AM »
That's an interesting idea.. so the goal is for a script or plugin to be able to know the size and position of the FARR window... Normally you could get that with a windows call, but i guess if the FARR window disappears before the tool is launched it's too late..

My only concern with using the Farr variables is the idea that farr would have to save that file after every launch..

I could certainly make the size+position available as variables that can be passed to a launched app/script, or retrievable from a plugin call, that would be easy..

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: request: FARR window position and size as FARR variables
« Reply #2 on: December 13, 2019, 11:41 AM »
Normally you could get that with a windows call, but i guess if the FARR window disappears before the tool is launched it's too late..
Exactly

I could certainly make the size+position available as variables that can be passed to a launched app/script, or retrievable from a plugin call, that would be easy..
That's the feature I'm requesting. Me parsing FindAndRunRobot.ini was only a quick workaround in lieu of that.

Use case: launching a simple AutoHotkey or other script that shows something in a GUI. For example a script that grabs some data from a website and display it with a custom format. We'd use the FARR position parameters to position the GUI where FARR was, to not throw the users visual attention all over the screen, and to make the experience more like when showing something with a native FARR plugin.

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: request: FARR window position and size as FARR variables
« Reply #3 on: December 13, 2019, 11:43 AM »
ok, will add.
any other special variables worth adding?

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: request: FARR window position and size as FARR variables
« Reply #4 on: December 27, 2019, 02:02 AM »
Available in latest beta:
  • %FARRWINWIDTH% - width of farr window
  • %FARRWINHEIGHT% - height of farr window
  • %FARRWINLEFT% - left (X) coordinate of farr window
  • %FARRWINTOP% - top (Y) coordinate of farr window

Download:

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