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: Development - (how) should my tools create FARR alias files?  (Read 6,935 times)

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Development - (how) should my tools create FARR alias files?
« on: November 16, 2007, 03:37 PM »
I'm working on a 'helper program' for FARR. This program relies on a FARR alias. I don't want the person to edit the alias and change the path to my helper tool, if possible. Are there best practices regarding  creating / adding my alias to FARR?

What I've tried is looking at the alias file in a text editor, it's XML. I can write a xml reader / writer in AHK parsing the alias file and adding my alias to the custom aliases, this is a lot of work. if FARR supports extra custom alias files (for example 'myhelpertool.alias') and would these be overwritten / deleted when FARR is updated? Any experience and guidance would be appreciated.

(I'd use IRC but my workplace blocks ident requests and now I can't connect to the donationcoder channel -- it used to work a week or so ago).
« Last Edit: November 16, 2007, 03:46 PM by justice »

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: Development - (how) should my tools create FARR alias files?
« Reply #1 on: November 16, 2007, 03:46 PM »
One of the big changes to version 2 of FARR was specifically to make it easier for people to write and share alias files.

So as you surmised, the solution for you is to create your own xml alias file.
If you want you can even add your own icons for the items in it, and place the alias file and icons in their own subdirectory.

Then you can distribute this alias file (or subdirectory) that the user should place in their "FindAndRunRobot\AliasGroups\Installed" directory.

It will not get erased or modified when the program is updated.

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: Development - (how) should my tools create FARR alias files?
« Reply #2 on: November 16, 2007, 03:47 PM »
Note:
you can also put a .dcupdate in your subdirectory and have FARR check for updates to the .alias file.

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Development - (how) should my tools create FARR alias files?
« Reply #3 on: November 16, 2007, 03:57 PM »
One word: Amazing. :-*

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: Development - (how) should my tools create FARR alias files?
« Reply #4 on: November 16, 2007, 04:12 PM »
What i should add is a command so a user can "install" an alias file or pack from the program, without having to copy the files manually to the alias directory.

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