topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Sunday October 6, 2024, 11:40 am
  • 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: Development - (how) should my tools create FARR alias files?  (Read 5523 times)

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Development - (how) should my tools create FARR alias files?
« on: November 16, 2007, 09:37 AM »
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, 09:46 AM by justice »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Development - (how) should my tools create FARR alias files?
« Reply #1 on: November 16, 2007, 09:46 AM »
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,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Development - (how) should my tools create FARR alias files?
« Reply #2 on: November 16, 2007, 09:47 AM »
Note:
you can also put a .dcupdate in your subdirectory and have FARR check for updates to the .alias file.

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Development - (how) should my tools create FARR alias files?
« Reply #3 on: November 16, 2007, 09:57 AM »
One word: Amazing. :-*

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Development - (how) should my tools create FARR alias files?
« Reply #4 on: November 16, 2007, 10:12 AM »
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.