topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • February 22, 2020, 05:07 PM
  • Proudly celebrating 14 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nod5 [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 41next
1
https://www.ghacks.n...manager-for-windows/
:Thmbsup:
:up: Lintalist is such a great application and, if that wasn't enough, a great example of and inspiration for complex applications coded in AutoHotkey.

2
I noticed that if I open an incognito tab in Chrome or Firefox and load donationcoder.com then the main page loads as http (not https). While loaded as http Chrome labels the connection "Not secure" and some of the top menu bar icons are not visible. Once any link on the page is pressed the https version is loaded.

3
Find And Run Robot / minor bug: FARR locks #filecontents file if empty
« on: February 17, 2020, 03:57 AM »
Minor bug: If an alias uses #filecontents and the file exists and is empty then FARR locks that file.

To reproduce:
1. Make an alias with this as Results
#filecontents C:\test.txt
2. Create the empty file "C:\test.txt"
3. Run the alias
4. close FARR
5. try to delete or write to "C:\test.txt"

This might also affect the fileresults command, I haven't had time to test that yet.

4
Find And Run Robot / Re: FARR is on other monitor, can't see
« on: February 06, 2020, 11:52 AM »
If this only happens in the newest FARR version then it is probably an issue that mouser will fix.

In the meantime you could try some workarounds:

First, check if you can move the FARR window using the Win + Shift + Left/Right shortcuts in Windows. Those shortcuts work on most windows. Did not work on my FARR though, but worth a first try.

Alternatively, try using an AutoHotkey script to move the window to the visible part of the screen. One single line of code is enough to move the FARR window to near the middle of the primary display on my PC.
WinMove, ahk_class TMainForm ahk_exe FindAndRunRobot.exe,, 500, 500

If that works then you could for convenience make a FARR alias to run the script when you type "move".
alias name: move FARR
regex: ^move$
Result: dolaunch C:\folder\moveFARR.ahk

Modify the result line to the filename and folder you want for the AutoHotkey script.
You could also change the "move" part of the regex to whatever other string you want to use to launch the script.

5
Find And Run Robot / Re: FARR - Suggested Hotkey
« on: January 23, 2020, 08:38 AM »
Ctrl+space is also used by the editor
Alt+space is free but I use it for moving window, by opening the system menu.
Well, do you use those more often than FARR? If no, then why not just remap them to something else with AutoHotkey.

Or you could split them like so: Left Ctrl + Space for FARR, Right Ctrl + Space for something else.

6
Find And Run Robot / Re: FARR - Suggested Hotkey
« on: January 22, 2020, 01:40 PM »
I suggest Ctrl+Space or Alt+Space. Both very quick and easy to press without looking down at the keyboard. Take your pick  :)

7
Incorrect AV warnings against compiled AutoHotkey programs suck. It has been like this on and off for a long time. Not much individual coders can do about that I think. Something needs to change in the AV sector. But it probably won't.

8
Find And Run Robot / Re: Broken icons for 64bit programs
« on: January 04, 2020, 04:46 PM »
Confirming that icons work for 64bit applications also in the as of now latest beta.

By the way, I now noticed that FARR also accepts these ways of setting an icon from any absolute path (not sure if new or not)
/ICON="C:\test\test amazon.ico"
/ICON=C:\test\test amazon.ico

I like that we can use absolute paths. But that is not yet documented in the beta version of this help file page
https://www.donation...l_search_phrases.htm

BTW my first hunch was that using /ICON without doublequotes around the absolute path could cause problems, but I acually didn't find any conflict case. For example this combination of special frontslash alias syntaxes does not cause a problem
/ICON=C:\test\test amazon.ico /hint="test hint"

9
Find And Run Robot / Re: naming an alias
« 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.  :up:

10
Find And Run Robot / Re: naming an alias
« on: January 02, 2020, 02:07 AM »
That was fast!  :) I'm short on time, will test new beta on Saturday.

11
Find And Run Robot / Re: naming an alias
« 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

1 | C:\Windows\System32\notepad.exe C:\test\a b.txt
2 | C:\Windows\System32\notepad.exe "C:\test\a b.txt"
3 | "C:\Windows\System32\notepad.exe" "C:\test\a b.txt"
4 | "C:\Windows\System32\notepad.exe" C:\test\a b.txt
5 | "C:\Windows\System32\notepad.exe"
6 | C:\Windows\System32\notepad.exe

- All items show up with correct icons in FARR
- This is what happens when an item is started from FARR:
1 4: opens blank Notepad and error messagebox about file not found
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:
1 2 4: opens Firefox and loads google.com correctly
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]

12
Mouser, I tried 2.238.01 beta portable in Virtualbox Win10 again now.
I confirm that this works:
- variables %FARRWINLEFT% %FARRWINTOP% %FARRWINWIDTH% %FARRWINHEIGHT% in results
- adding ICON="web.ico" or /ICON=web.ico to show a custom icon
I ran into issues with the quotes in filepaths and parameters. Will post details and tests in the specific forum post about that issue

13
Quickly tried 2.238.01 beta portable in Virtualbox Win10 but couldn't get FARR to launch anything. Probably something wrong in my VM. Will get back at it tomorrow.

14
Find And Run Robot / Re: Broken icons for 64bit programs
« on: December 29, 2019, 05:02 AM »
Faziri, it might help mouser if you explicitly say if the beta version fixes the original problem with .lnk shortcut to 64bit also on your PC.

I just noticed another broken icon, but it seems to be a diffferent problem.
I can't reproduce that. On my Win 10 PC .lnk files in
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
or its subfolders show correctly in FARR.

Is the new icon issue you describe only happening to "Spek.lnk" ? Or for all .lnk shortcut files in that folder?

15
Find And Run Robot / Re: naming an alias
« on: December 28, 2019, 07:54 AM »
Glad to help.

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).

1.png

16
Find And Run Robot / Re: naming an alias
« 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

17
Find And Run Robot / Re: Broken icons for 64bit programs
« on: December 28, 2019, 04:01 AM »
Can you try the beta?
Did a very quick test of the portable beta. Working icon for .lnk shortcut to 64bit (C:\Program Files\ ...) applications in Win 10.  :up:

18
Find And Run Robot / Re: Broken icons for 64bit programs
« on: December 27, 2019, 11:24 AM »
Short on time, but just a quick confirmation that in Windows 10 .lnk files to 64bit applications show incorrect icons in FARR v 2.24. Aliases with results that include a path a to 64bit .exe show the correct icon.

19
I am wary of trying to add stuff to the alias configuration dialog to support this.. it feels like an awkward match.
How so? The feature would condition when an alias is triggered and what results it triggers. Seems like alias configuration to me.

It seems to me a cleaner approach might be an easier and more flexible system for writing short script-like plugins..  That would let you more easily write a mini script to do what you want.
Not sure if I follow this. How would we go about that in these use cases: The alias "cs" could be used to immediately (using the special FARR string "dolaunch") run a cheat sheet file for the active application/process. Alias "help" could show help resources relevant to the active application. Would I write one script-like plugin per such active window context dependent alias string that I want. That is, one for "cs", one for "help" and so on?


More thoughts on this kind of feature
Two use cases where different implementations would be the best fit, I now reckon.

Case1 We want to make a single alias string, or single regex pattern, to trigger different results depending on the active window (or other conditions...) and we might have many such windows. Example: "help" shows help resources relevant to the active application.
Here ability to add #If declaratives on lines in the results list in the alias configuration would be handy and easy to overview. Mockup:
#If win_process = "Firefox.exe"
dolaunch a.exe
#If win_process = "Chrome.exe"
dolaunch b.exe
and so on for 10 other windows.

(For my own use I currently achieve this effect through an alias that runs an AutoHotkey script with %LASTHWND% as parameter, and then the script looks up that window and takes conditional action. But my thinking is that FARR users might be interested in the basics of that without having to resort to external scripts. A minor difference is that with this external script approach we can't make FARR not trigger a regex alias if none of the target windows are active. That is we can't make FARR do a regular search for files with "help" if the active window is not one of those we have special actions for in the script.)

Case2 We want to make a lot of different alias strings to trigger only if some window is active (or other conditions...)
For example we want aliases for the strings "help", "cs", "close" and so on that only trigger if the active window is InkScape.

Here it would make more sense to be able add the condition to a set of lines in the list of aliases in an alias file in FARR Options. (Under the hood: the condition would exist as a parent tag with a number of <AliasEntry> items as children in the FARR myaliases.alias XML file)

Or, perhaps more feasible, one condition per alias file. So in the example we'd make inkscape.alias and have all aliases in it trigger only if the active window condition is met. Users could be exposed to that through an edit field or a button to show an editfield in the section above the list of aliases in FARR options.
1.png

Under the hood: store condition in a tag in inkscape.alias XML file. Mockup:
<FarrAliasFile>
    <FileFormatVersion>1</FileFormatVersion>
    <AliasSetCondition>win_process = InkScape.exe</AliasSetCondition>
    <AliasSetDescription>Custom User Alias File</AliasSetDescription>

Edit: Or, to change as little as possible in the current FARR options UI, let users add alias condition strings to the alias file description box (AliasSetDescription XML tag)! FARR would detect if the string in that box starts with a declarative like "#if" and then treat the rest of the string as conditions.

20
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.

21
I've been too short on time for this, will continue later.

x16wda: Very kind of you! I'll keep on just testing the UE trial for now though, but I might take you up on it down the line.

NigelH: Neat! I hadn't heard of it. I've no experience even with vi/emacs so that kind of editor will take some getting used to. But I can see the power in those features. Will have a go. Cheers for the fun video also - I did notice that all the names in it are from Garbage Pail Kids cards ;D

22
UltraEdit is nice and capable. Sublime too. But so are VS Code and Atom, and they're both free. So I'd only switch over to UE/Sublime if it does something I need much better than Code/Atom. Will have to see how my testing with the line hide feature goes.

Digression: I love that there are so many user friendly and feature filled code editors to pick from - luxury! VS Code seem to pull ahead of all the others when it comes to user base, at least if this is a good indicator of that
https://insights.sta...lopment-environments

23
The feature is available in commercial UltraEdit https://www.ultraedit.com/

Thanks. I'm trying it now in the UE trial. This comes closest to my OP wishlist so far. The hide lines feature for any type of textfile must first be enabled in the settings. After that we doubletap control+F to get "Find and Replace". Click filter checkbox, type a string and hit Enter. Not too slow. Line hiding looks like regular code folding. We can filter in or out and regex filter.

Two drawbacks:
- Filtering/unfiltering could be quicker and fewer steps. I see no direct hotkey to toggle unhide for all the previously hidden lines. But it can be done in two steps: Control+A to select all and then unhide through hotkey or command palette. The filtering command also shares UI with the find and replace. This means that we have to check/uncheck the filter checkbox in Find and Replace window when switching from filtering mode to find and replace mode. If would be quicker if they were separate popup windows.
- UE can split view the text. But any line filtering is synced when the second view is focused. So we can't shift back and forth between views and keep only one of them filtered.

But maybe there are workarounds to these issues through settings or scripts. I'll play some more with it.

Screenshot from UE's Find and Replace window
2.png

Screenshot of UE with split view after line filtering. Notice that both views are filtered.
3.png

but since you are interested in free one, this will not do.
Free isn't required. But as a first step I mostly just want to test drive this kind of feature for a while, to figure out if and when it is most useful compared to regular find and replace and other methods.

My hunch is that the feature would be most useful, and that I'd find more use for it, if the filter/unfilter action is very quick. Ideally a keyboard shortcut for a small searchbox (not with a lot of checkboxes and other functionality) and then filter lines as you type. Similarly one step shortcuts to unfilter all lines, unfilter this line, and so on.

24
How about LogViewer http://www.uvviewsoft.com/logviewer/
I tried it. Interesting tool but not a match here because it seems to not hide lines, only hide/replace text on lines.

Screenshots from Notepad++ to illustrate roughly the kind of line hiding I'm after.

Before hiding
1.png

After hiding
2.png

25
I distinctly remember using Notepad++ to apply a filter to a text file, for the purpose of hiding away 80% of it's content and doing manual changes on the content that still was shown.
Thanks. I see the "Hide Lines" (alt+H) command in Notepad++ menu View. But no "unhide" keyboard shortcut, though clicking the green hidden lines markers in the linenumber column works. Will try the TextFX Viz next.

I'm also tinkering on a small AutoHotkey test script with two views where one is filterable. The two only sync on save yet, I'll try sync as you type next.

Some thoughts from playing with it so far. To be most useful I think this kind of linefilter/accordion tool will need a few extra features:
- Linenumbers is a must
- shortcuts to unhide +1 lines line above or below current position (and +5, and +N)
- smart ways to toggle between edits in the filtered view affecting only visible lines vs all content. E.g. if line 2 is hidden and we select from line 1 to 3, should Delete also remove line 2? Or only 1 and 3?; Ditto find and replace.
- negative filter syntax (e.g. toggle all code comment lines off)
- filtering lines could be very handy together with multi caret editing. You want to rename a variable name everywhere in a long code document. First filter lines with the current variable name. Then hit shortcut to start multi caret editing at the start of the filter string on each visible line. Same end result as find and replace on the filtered view lines, but different visual response and easier to backtrack and adjust the new name while typing it.

Pages: [1] 2 3 4 5 6 ... 41next