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

DonationCoder.com Software > Find And Run Robot

request: FARR window position and size as FARR variables

(1/1)

Nod5:
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

--- ---[Windows]
MainLeft=1001
MainTop=53
MainWidth=340
MainHeight=70But built in variables that can be used as parameters would be handy.

mouser:
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:
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..
-mouser (December 08, 2019, 02:50 AM)
--- End quote ---
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..
-mouser (December 08, 2019, 02:50 AM)
--- End quote ---
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:
ok, will add.
any other special variables worth adding?

mouser:
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:

* https://www.donationcoder.com/Software/Mouser/findrun/downloads/beta/FindAndRunRobotSetup.exe
* https://www.donationcoder.com/Software/Mouser/findrun/downloads/beta/FindAndRunRobotPortable.zip

Navigation

[0] Message Index

Go to full version