topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday February 17, 2025, 7:19 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

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: prev1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 47next
251
Happy to help. If you want to read more about the sendkeys command and the syntax for special characters like {TAB} check this FARR help page: https://www.donation...ulate_keypresses.htm

252
Dan67, you've posted this question in the Find And Run Robot forum section so I assume you want to do this using that program.

You can create an alias with multiple commands that first loads a website in the default browser, then waits a little and then sends keyboard input to the window that was active before FARR was opened. Here is sample code for the results editbox for the alias.

website login | https:://www.google.com ;;; sleep 1000 ;;; sendkeys user name here{TAB}password here{ENTER}

Note that this simple example assumes several things:

1. That the form field you want to input text to automatically has focus when the webpage is loaded. If not then you need to first send {TAB} commands until the form field has focus. On some websites even that might not work and then you'd have to find some other solution.

2. That the webpage is designed in such a way that you can also send {TAB} to navigate from the username field to the password field. Might not always be the case.

3. That you're ok with saving the login credentials in plaintext in a FARR alias. May not be a good idea in some cases, depending on who else has access to the computer, how important the account is and so on. There are various password manager tools that either come with a browser plugin or work as external tools. I suggest you first check if one of them can do what you want.

4. That you can reliably predict how long time the website takes to load each time. 1 second in my example may be too short, at least sometimes.

5. The example method might also be unreliable in a risky way since FARR does not verify that the webpage it is sending the credentials to is really the one that you intended. For example imagine that you during the 1 second (or however long you set it) wait period by mistake switch tab in the browser. FARR won't know that and will send the username and password to whatever website in the new active tab. That could end badly if for example that tab was a live chat.

253
Just a small tip: mp3 file id3 tags supports chapters. If some suitable audioplayer supports showing chapters during playback (VLC perhaps? At least it does for video files) then some of the requested features could perhaps be made through a small frontend app that uses VLC and some id3 tag command line tool to create/adjust chapters and to export/cut audio. FFMpeg also seems to have support for id3 chapters in mp3 files.

Another idea: Some audio players support .cue sheets that make one big audio file appears as multiple tracks. A frontend tool could based on user input edit the plaintext .cue sheet and then reload it in the audio player to achieve some of the requested features.

254
Find And Run Robot / Re: good addition to find and run robot or not?
« on: November 30, 2018, 12:54 PM »
Is this a plug-in or just some methods for tweaking the aliases?

It's an alias. Here is a shorter instruction on how to set it up.

Begin to create a new alias and enter these details:

alias name: file extension menu

regex pattern: ^((.+)\\(.+)\.(\S+))\s+\.(.*)$

regex result filter: $$5 $$4

results:
[Enter] run default prog for -file.$$4 | shellexe $$1
[Enter]  VLC (mkv;avi;mp4) | %programfiles%\vlc\vlc.exe "$$1"
[Enter] / IRFANview -file.$$4 | %programfiles%\irfanview\i_view32.exe "$$1"
[Enter] notepad npp -file.$$4 | c:\windows\notepad.exe "$$1"

Screenshot
3.png

Note: You can pick and choose which results lines you want to use from the rightmost column in the largest table in this post
https://www.donation....msg394054#msg394054
Or create your own using the same pattern.

Once set up use it this way
- Do a regular FARR search.
- Navigate down into the results window and select the file you want to operate on.
- Press Right Arrow Key to fill the FARR search box with the full path to the selected file.
- Press Space followed by . (period).

The FARR results should now list the different actions you can take on the file. Here is how that looks in my FARR.
1.png

edit: you can filter the results list of actions by continuing to type characters exclusive to one of the results lines. For example type npp to only show the open with Notepad action.

At least the above steps is how I think it is meant to be used, from a very quick test. I don't use it myself.

You know, this got me thinking I could create an AutoHotkey helper script that does something similar but which also autofilters and ranks the actions based on file extension, parent folder etcetera. A tiny FARR for choosing what action to take on a FARR result, sort of. :D

255
mouser, it could help users if there were more examples on this help page
https://www.donation...dline_parameters.htm
Also consider adding a tip there about the $$u1 or $$h1 variables or a link to that information.

256
I don't use Skype so haven't tested the below, but you could give it a try.

According to the unofficial skype blog at http://www.skaip.org...rs-for-the-new-skype you can start a Skype call from the command line with a parameter like this
--_="skype:echo123?call"

So I suspect that an alias looking something like this will work
Alias: skype call
regex: ^skype (.*)$
results: C:\folder\skype.exe --_="skype:$$1?call"

But with the correct path to skype.exe or whatever the executable is named. Also maybe the " characters may need to be escaped.

Once that is tweaked to work you then input this into FARR and press enter to start the call
skype +1555-555-5555

257
AutoHotkey script to make Tab button toggle folders search on/off in FARR by adding/removing +\ to the searchbox.

Code: Autohotkey [Select]
  1.  
  2. ;FARR helper script
  3. ;by nod5 181119
  4. ;Press Tab to toggle search only folders
  5. ;Note: Overrides FARR default Tab autocomplete hotkey
  6.  
  7. #IfWinActive, ahk_exe FindAndRunRobot.exe
  8. Tab::
  9. ControlGetText, farr, TEdit1, ahk_exe FindAndRunRobot.exe
  10. farr := InStr(farr, "+\") ? StrReplace(farr, "+\", "") : farr " +\"
  11. ControlSetText, Tedit1, % farr, ahk_exe FindAndRunRobot.exe
  12. return

Background
FARR's default Tab shortcut autocompletes the selected results full path into the search box.
https://www.donation...shortcut_summary.htm

I never have use for that but often want to temporarily limit searches to folders only and pressing Tab (with this script running) is quicker than typing or removing +\ in the searchbox.

258
it overwrites the files by default if it is already existed in the current folder
I don't think it does, on the contrary in my (quick) tests it silently skips to unzip/move files if another file with the same name exists in the target path. But yes, a complete program should handle such cases by asking the user what to do. However that would take more time, which I don't have for this right now. But someone else might.

259
Hi all. Here is an AutoHotkey prototype. I don't have time to make more of it right now. But maybe someone else takes this to the next level?

Code: Autohotkey [Select]
  1. ;Smarter unzip sketch
  2. ;by nod5  181114
  3.  
  4. ;note: only a sketch/prototype so far
  5. ;todo:
  6. ;- add error checks/handling:
  7. ;   1 unzip errors (paths to long, or whatever)
  8. ;   2 file/folder move errors:
  9. ;     - script currently silently avoids overwrite
  10. ;     - need to add code to prompt user: overwrite yes/no? and react accordingly
  11. ;- must test how reliable the unzip function performs if the zip file is huge, etcetera
  12. ;- notify user while processing (window, tooltip, etcetera)
  13. ;- prevent repeat commands while processing
  14. ;- replace crude F5 refresh with something better, maybe also reselect zip file after refresh
  15.  
  16. #IfWinActive ahk_exe explorer.exe
  17. !#Lbutton::
  18.  
  19. ;get first file in Explorer selection and verify that it is .zip
  20. clip := ClipToVar()
  21. Loop, parse, clip, `n, `r
  22. {
  23.   firstfile := A_LoopField
  24. }
  25. if !FileExist(firstfile) or (SubStr(firstfile,-3) != ".zip")
  26.   return
  27.  
  28. ;unzip to temporary folder
  29. SplitPath, firstfile, , folder, , zipname_noext
  30. tempfolder := folder "\temp_" A_Now
  31. FileCreateDir, % tempfolder
  32. Unzip(firstfile, tempfolder)
  33.  
  34. ;count unzipped files/folders recursively
  35. Loop, Files, % tempfolder "\*.*", FDR
  36. {
  37.   allcount := A_Index
  38.   onlyitem := A_LoopFilePath
  39. }
  40.  
  41. ;count unzipped files/folders at first level only
  42. Loop, Files, % tempfolder "\*.*", FD
  43. {
  44.   firstlevelcount := A_Index
  45.   firstlevelitem  := A_LoopFilePath
  46. }
  47.  
  48. ;case1: only one file/folder in whole zip
  49. if (allcount = 1)
  50. {
  51.   if InStr( FileExist(onlyitem), "D")
  52.   {
  53.     SplitPath, onlyitem, onlyfoldername
  54.     FileMoveDir, % onlyitem, % folder "\" onlyfoldername
  55.   }
  56.   else
  57.     FileMove   , % onlyitem, % folder
  58. }
  59.  
  60. ;case2: only one folder (and no files) at the first level in zip
  61. else if (firstlevelcount = 1) and InStr(FileExist(firstlevelitem), "D")
  62. {
  63.   SplitPath, firstlevelitem, firstlevelfoldername
  64.   FileMoveDir, % firstlevelitem, % folder "\" firstlevelfoldername
  65. }
  66.  
  67. ;case3: multiple files/folders at the first level in zip
  68. else
  69. {
  70.   FileMoveDir % tempfolder, % folder "\" zipname_noext
  71. }
  72.  
  73. ;cleanup temp folder
  74. FileRemoveDir, % tempfolder, 1
  75.  
  76. ;refresh Explorer to show results
  77. If WinActive("ahk_exe Explorer.exe")
  78.   Send {F5}
  79. return
  80.  
  81.  
  82. ;function: copy selection to clipboard to var
  83. ClipToVar() {
  84.   cliptemp := clipboardall ;backup
  85.   clipboard =
  86.   send ^c
  87.   clipwait, 1
  88.   clip := clipboard
  89.   clipboard := cliptemp    ;restore
  90.   return clip
  91. }
  92.  
  93.  
  94. ;function: unzip files to already existing folder
  95. ;zip file can have subfolders
  96. Unzip(zipfile, folder)
  97. {
  98.   psh := ComObjCreate("Shell.Application")
  99.   psh.Namespace(folder).CopyHere( psh.Namespace(zipfile).items, 4|16)
  100. }

260
I don't think there is a built in method in FARR to do that, though I might be wrong.

Here is a workaround where you pass the search string to AutoHotkey which makes it lowercase and runs the search. You can change the alias name, folder path, base URL and so on to fit your use case.

First create the alias
- alias name: _
- RegEx: _(.+)
- Result(s): C:\folder\search_lowercase.exe "$$1"

Next save this code as search_lowercase.ahk, compile it and move to C:\folder\search_lowercase.exe
Code: Autohotkey [Select]
  1. ;Search Google for input parameter string
  2. if A_Args[1]
  3.   Run % "https://www.google.com/search?q=" Format("{:L}", A_Args[1])

261
Find And Run Robot / Re: EditSkinFile is not portable
« on: October 22, 2018, 09:45 AM »
I only tested this quickly but it seems you can manually edit FindAndRunRobot.ini (must close the FARR process first) and change this line
EditSkinFile=C:\Program Files (x86)\FindAndRunRobot\Skins\<skin name>.skn
into
EditSkinFile=Skins\<skin name>.skn
and then that skin will still be applied when you start FARR again.

262
Heya Nod5, I tried to download this again, but all I'm getting is:
Sorry! Download is not available yet.
Hi, thanks for the heads up. Problem fixed now, try downloading again.

263
Finished Programs / Re: DONE: Tally folder contents by file date
« on: September 23, 2018, 04:37 AM »
I could use something like that too so here is an alternative implementation in AutoHotkey

Code: Autohotkey [Select]
  1.  
  2. ;Tally_by_date.ahk
  3. ;by nod5
  4.  
  5. ;- compile it and run from the command line with a folder path as parameter
  6. ;- outputs a date sorted tally of date created for all files in the input folder
  7.  
  8. ; example input: tally_by_date.exe "C:\this folder\folder"
  9.  
  10. ; example output: C:\this folder\folder\Tally_by_date -- 201809220631.txt
  11. ; with the content:
  12. ; 2018-07-23 9
  13. ; 2018-08-03 4
  14. ; ...
  15.  
  16. folder := A_Args[1]
  17.  
  18. if !InStr( FileExist(folder), "D")
  19.   ;not folder
  20.  
  21. f_array := []
  22.  
  23. ;loop over all files in folder, exclude folders and do not recurse
  24. Loop, Files, % folder "\*.*"
  25. {
  26.   ;get date in YYYY-MM-DD format
  27.   FormatTime, date_var, % A_LoopFileTimeCreated, yyyy-MM-dd
  28.   f_array[date_var] := f_array[date_var] ? f_array[date_var] + 1 : 1
  29. }
  30. For key, val in f_array
  31.   out .= key " " val "`n"
  32.  
  33. FileAppend, % out , % folder "\Tally_by_date -- " A_now ".txt"

264
Find And Run Robot / Re: Extension Filtering still shows folders
« on: August 31, 2018, 05:02 AM »
I don't think you can exclude subfolders in the "Search Folders" settings window.

You can do it with a custom search folder and an Alias though. Here is an example

1. create a Search folder.
Directory path:  C:\folder\this
optional file extension restrictions:  sln
optional modifier keyword: my_search_no_folders

2. go to options > alias and create a new Alias.
Alias: my custom search
regular expression: ^(?:m|my) (..*)
results: dosearch -alias +my_search_no_folders $$1 -\


After that you can type m xyz or my xyz into FARR and the results will be a list of files with the string xyz in the name and the extension .sln and that reside in the folder C:\folder\this or its subfolders. The results will not list any folders.

265
The loss of Atom would be no loss for developers.
I and 18% of the SO 2018 survey respondents politely disagree  :)
https://insights.sta...lopment-environments

But it is interesting to see how VS Code has skyrocketed to the top since 2016
https://insights.sta...nments-by-occupation
https://insights.sta...lopment-environments

Anyway, I'm getting off topic here so will go quiet now.

266
It was a public open-source repository before Microsoft bought it.  In other words, prior to their purchase, they already had access to all of the code anytime they pleased.
Not all, since paid GitHub plans also include the option to create private repos.

So far there seem to be no change in how GitHub operates. But it isn't unreasonable to worry about longer term changes. For some such worries, see 
https://developers.s...lash-from-developers 
https://www.nature.c...s/d41586-018-05426-0

I wonder what will happen to GitHub's Atom now given that it is a competitor to Microsoft's Visual Studio Code.

267
I think it is time for me to put my software, Splinter DC Splinter page , into the public domain. I doubt I am ever going to be able to work on/with it, anymore. I would rather have it expanded upon and be bettered by better folks, than me, then to not due to me wanting to keep the source secret. Maybe some type of "centrallized" location that I would be able to visit and see how it is progressing...

Think through if a public domain license is what you want or if some other license is a better fit. https://choosealicense.com/ is a useful resource.

This page https://choosealicense.com/licenses/ places licenses on a spectrum of openness. The Unlicense at the bottom of the page is what many mean by public domain. If you want to ensure ability to access the source code of software derivative of your work then you could pick a more open license than the Unlicense. FWIW I tend to use GPLv3.

It is easy to set up a GitHub account. If you mostly want to do a one time upload of the code to your own repository then you can probably do that through the web interface without even installing a git client.

268
General Software Discussion / Re: Listary 6
« on: August 19, 2018, 02:02 PM »
Does any news about Listary 6 suggest that it will get something akin to FARR's powerful alias system?

269
Thanks for the feedback everyone. I haven't really researched other preexisting tools like this in the Windows space much. Your links will be useful reading.

I now also found a discussion on reddit about Marvin and some there use the term FIM, File Integrity Monitoring, for tools of this kind.

I suppose it remains to be seen if there really is some useful niche left to be filled by creating one more tool.

How big is the set of files you want to monitor? 

Good question! I'm not sure yet. One issue is how to balance between annoyingly distracting notification overload (a big risk with any tool of this type I suspect) and useful prevention of bad effects from mistakes. I do like the idea of a tool that doesn't at the time of edit/move/deletion prevent the action nor require confirmation but instead only notifies of the change at some later time, in order to prevent a mistake from spreading into the backups.

in most cases (and with a proper filter) 'Process Monitor' from SysInternals can show you your (set of) monitored file(s), which process has doing the modifying and when the modifying did occurred. It doesn't prevent any modification though.
Like with my idea with using Everything perhaps a small tool can make effective use of Process Monitor logs instead of doing all that natively.

270
N.A.N.Y. idea: file modification monitor and alert tool.

A Windows version of Marvin ( https://github.com/dgsharpe/marvin ) but with fewer features. Only daily or manually started checks (not realtime), only local notifications (not email/push).

Perhaps simply an AutoHotkey script that makes use of Everything's database and command line tool ( https://www.voidtool...mand_line_interface/ ) to check for changes to a user specified list of files/folders.

Useful as a safety precaution when using non-versioning, mirroring only backup tools like Bvckup2 ( https://bvckup2.com/ ).

Before each backup job, check for unwanted modifications to files/folders on the monitoring list. A scheduled task for daily backups could first run the modification check tool and take conditional action: if no changes to files on the monitoring list then perform backup, else alert the user and postpone backup until manual confirmation.

For example if you accidentally and unknowlingly delete an important folder (on your monitoring list) in Explorer this tool would halt/alert you before you run a mirroring backup job that would delete the important folder also from the backup drive.

271
Find And Run Robot / Re: %cliptext% in farr command line ?
« on: June 26, 2018, 05:36 AM »
Works for me. Doublecheck that you got the path right and put it in quotes
Code: Text [Select]
  1. "C:\Program Files (x86)\FindAndRunRobot\FindAndRunRobot.exe" -search "%cliptext%"

Oh and if you're using AutoHotkey to run the command line remember to escape the percentage characters like so
Code: Text [Select]
  1. "`%cliptext`%"

272
Find And Run Robot / Re: FARR vs LISTARY
« on: June 23, 2018, 05:05 AM »
https://youtu.be/9T9-OtRVeUw
Ok, that was how I guessed it would work. That is not the kind of thing that launcher applications like FARR tend to do. But still a neat feature. I think that kind of sync between File Open and Explorer could be done with AutoHotkey pretty easily. It could probably be done as a Coding Snack or as a small NANY tool.

It is a type of CTRL+F behaviour except that there are many functions preprogramed easily accesible (probably someone could macro them on FARR)
For example when the file is found, one click to store the path or the folder path.
Right. Seems quite useful. But since FARR has other great functionalities, like the powerful and customizable alias system, I don't really see a problem with simply using both side by side.

273
Find And Run Robot / Re: FARR vs LISTARY
« on: June 22, 2018, 04:49 AM »
1- LISTARY integrate directly into window explorer. That means when I type some letters in the explorer, automatically LISTARY take the control and look for what I am searching.

How is that different from Explorer's built in hotkey Ctrl+F to filter search in the active folder?

2- Many times I am in a program and I want to store or open a file. In general I have to navigate through directories to find the place. With LISTARY, if I have the directory open in another windows, just cliking CTRL+Q and the path is transfer to the search windows and I get the file straight forward.

Do you mean that if you have an Explorer window for e.g. C:\folder open and then start a File Open window in some other application then Listary's Ctrl+Q hotkey will browse to C:\folder in the File Open window? That should be fairly easy to do through an Autohotkey script.

274
Find And Run Robot / Re: FARR - Use Hotstring not hotkey
« on: May 14, 2018, 06:05 AM »
Are you really sure the string "xap" will be easier to recall than a hotkey like Pause or Control+Space?

Anyway, I don't think FARR has an option to open through a hotstring. But you can make a hotstring script with AutoHotkey.

:*:xap:: {Pause}

For more details see this help page https://autohotkey.c.../docs/Hotstrings.htm

One trick to learn a new single key hotkey is to tape a small piece of paper to it on the keyboard so you'll recall it at a glance until you have it in muscle memory.

275
Today I had a hard drive crash.. Not fun.
Sorry to hear that. Glad you recovered the files. Thankful for the useful software suggestion!

reminded me how important having full drive images are to making recovery from a crash a painless process.  Because of that, I am going to increase the frequency of my full drive backups from once a month to once a week.
-mouser
What tool do you use for full drive backups?

Pages: prev1 ... 6 7 8 9 10 [11] 12 13 14 15 16 ... 47next