Did you miss your activation email?

• Wednesday July 6, 2022, 2:28 pm
• 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.

### Author Topic: naming an alias  (Read 3256 times)

#### kireta

• Supporting Member
• Joined in 2007
• Posts: 5
• User is banned
##### naming an alias
« on: December 27, 2019, 03:12 PM »
Hi, not sure what I am doing wrong for naming an alias

This works to launch Android Messenger as a new window:
"C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe"  --app=https://messages.google.com/web/conversations /ICON=C:\Program Files (x86)\FindAndRunRobot\AliasGroups\Installed\Core_Aliases\icons\Messages Android 32.ico

Adding "Messages | " in the beginning results in nothing launching
Messages | "C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe"  --app=https://messages.google.com/web/conversations /ICON=C:\Program Files (x86)\FindAndRunRobot\AliasGroups\Installed\Core_Aliases\icons\Messages Android 32.ico

(I did create a custom icon "Messages Android 32.ico" and added it to the Core_Aliases\icons folder)

How can I get "Messages" to display when I type the alias "m"?

Any insight would be appreciated, thx :-)

#### Nod5

• Supporting Member
• Joined in 2006
• Posts: 1,142
##### Re: naming an alias
« Reply #1 on: December 28, 2019, 04:20 AM »
Does it work if you remove the quote marks around the path to brave.exe ?
Messages | C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe --app=https://messages.google.com/web/conversations /ICON=C:\Program Files (x86)\FindAndRunRobot\AliasGroups\Installed\Core_Aliases\icons\Messages Android 32.ico

#### kireta

• Supporting Member
• Joined in 2007
• Posts: 5
• User is banned
##### Re: naming an alias
« Reply #2 on: December 28, 2019, 05:08 AM »
Yes! Thank you

This works:

Messages | C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe  --app=https://messages.google.com/web/conversations /ICON=C:\Program Files (x86)\FindAndRunRobot\AliasGroups\Installed\Core_Aliases\icons\Messages Android 32.ico

#### Nod5

• Supporting Member
• Joined in 2006
• Posts: 1,142
##### Re: naming an alias
« Reply #3 on: December 28, 2019, 07:54 AM »

Question to Mouser concerning this:
Is the issue with quotes around the file path in Results a bug regression? Compare to
https://www.donation...?version_history.htm
Version 2.224.01 Beta - May 6, 2015
[BugFix] Fixed issue where double quotes in alias results were causing failure to launch result and bad icons.

Example alias to showcase the issue
Alias Name
testing
RegEx
^(te|tes|test)\$

Results
test1 | C:\Program Files (x86)\Mozilla Firefox\firefox.exe
test2 | "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
test3 | C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://donationcoder.com
test4 | "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" https://donationcoder.com

In FARR v2.234 and Windows 10 I see these effects
- Test1-3 launches Firefox, in the case of test3 the site is opened correctly. Test4 does nothing.
- Test1 and 3 show the Firefox icon, 2 and 4 shows no icon (I tested in both small and big icon mode).

« Last Edit: December 28, 2019, 08:16 AM by Nod5 »

#### mouser

• First Author
• Joined in 2005
• Posts: 40,787
##### Re: naming an alias
« Reply #4 on: December 30, 2019, 05:49 AM »
Sure seems like a bug.. Since I'm working on FARR now I will try to fix now..
Thank you so much for the clear examples and tests.. It makes my life much easier!

#### mouser

• First Author
• Joined in 2005
• Posts: 40,787
##### Re: naming an alias
« Reply #5 on: December 30, 2019, 09:41 AM »
Nod, could you try the latest beta, here: https://www.donation....msg434824#msg434824

I've tried to improve handling arguments with double quotes, and also displaying of alias results with arguments, etc.

Based on your test result alias and some others:

BEFORE:
naming an alias

AFTER:
naming an alias

Result alias nod:
test1 | C:\Program Files (x86)\Mozilla Firefox\firefox.exe
test2 | "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
test3 | C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://donationcoder.com
test4 | "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" https://donationcoder.com
test5 | C:\Program Files (x86)\Mozilla Firefox\firefox.exe "https://donationcoder.com"
test6 | C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://donationcoder.com /ICON=search.ico
test7 | "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" https://donationcoder.com /ICON=web.ico
test8 | "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "https://donationcoder.com" /ICON=web.ico
C:\Program Files (x86)\Mozilla Firefox\firefox.exe
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://donationcoder.com
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" https://donationcoder.com
C:\Program Files (x86)\Mozilla Firefox\firefox.exe "https://donationcoder.com"
C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://donationcoder.com /ICON=web.ico
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" https://donationcoder.com /ICON=web.ico
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "https://donationcoder.com" /ICON="web.ico"

NOTE: I've uploaded a new beta which knows to look inside FARR icons directory if an icon is not found in current alias-specific directory..
« Last Edit: December 30, 2019, 10:07 AM by mouser »

#### Nod5

• Supporting Member
• Joined in 2006
• Posts: 1,142
##### Re: naming an alias
« Reply #6 on: January 01, 2020, 06:42 PM »
Tested 2.238.01 beta portable in Virtualbox Win10

Test 1: result lines for an alias meant to run notepad and show a .txt file

- All items show up with correct icons in FARR
- This is what happens when an item is started from FARR:
2: opens Notepad and with the .txt correctly
3: does nothing

5 6: opens blank Notepad correctly

5 6 also work as expected when adding ++ C:\test\a b.txt and ++ "C:\test\a b.txt" after the alias regex in the search box

Test 2: an alias meant to run Firefox and show google.com

1 | C:\Program Files\Mozilla Firefox\Firefox.exe https://www.google.com
2 | C:\Program Files\Mozilla Firefox\Firefox.exe "https://www.google.com"
3 | "C:\Program Files\Mozilla Firefox\Firefox.exe" "https://www.google.com"
4 | "C:\Program Files\Mozilla Firefox\Firefox.exe" https://www.google.com
5 | "C:\Program Files\Mozilla Firefox\Firefox.exe"
6 | C:\Program Files\Mozilla Firefox\Firefox.exe
- All items show up with correct icons in FARR
- This is what happens when an item is started from FARR:
3: does nothing
5 6: opens Firefox correctly

5 6 also work as expected when adding ++ https://www.google.com and ++ "https://www.google.com" after the alias regex in the search box

Related FARR help page on using ++ in searchbox to add a parameter
https://www.donation...dline_parameters.htm[/code]

#### mouser

• First Author
• Joined in 2005
• Posts: 40,787
##### Re: naming an alias
« Reply #7 on: January 01, 2020, 07:00 PM »
3 | "C:\Program Files\Mozilla Firefox\Firefox.exe" "https://www.google.com"
3: does nothing

oops that slipped by my testing, i can confirm that result.  working on it.

3: does nothing

ok that's same problem, will fix.

I guess that's to be expected and may not be considered a farr bug.. as long as i can fix the ones with doublequotes. Unless you tell me that those used to would work on the prior version of farr..

« Last Edit: January 01, 2020, 07:41 PM by mouser »

#### mouser

• First Author
• Joined in 2005
• Posts: 40,787
##### Re: naming an alias
« Reply #8 on: January 01, 2020, 08:19 PM »
New beta uploaded -- hopefully that fixes both case 3 cases..
Thank you for all your help testing this, Nod5

#### Nod5

• Supporting Member
• Joined in 2006
• Posts: 1,142
##### Re: naming an alias
« Reply #9 on: January 02, 2020, 02:07 AM »
That was fast!  I'm short on time, will test new beta on Saturday.

#### mouser

• First Author
• Joined in 2005
• Posts: 40,787
##### Re: naming an alias
« Reply #10 on: January 03, 2020, 11:39 AM »

#### Nod5

• Supporting Member
• Joined in 2006
• Posts: 1,142
##### Re: naming an alias
« Reply #11 on: January 04, 2020, 03:55 PM »
Regarding my above test cases 1 and 4: You correctly replied
I guess that's to be expected and may not be considered a farr bug.. as long as i can fix the ones with doublequotes. Unless you tell me that those used to would work on the prior version of farr..
I shouldn't have included 1 and 4 at all, but was confused earlier because on a PC here with an older FARR version case 1 did open the file (despite spaces in path and not quote enclosed!). But it turns out that was only because Microsoft's Notepad.exe was replaced by Notepad2 on that PC. And Notepad2 (weirdly!) doesn't require quotes when passing a spaced filepath as parameter. So disregard that.

In other words: test case 2 and 3 (and 5 and 6 using the ++ method) are what matters. Forget 1 and 4.

In the as of now latest portable beta test cases 2 3 (and 5 6) work fine. So the issue seems solved.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9127521514892578, "perplexity": 29571.114357322054}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-27/segments/1656104676086.90/warc/CC-MAIN-20220706182237-20220706212237-00560.warc.gz"}