topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday November 11, 2025, 1:27 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

Recent Posts

Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 47next
326
Last request for now mouser, promise!  :)

Enable filedropping and filepasting onto folders in the FARR results. The idea is to mimic dropping and pasting behaviour from Explorer. Control+dragdrop would copy the file and regular dragdrop would move the file. As for paste if the clipboard file was ctrl+x'ed then move it, if ctrl+c'ed then copy it (note: I have no idea how feasible that is to detect though). Multiple files could be handled like in Explorer too.

Related, but in reverse, let shift and control be used to multiselect files in FARR results (again like Explorer) and dragdrop of multiselect would copy all selected files to the dropped on folder. Let ctrl+C on multiselected files in FARR put them all on the clipboard.
327
Find And Run Robot / FARR alias options windows - some requests
« Last post by Nod5 on March 30, 2016, 09:12 AM »
Aliases is a very powerful feature in FARR.
Here are some small enhancement ideas (some mentioned before, but it could be useful to put them in a single thread here).

1 add a special search string to jump straight from the FARR inputbox to the myalias.aliases list in aliases/keywords/groups section of FARR options

2 add option to allow FARR searches even when options window is open (I describe a kind of workaround in an old thread). Because configuring alias IME often involve getting paths to folders/files etc and... that is of course quickly done through a FARR search!  :)

3 myalias.aliases list right click menu import/export commands: these show a box with each alias as a one line string. Make it so we can select all in that box with ctrl+A (standard windows behaviour). Let Esc close that window.

4 myalias.aliases list right click menu import/export commands: if the alias text is long copying it from export and pasting to import will cut it off without warning.  For example try to import this
1000>>>test1>->test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt>n>test a very long alias results field | C:\some file.txt
These 1580 characters are on import cut off to 1024 characters. I ran into this error when exporting an alias that showed a list of long urls.

Here is an ahk workaround that gives us 3
#IfWinActive ahk_class TTextPasteForm ahk_exe FindAndRunRobot.exe ;import/export
^a::
ControlClick, TMemo1, A
send ^{Home}
send +^{End}  ;select all
return
Esc:: WinClose, A
#IfWinActive

edit: partial workaround for 1
create this alias
name: alias
regex: ^alias$
results: dolaunch C:\folder\farr_alias_options.ahk ;;; dosearch gooptions
and save this ahk code to C:\folder\farr_alias_options.ahk  (uncomment sleep lines if it runs too fast)
WinWait, ahk_class TOptionsForm
WinActivate, ahk_class TOptionsForm
;sleep 50  ;go slower
ControlFocus, TTreeView1, ahk_class TOptionsForm
send AL    ;selects aliases in left pane
;sleep 50
ControlFocus, TListView1, ahk_class TOptionsForm
send {down}  ;focus alias list
exitapp
328
If I uncheck "stop search on regex alias match" FARR shows both the regex matches and anything else matching the pattern. So in my example above if I uncheck that option and type "x " I see the three alias results (golf, swimming, soccer) but also a lot of other things. The problem here is that with a conveniently short first group alias "starter string" ("x " in my example) a lot of other filenames will match (have an x and a space) and clutter the list.

The option I want is "stop search if (regex alias match and (results filter not enabled or results filter match) )". Though when I spell it out it that way it sounds like a pretty niche option I must say.  ;D
329
Let us say we have an alias with regex pattern
^x (|.+)$
and result filter for regex
$$1
and three alias results
golf|C:\folder\program.exe
swimming|C:\this\file.html
soccer|C:\somewhere\image.png

Type "x " and the three alias results are shown.
Type "x m" and only the swimming result is shown
Type "x ma" and nothing is shown, since no result name (the part before | ) contains "ma".

Mouser how about an option to when a result filter matches nothing revert to a regular FARR search? With that FARR would in my example above revert to a search for "x ma" everywhere and match e.g. C:\another folder\mad max.url
330
General Software Discussion / Re: Software discontinued...help!
« Last post by Nod5 on February 19, 2016, 08:20 AM »
@pleased, try emailing the contact person in the whois for the x2net website, see https://who.is/whois...ttps://www.x2net.com . Ask them if they can email you the setup file for the last version of the program. If they are unable to distribute it then ask if you can get the sha1 or md5 hash value for that file. If you have the hash then you can on your own verify if a file on some third party site is identical to the official release.

For example this old tucows mirror has X2NetOneStoreSetup.exe (note that Firefox warns of "Unwanted Software Site" for this url)
http://tucows.archive.sunet.se/files7/ . I downloaded it (but have not and will not run it) and it has these hashes
md5 d564d34ce95aaf6414c4dce2e0f428d8
sha1 341217f166bca105d323514e468f7be205ba2db5
( One multi engine oneline virus scanner gave the file 1 red and 20 green flags. See https://virusscan.jo...lescanjob/94q40k5lc1 )

As a general note I think a software company that shuts down their operation ought to provide at least hashes for the last released version of the software to help customers in situations like this.
331
Living Room / Re: Make a custom 20 key keypad for $10
« Last post by Nod5 on February 17, 2016, 10:47 AM »
Nice!

It is a pity that detection of different keyboards/mice isn't built into Autohotkey. I've only seen workarounds that use HID Macros but whatever HID Macros itself is doing can't be impossible to reproduce. I hope someone does it in a way that we can simply import something in autohotkey and then define keyboard specific hotkeys e.g.
kb1-Enter::

Anyway those who don't use a numpad for anything else can of course easily replace the numpad button functionality with whatever they want easily with only Autohotkey, see the NumPad section of the keylist here https://autohotkey.com/docs/KeyList.htm
332
IanB: I see. One advantage with your approach is that it won't interfere with any LeftShift+D type hotkeys built in to the active application whereas in my code sketch those would have to be recreated in the code. Though such collisions can often be limited with #IfWinActive conditions.

If anyone is going down the autohotkey route then the CapsLock default behaviour can be easily disabled:
CapsLock:: return
After that we can use it as a hotkey modifier by itself. So instead of LeftShift + CapsLock + D we'd only press CapsLock + D.
CapsLock & d:: msgbox, CaspLock + D
Few programs (that I use at least) make use of CapsLock and we can still toggle uppercase on/off with Win+CapsLock. The same can be done with the key below Esc if it by default has a special character that isn't used a lot (the tilde character on british/american layouts I think).

It is fun to figure out new useful hotkey combos!
333
He qualifies that sentence in the next paragraph, remapping Right-Shift to Capslock, thus the two keys are next to each other.
I sure missed that bit. The joke is on me!  :-[  ;D

I guess I missed it because with Autohotkey we can already make a hotkey combo out of Left Shift + CapsLock + some other key without remapping Right Shift. For example
<+d::
if GetKeyState("CapsLock", P)
 msgbox, you pressed Left Shift + CapsLock + D
else
 msgbox, you pressed Left Shift + + D
return
334
It's not that I have a huge hand span or anything. I select the LeftShift+RightShift keys with the first two fingers of my left hand ...
Judging from the second sentence you may have a much more huge hand than you think you have. Or typo.  :D
335
General Software Discussion / Re: Winkey g Google Search ahk quickie
« Last post by Nod5 on January 17, 2016, 01:52 PM »
Doesn't have to be just google type stuff.  You could have an entry for Everything Search, any number of NirSoft utilities etc.. 
FARR is easy and great for this. As long as the "targets" (google in browser, everything, ...) support command line parameters we can make FARR aliases to launch them with a searchstring.

For example I use two spaces at the end of a FARR searchphrase as an alias trigger to pass the search on to Everything. Very handy as you can first search with FARR and, if what you're looking for isn't found in a second or two, just tap space space.

To set it up in FARR create a new alias and put this in the regular expressions box:
^(.*)\s\s$
And this in the results box:
Everything Search: $$1 | dolaunch C:\Program files\Everything\Everything.exe -search "$$1"
(Your path to Everything may vary)
336
Coding Snacks / Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Last post by Nod5 on January 13, 2016, 11:33 AM »
Updated first post with new version with GUI and icon
337
Coding Snacks / Re: 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Last post by Nod5 on January 10, 2016, 05:05 AM »
Thanks Ath! Yeah, bad timing. Will do something for NANY next year!
338
General Software Discussion / Re: Adding silence to audio track?
« Last post by Nod5 on January 10, 2016, 03:56 AM »
newer version of 30SecondSilencer posted in the Coding Snacks section
https://www.donation...ex.php?topic=42184.0
339
Coding Snacks / 30SecondSilencer - add silence every 30 seconds to an mp3 file
« Last post by Nod5 on January 10, 2016, 03:54 AM »
30SecondSilencer is a windows tool to add 30 seconds of silence every 30 seconds to an mp3 file.

30secondsilencer.png

But the duration of the silence and music segments can be customized. For example you can add 10s silence every 55s in the mp3 file. Optional fade in/out.

Download binary and source here
http://www.dcmembers...ad/30secondsilencer/


Requirements:
ffmpeg.exe and ffprobe.exe from latest version of ffmpeg-master-latest-win64-gpl-shared.zip at https://github.com/B...peg-Builds/releases/

If you want to compile from source: Autohotkey


changelog
v180222
changed ffmpeg concatenate code to avoid file errors
updated helpfile
code cleanup

v160113
first version with GUI
now uses windows temp folder as workdir (can be changed in source)
now outputs C:\<inputfolder>\<inputfilename>_30ss.mp3

v160109
first version, no GUI (pm if you want the old source)

Thanks to Attronarch (and mom!) for test driving the script, and for coming up with the use case.  :)

post edit 2022-01-09: new URL to ffmpeg dependency
340
General Software Discussion / Re: Adding silence to audio track?
« Last post by Nod5 on January 09, 2016, 02:29 PM »
No errors pop out, but I also cannot find final mp3. I see work folder being filled with chunks, but after it is finished everything is deleted except:

  • 30ss-silent.mp3
  • 30ss_duration.txt
There should be a new file named <workdir>\<source file name>_30ss.mp3

edit: I've tested it multiple times again and it works here.

the script also should create the file 30ss_list.txt , is that file present after you run the script? If so open it and check that the contents look like this
file '<workdir path>\30ss_001.mp3'
file '<workdir path>\30ss-silent.mp3'
file '<workdir path>\30ss_002.mp3'
file '<workdir path>\30ss-silent.mp3'
...
341
General Software Discussion / Re: Adding silence to audio track?
« Last post by Nod5 on January 09, 2016, 02:27 PM »
shouldn't the cuts fade in/out, instead of abrupt cutting?  :-\
Should be doable with this https://ffmpeg.org/f...filters.html#afade-1 , if anyone gets the hang of the correct commands line for fade in / out then post a snippet here and I'll integrate it in the script.
342
General Software Discussion / Re: Adding silence to audio track?
« Last post by Nod5 on January 09, 2016, 02:07 PM »
I see the problem, my bad. I fixed it in the post above. It should work now.
343
General Software Discussion / Re: Adding silence to audio track?
« Last post by Nod5 on January 09, 2016, 11:40 AM »
I made a script, try it. It requires Autohotkey and ffmpeg (and ffprobe that is included with ffmpeg).
https://autohotkey.com/
http://ffmpeg.zeranoe.com/builds/

update: fixed bugs with ffmpeg path (previously only worked when ffmpeg was in same folder as script)

update2: get the newer version here https://www.donation...ex.php?topic=42184.0

Code: Autohotkey [Select]
  1. SetWorkingDir %A_ScriptDir%
  2.  
  3. ;30SecondSilencer
  4. ;adds 30 seconds silence every 30 seconds to an mp3 file
  5.  
  6. ;-------------------------
  7. ;CHANGE THESE PARAMETERS
  8. source = C:\folder\some music file.mp3
  9. workdir = C:\dir\
  10. chunksize = 30     ;length of each silence/music segment
  11. ffmpeg = C:\ffmpeg\ffmpeg.exe
  12. ;-------------------------
  13.  
  14. ;check paths
  15. SplitPath, source,,, ext, noext
  16. SplitPath, ffmpeg,,fdir
  17. if !FileExist(source) or !FileExist(workdir) or !FileExist(ffmpeg) or !FileExist(fdir "\ffprobe.exe")
  18.  
  19. ;Clear old files
  20. Filedelete %workdir%\30ss-silent.mp3
  21. Filedelete %workdir%\30ss_*.mp3
  22. Filedelete %workdir%\%noext%_30ss.mp3
  23. Filedelete %workdir%\30ss_*.txt
  24.  
  25. ;Get source duration in seconds
  26. ;http://superuser.com/a/945604
  27. RunWait %comspec% /c ""%fdir%\ffprobe.exe" -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "%source%" >> "%workdir%\30ss_duration.txt""
  28. FileRead, dur, %workdir%\30ss_duration.txt
  29. length := Ceil(dur)
  30. if !length
  31.  
  32. ;split source into 30 second mp3 chunks
  33. ;http://stackoverflow.com/a/7945753
  34. steps := Ceil(length / chunksize) ; number of steps
  35. start = 0
  36. ToolTip, Split chunks...
  37. sleep 1000
  38. Loop, %steps%
  39. {
  40. c := StrLen(a_index)==1 ? "00" a_index : StrLen(a_index)==2 ? "0" a_index : a_index
  41. Run "%ffmpeg%" -ss %start% -i "%source%" -t %chunksize% "%workdir%\30ss_%c%.mp3" ,,Min
  42. start := start + chunksize
  43. ToolTip, %A_index% / %steps%
  44. }
  45.  
  46. ToolTip, Processing...  ;wait for ffmpeg to make all chunks
  47. {
  48.         pcount = 0
  49.         for process in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process")
  50.                 if InStr(process.Name,"ffmpeg.exe")
  51.                  pcount++
  52.         if pcount < 1
  53.          break
  54.         ToolTip Processing %pcount% left
  55.         sleep 400
  56. }
  57.  
  58. ;make 30 sec silent audio mp3 file
  59. ;http://stackoverflow.com/a/32027123
  60. ToolTip, make silent.mp3
  61. sleep 1000
  62. RunWait "%ffmpeg%" -f lavfi -i anullsrc -t 30 "%workdir%\30ss-silent.mp3",,Min
  63.  
  64.  
  65. ;Concatenate chunks and silence
  66. ;https://trac.ffmpeg.org/wiki/Concatenate
  67. ToolTip, Concatenate...
  68. Loop, Files, %workdir%\30ss_*.mp3
  69.  FileAppend, file '%workdir%\%A_LoopFileName%'`nfile '%workdir%\30ss-silent.mp3'`n, %workdir%\30ss_list.txt
  70. RunWait "%ffmpeg%" -nostats -loglevel 0 -f concat -i "%workdir%\30ss_list.txt" -c copy "%workdir%\%noext%_30ss.mp3" ,,Min
  71.  
  72. ;clear chunks
  73. Filedelete %workdir%\30ss_*.mp3
  74.  
  75. ToolTip, Finished!
  76. sleep 1000

Out of curiousity what will you use the audio files for? crossfit/interval training perhaps?
344
did I just get rickrolled  :tellme: ;D
Hehe. I first needed a youtube url to simply illustrate the command and that was the first one that came to mind. But then I thought, when I already have it at hand why not ... roll with it?  8)
345
This alias lets you enter
yt https://www.youtube.com/watch?v=dQw4w9WgXcQ
in FARR to download that youtube content to an mp3 audio file.

This requires the tools youtube-dl (to download the youtube content) and ffmpeg (to convert to mp3).
youtube-dl , http://rg3.github.io...ube-dl/download.html
ffmpeg , http://ffmpeg.zeranoe.com/builds/ (get the Static build)

alias name
youtube-dl to mp3
regular expression pattern
^(?:y|yt|you) (.*(?:youtu.be|youtube.com).*)$
Results
youtube-dl mp3 $$1 | C:\folder\youtube-dl.exe --restrict-filenames -o "C:\output\`%(title)s.`%(ext)s" --write-thumbnail --ffmpeg-location "C:\folder\ffmpeg.exe" -f "bestaudio[ext=m4a]" -x --audio-format mp3 --audio-quality 0 --embed-thumbnail $$1

Note: change the two instances of "C:\folder\" to where you have put youtube-dl.exe and ffmpeg.exe (and ffprobe.exe and ffplay.exe from the same package) and change "C:\output\" to what folder you want the mp3 file to end up in.

I also made a short video tutorial on how to do these setup steps, view it here
https://www.youtube..../watch?v=dQw4w9WgXcQ
346
General Software Discussion / Re: notepad2-mod: custom code folding for txt files?
« Last post by Nod5 on December 14, 2015, 02:00 PM »
Glad to help  :Thmbsup:
347
FARRCloseSelProc is a FARR helper tool that closes a process that matches the filename of the file that is selected in Explorer.

This is useful if you work on some code that you need to repeatedly compile, run and later close the process of before the next test run. But it can also be used to quickly close a process that you know the name of.

Setup:
1 paste the code into a text editor and save as FARRCloseSelProc.ahk and then compile it (you need http://ahkscript.org/ for that).
2 store the compiled FARRCloseSelProc.exe in some folder
3 create a FARR alias like this

alias name:
proc close
regex pattern:
^proc(?: |)(.*|)$
result box:
CloseSelProc $$1| C:\some\folder\FARRCloseSelProc.exe $$1 %LASTHWND%

To use it open Explorer and select a file you want to close a matching process for. For example select the file program.exe if you want to close the process program.exe . Press your FARR hotkey, type "proc" and when the alias shows press enter.
To use it by typing a process name press your FARR hotkey, type "proc program.exe" and press enter.

Note:
- The typed process name must match exactly. It must not have any spaces in the name.
- If there are multiple processes with that name only the first one detected by autohotkey will be closed.

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance force

x = %1%  ;hwnd parameter from FARR or exact name of a process from FARR
y = %2%  ;hwnd (if first param is exact name)

;FARRCloseSelProc -- a helper tool for FARR
;This tool is made to be run from a FARR alias.

if x =
 exitapp
if y ;filename mode
 splitpath, x, pname,,pext
else ;HWND mode
{
WinGetClass, xclass, ahk_id %x%
if xclass != CabinetWClass  ;exit if not Explorer win
 exitapp
WinActivate, ahk_id %x%,
ifwinNotactive, ahk_id %x%
 exitapp
clip := ClipBoardAll 
clipboard =
send ^c   ;copy
clipwait, 2
if errorlevel != 0
 exitapp
Loop, Parse, clipboard, `n, `r
{
p := a_loopfield
break
}
clipboard := clip ;restore
if InStr( FileExist(p), "D")
 exitapp
splitpath, p, pname,,pext
}

if (pext != "exe")
 exitapp

Process, close, %pname%
Loop, 10
{
Process, Exist, %pname%
if errorlevel = 0
break
sleep 100
}
Process, Exist, %pname%
if errorlevel = 0
 tooltip, Closed process %pname%
else
 tooltip, ERROR. Process %pname% still running.
sleep 2000
exitapp
348
FARRCloneWithDatestamp is a FARR helper tool to make a datestamped copy of a currently selected file in Explorer. The copy is placed in the same folder.

Have you ever done ctrl+C ctrl+V on a file and then edited its name, perhaps added a datestamp in order to keep track of which copy is more recent than the others? Then this might just be a tool for you.  :)

Setup:
1 paste the code into a text editor and save as FARRCloneWithDatestamp.ahk and then compile it (you need http://ahkscript.org/ for that).
2 store the compiled FARRCloneWithDatestamp.exe in some folder
3 create a FARR alias like this

alias name:
clone
regex pattern:
^(clo|clon|clone)$
result box:
Clone selected with datestamp | C:\some\folder\FARRCloneWithDatestamp.exe %LASTHWND%

To use it open Explorer and select a file you want to create a clone of. Press your FARR hotkey, type "clo" and when the alias shows press enter.
Next to your "file.txt" you should now see "file -- 20151213092801.txt" .

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance force

x = %1%  ;hwnd parameter from FARR 

;FARRCloneWithDatestamp -- a helper tool for FARR
;what it does:
;focus the window that matches input parameter hwnd
;if explorer window: get selected files, parse first file
;make a copy of "file.ext" as
;"file -- [datestamp yyyymmddhhmmss].ext" in the same folder
;report status, exit

if x =
 exitapp
WinGetClass, xclass, ahk_id %x%
if xclass != CabinetWClass  ;exit if not Explorer win
 exitapp
WinActivate, ahk_id %x%,
ifwinNotactive, ahk_id %x%
 exitapp

clip := ClipBoardAll
clipboard =
send ^c   ;copy
clipwait, 2
if errorlevel != 0
 exitapp

Loop, Parse, clipboard, `n, `r
{
p := a_loopfield ;first file in selection
break
}
clipboard := clip ;restore

if InStr( FileExist(p), "D")
 exitapp
splitpath, p, pname,pdir,pext,pnoext
FileCopy, %p%, %pdir%\%pnoext% -- %A_now%.%pext%
if !Errorlevel
 tooltip, Clone %pdir%\%pnoext% -- %A_now%.%pext% created
else
 tooltip, ERROR. Failed to clone %pname%
sleep 2000
exitapp
349
General Software Discussion / Re: In search of ... Android-Windows task software
« Last post by Nod5 on December 13, 2015, 03:38 PM »
Google Calendar now also has new, enhanced Reminders features.



http://gmailblog.blo...google-calendar.html
350
General Software Discussion / Re: notepad2-mod: custom code folding for txt files?
« Last post by Nod5 on December 13, 2015, 02:57 PM »
Hi, the old steps still work for me

First click view > customize schemes...
Then in the popup window:
- Default text > associated filename editbox: remove txt
- YAML > associated filename editbox: add txt
- YAML >
comment: change to: bold; fore:#0A246A
identifier: change to: bold; fore:#0A246A;back:#D7D7FF
error: clear the style editbox
document: back:#DDDDFF

Now comment highligthing after hash (#) and colon (:) only works if the line does not start with a Tab.
IIRC it always was like that. But you can enable settings > Insert Tabs as Spaces and then #example will be styled even if tab indented.

Was it just my imagination or were three hyphens ( --- ) supposed to trigger a horizontal rule that stretched across the entire line or only until you kept adding hyphens (-------------), which is the current behaviour?

That is configurable. Change from
document: back:#DDDDFF
to
document: back:#DDDDFF; eolfilled
and the color will be to the end of the line filled
Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 47next