avatar image

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

Login with username, password and session length
  • February 19, 2019, 04:27 AM
  • Proudly celebrating 13 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 - Maestr0 [ switch to compact view ]

Pages: [1]
N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 06, 2019, 04:39 AM »
Thanks for the info, Shades! I'll look into it.

My current idea is to have the batch file check for (and download as needed) the #include files the main script needs. That can't be done in the script itself because it throws an error when it doesn't find it.
If I can't reliably get the batch file to get the required included files, I'll use a script to check for the required files and then run the main script.

Oh, and yeah, the downloaded files are from my public dropbox folder.

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 05, 2019, 03:25 PM »
Shades, you seem to be a Batch file guru, is there a failsafe way in a batch file to download files from within the batch file? Bitsadmin is deprecated, sadly :(

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 05, 2019, 02:35 PM »
thank you :Thmbsup:
it works well now :D
Glad to hear it! If you run into any more issues or have suggestions/feedback, do not hesitate to let me know!

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: February 05, 2019, 04:15 AM »
i don't have ahk v2 installed, so i run the start.bat. it works fine on its first run, then a update message popup. while i got a message like this after i install the update. and i cant even find this file in the inc folder.

Hi, thank you for your feedback!

It doesn't matter if v2 is installed, you only need the supplied .exe file.

I think what's going wrong is that you are missing the sh3_inc_gui_positioning.ahk file in the .\inc\ folder.
I see that for some reason that file was missing from the .zip file. I've added it now. Get it here:

For the future, I will add a check that makes sure that all included files are present and download them as necessary to prevent this from happening in the future.

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 12, 2019, 02:12 PM »
You were right about the alterations I made to the ini file. Those appear to be unnecessary.

Thank you for the confirmation. I don't know how to code to prevent that. There's no communication between Everything and the script that allows for that as far as I can see.

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 11, 2019, 02:33 PM »
@echo OFF

SET ShortHandFolder=%~s1
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
SET ShortHandFolder=

gotcha, will use that one (and hope Windows doesn't stop using shortfoldernames anytime soon :D

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 11, 2019, 02:32 PM »
I can expand on that.  First I tried the search term 'look' and I got results but only from the C:\  partition. Then I added the highlighted text (I have several pen drives, each with it's own drive letter) to  the ini file and now the same search term returns results from multiple partitions.

[ Invalid Attachment ]

oh, the system_list entry there is not required for searching. Those are just used for scoring. I think it's more likely that results from earlier searches didn't find those other drives, because "Everything" wasn't finished building the index yet. Could you remove the additions from system_list and see if you can confirm my thoughts?

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 06, 2019, 09:37 AM »
alternatively, I guess I could use code like this (but if the long paths work with the quotation marks, I don't see the need):
@echo OFF

SET ShortHandFolder=%~s1
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
SET ShortHandFolder=

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: January 06, 2019, 09:20 AM »
I downloaded the version and tried to execute it. That experience warranted the following suggestions:
- the content of the 'start.bat' file contains / as folder separator. That didn't fly on this version of Windows (10.0.16299 Enterprise edition), had to be \.
- the content of the 'start.bat' file could be improved upon:

    SET ShortHandFolder=%~dp0
    START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
    SET ShortHandFolder=

- Now the folder you executed the script in, is captured and there is no way for Windows to get confused about where to look for files. The last line is there to clean up the content of the variable and emptying variables causes them to be removed from memory.   
- Do not use quotes |(in the START line) if AHK has never been installed on the system. Windows 10 will ask you which application it needs to use to execute the ahk script (even though that is clearly specified).
  (caveat: I never use folder names with spaces in it. Not in file names either if I can help it.)
- All my portable applications are stored in a separate folder not located on the C:\ partition. Same as my data. I'm weird that way. So I had to add these partitions to the ini file myself. Maybe I overlooked things, but I didn't find an option to add those partitions in the GUI. Not that big of a deal though.

After these changes it did work as expected. So thanks for a nice piece of software.

Thank you, I will investigate and fix it where I can. Comments and feedback are much appreciated!

For testing purposes, I made sure my folder has spaces in it. Your batch file suggestion therefore did not work as it was stated. I've replaced it with the following:
@echo OFF

SET ShortHandFolder=%~dp0
START "" "%ShortHandFolder%app\AHKv2_x32.exe" "%ShortHandFolder%shorthand3_ahk2.ahk"
SET ShortHandFolder=

I've tried renaming the extension to one that has no associated programs (.ahk3), and the batch-script worked. Maybe I misunderstood your remark regarding the use of quotes in the start line?

My OS is on a separate partition, as are my programs and my files/scripts.

Can you elaborate what you mean when you had to "add those partitions to the ini file"?

N.A.N.Y. 2019 / Re: NANY 2019: AHK Script Center
« on: December 30, 2018, 09:22 AM »
For my purposes, I will create a Setup.exe for the Mega Pack that creates a proper shortcut to run AutoHotkey.exe and AHK Script Center.ahk in whatever folder the user specifies. I have just left that static shortcut in there for now that can easily be updated.

You could have the installer to check the registry if there is a link to the .ahk file and only download if it hasn't been registered yet.

Living Room / Re: snipping tool with image editor
« on: December 23, 2018, 08:30 AM »
I've used MiniCap for years and years. Great little tool.
MiniCap.exe -captureregselect -clipimage -exit
for the win :D

Screenshot Captor / Re: Google Drive Option
« on: December 23, 2018, 07:34 AM »
Alternatively, you can use dropbox and

The benefit of dropbox is that it could upload files automatically.

Imgur has an API which you could use. Examples of that you can see here: https://help.imgur.c...2766-Tools-for-Imgur

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: December 22, 2018, 08:11 AM »
Interesting. I'll test this out when I have more time.

In the meantime, could you make a list of some ways in which Shorthand 3_2 differens from FARR, apart from using Everything as the underlying file search engine?

Ah, I'd need to look at FARR again, it's literally been years since I ran it last.

Comparing the options, there is a lot of similar things, but FARR is currently more customizable.
Having said that, Shorthand 3_2 is open source (aside from the included .exe files), whereas FARR is not.

N.A.N.Y. 2019 / Re: NANY 2019: Shorthand 3_2
« on: December 19, 2018, 07:52 AM »
To embed your images, you'll have to download them from imgur to attache them here.
Thanks, the preview said they'd show up, guess I misread that.

N.A.N.Y. 2019 / NANY 2019: Shorthand 3_2
« on: December 19, 2018, 04:00 AM »
NANY 2019 Entry Information

Application Name Shorthand 3_2
Short Description Shorthand is a wrapper for Voidtools' Everything program, which is basically a search program.
"Everything" uses the NTFS Index files, so finding files with filenames is practically instantaneous.
Shorthand can be compared to Find And Run Robot, which every user of this website should be familiar with.
Supported OSes Windows
Web Page Earlier iteration: (will upload to github later)
Download Link (auto-updater included)
System Requirements
  • Windows (32 and 64 bit supported)
  • To find all files, admin privileges are required
  • For certain plugins admin privileges are required
Version History
    - fixed: when typing a short search it would freeze in a certain order, and then re-order. If the user pressed Enter during that time, the new top option would be run, instead of the earlier top hit.
    - fixed: editing plugins was not working right, thanks to Cap'n Od'n's help, this was fixed
    - fixed: lowered max_results from 10,000 to 1000
    - added: warning when max_results are 10,000 or over
    - fixed: loop adding plugins to GUI and tray were not limited to sh3_plugin_*.ahk which resulted in extra lines of non-plugins
    - added: sendraw option
    - added: gui_settings_add_plugins() will now write the version numbers of the plugins to the .ini file
    - added: #MaxThreadsPerHotkey 3
    - added: check for updates on startup also updates the plugin versions
    - fixed: scoring now works for subfolders of systemfolders
    - fixed: faulty interrupting search on enter
    - fixed: when clicking a checkbox in gui_settings it would make the GUI lose focus
    - fixed: made gui_main the +owner of gui_settings so gui_settings would always be on top of gui_main
    - added: increased settimer to do search after 250 ms, instead of 100 ms
    - added: {blind}{Raw} to send and password sends
    - changed: history will search from the first character, search from the second
    - fixed: prevented error when user presses enter when there are no results visible
    - added: checking if user did not allow Everything to start as admin
    - fixed: better search interrupting if user is still typing but app_es is still searching
    - added: settings: plugin system: checking/unchecking to enable/disable plugin
    - fixed: filter_ext wasn't working correctly, now it does
    - added: a simple/advanced option for the main search window
    - fixed: filtered count was wrong
    - fixed: toggling Extensions and Hide Folders now works
    - fixed: added score lists to variables for use in gui_settings
    - added: populated the gui_settings menu
    - added: more translations for the gui_settings
    - added: click/right-click to turn off splash
    - add: autostart with windows option (makes .lnk file when 1, and removes .lnk file when 0)
    - fixed: when starting a .bat file, the workingdir wasn't set correctly, now it is (also changed runasadmin to accomodate)
    - fixed: pressing down while there are no hits no longer shows an error
    - fixed: gui_move detected movement in the GUI_Settings, which was not intentional
    - added: treeview responsiveness in GUI_Settings
    - added: Spotify to search engine list
    - fixed: issue where edit of ini files and txt files would not work properly from the Tray menu
    - fixed: CTRL-Space now sets focus on search edit-control, also when GUI already has focus
    - fixed: password encrypting/decrypting issue (bad variable name on my part)
    - added: when typing while everything is not working, the hits from history are still shown
    - added: Spotify to search engine list
    - fixed: issue where edit of ini files and txt files would not work properly from the Tray menu
    - fixed: CTRL-Space now sets focus on search edit-control, also when GUI already has focus
    - fixed: password encrypting/decrypting issue (bad variable name on my part)
    - fixed: misc issues (fixed wrong var, optimized logging)
    - added: saving alternative name to the ini file, for the updater script
    - added: interrupt previous searches if the user is still typing
    - added: doubleclick ability in the listview to start a program
    - added: default scoring so if it's not set it won't throw an error
    - added: password functionality
    - added: password auto-log off after A_TimeIdlePhysical > xx minutes
    - added: GUI positioning so it's never outside of monitor work area
    - fixed: app_everyting and app_es would not be set correctly without a download, now fixed
    - fixed: GUI not saving location when it's hidden
    - fixed: Everything and ES not starting correctly
    - changed: debugging log-file now made to sort(_,"U") before appending
    - changed: removed ~ before the script-only up/down hotkeys
    - fixed: the everything service wasn't run properly all the t
    - changed: app_es can now be set via the ini file
    - fixed: gui_clear would grab focus, now fixed
    - added: app_everything_onlywithscript allows for user to automatically close app_everything if it was started by the script
    - changed: added super-global variables app_name, app_ver, and ini_file
    - changed: debugging log-file now made to sort(_,"U") before appending
    - changed: removed ~ before the script-only up/down hotkeys
    - fixed: the everything service wasn't run properly all the t
    - changed: app_es can now be set via the ini file
    - fixed: gui_clear would grab focus, now fixed
    - added: app_everything_onlywithscript allows for user to automatically close app_everything if it was started by the script
    - added: saving of both edit and checkbox fields of the Settings GUI
    - added: splash image and ini setting
    - changed: less non-vital logging (Fade in/out) and added timestamp to log
    - changed: finiread() has been adjusted so it will make an ini-entry for whatever entry does not exist
    - fixed: update system threw an empty msgbox
    - added: listview doubleclick opens the file that's being doubleclicked
    - fixed: update on startup was changed by the following settimer, now fixed
    - added: menu, tray to include open GUI, open Settings, Reload, debug options
    - changed: removed checks in update function
    - added: listview contextmenu more populated
    - fixed: logging more precise
    - added: update message in main statusbar
    - changed: when doing a manual check for updates: show a msgbox when there aren't any updates
    - added: debug subfolder to the GUI Settings Help menu
    - added: language function (later to load an external file, possibly)\n
    - fixed: recent history counted also when lines were not added\n
    - added: right-click menu to listview to remove a line from history (disabled if the line is not in the history)\n
    - changed: .ini makeup in regard to scoring, added a function to do iniread and write if it's not found\n\n
    - added: update msgbox only when script has focus
    - added: option in ini_file to not have GUI grabbing focus on start (gui_on_startup_noactivate). Default: on
    - fixed: recents would show after fade(in) even if search field was filled
    - fixed: listview was.... vertically challenged ... if there were just two rows
    - fixed: update check checked scripts in ./tmp/ which should have been ignored
    - fixed: searching for "?wordsearch" now correctly defaults to the default search engine
    - fixed: added LV.Delete() to recent list population so doubles are prevented
    - automatically empty the GUI after 30 seconds
    - fixed error where a file would be created when searching if the A_ScriptDir had a space in it
    - changed: listview based on number of entries (with a maximum of 20 rows, or h350)
    - fixed: if the hotkey to show the main GUI was executed while the GUI was visible, it'd fade back in, now it works correctly
    - edited: the main script can now have a different name and still be updated by the script updater
    - fixed: listview resizing would give error if row was 0
    - fixed a scoring not being applied issue
    - added save GUI position
    - added moving to the GUI
    - changed: add extra scoring history/recents for sorting (more recent files to get a higher score)
    - changed: updatecheck frequency in ini_file
    - changed: StrReplaced websearches for [email protected]#$%^&*()_+
    - added alternate search options (? > search google, ?w > search wikipedia, ?i > search imdb)
    - added statusbar icon and text when doing an alternate search option
    - added "Last Modified" option (0 by default, requires use_history to be 1) to show history lines when the GUI is started
    - added "score_system" to the scores, 25 points, so hits in in A_MyDocuments and A_Desktop appear higher in the list
    - added "filter_folders" option (1 by default) to filter folders from the shown results
    - added option to auto-show the GUI on startup (1 by default)
    - fixed some issues when A_ScriptDir had spaces in it
    - fixed some delaying functions on bootup: moved to settimers
    - add method to get around default filter (.png "search option" > would show the "search option".png files, regardless of the filter) and before:
    - lost in the mists of time

Shorthand is a wrapper for Voidtools' Everything. It adds functionality to it that I was missing.

There's a LOT of features. The screenshots should give you a good idea, but here are some:
Scoring of results, filtering results, encrypt/decrypt strings for sending, plugins for miscellaneous purposes, etc, etc.

Planned Features
What features are you planning to implement in the future?
   - add: names from custom files
   - add: include files to tray menu
   - check: last run not updating correctly
   - add: add "last run" in history column
   - add: add logging change to gui_settings
   - add: score in GUI_showresults_history
   - add: ignorelist
   - add: create plugin button ... maybe using using ahk-studio or something?
   - add: change logging from a function to a class
   - add: "magnetic" GUI placement: when within 10px from the edge of the screen, snap to it
   - add: option to disable "run as admin" : this would stop "_admin" plugins from loading as well
   - add: click the status bar to allow for hiding/showing filtered entries
   - add: allow user to define which extensions to add to history
   - add: allow user to define maximum of history entries
   - tray message also to update when busy updating (and a settimer to keep that updated)
   - first-run tutorial
   - limit log variable to last 500 lines
   - allow for resizing of the GUI (tricky, as AHK adds weird borders when +resize is on)
   - use COM to use IE when searching google, so it can show titles and links in the hitlist ; wget -U "Firefox/3.0.15" "" -O- -q 2>&1 | grep -E -o -e "<cite>[^<]+</cite>" | sed -r -e "s/<[^>]+>//g"
   - first-run explanation if there's no internet connection
   - about
   - settings: add GUI for custom hotkeys
   - add searching inside
   - add icons to the listview
   - everything automatisch afsluiten en opstarten en verbergen toevoegen aan opties (Everything.ini aanpassen)
   - alternative searching system
   - add option to start app with Windows (app_autostart)
   - option to list the recent files alphabetically instead of by score/date


Unzip in a new folder, retaining the folder structure.
Run shorthand3_ahk2.ahk with autohotkey v2 (if you don't have it installed, you can use the included start.bat file, this will start the script with ./app/AHKv2_x32.exe.
The application will ask you once to be run as admin, this is so "Everything" can find all files.
On first run, the Everything application will build a database, which can take about a minute on most systems. After that, you shouldn't notice it updating that database.

Using the Application
Control-Space will open the main GUI. If you start typing, results should start appearing in the field below it. Pressing Enter will open the top result.

The program installs no programs or services, uninstalling is done by simply deleting the folder it was unzipped to.
The possibly exception to this is the startup .lnk file, if the user selects to start Shorthand on Windows startup.

Up and down arrows can be used to go through the list of results.

Control-Alt-Space will open the settings GUI, where you can adjust miscellaneous settings.

There are several Search Engines installed by default, you can find them in Settings > Program Options > GUI > Search Results.
You can use a search engine by pressing Control-Space and typing ? followed by the letter assigned to the search engine. For example: "?w DonationCoder" will open Wikipedia and search for "DonationCoder". "?i Batman Begins" will open IMdb and search for Batman Begins.

If you want to search for files with specific extensions, you can do this (it will override any extension filters): ".txt text". This will search for any file with text in it, with the .txt extension.

Known Issues
It is very much a work in progress, and there is certainly room for improvement, but I use this script every single time I'm on my computer. It does what I need it to.
Some functionality is still missing and/or unpolished, I'm working on it :)

Find And Run Robot / Re: Key-binding
« on: October 02, 2011, 03:15 PM »
I was looking for a way to bind a key to a certain file, but didn't find it in this thread.
Is that possible in FARR? Searches to that extent have not yielded results (to me) :S

Unfinished Requests / IDEA: network detection
« on: February 10, 2010, 08:39 AM »
I'm looking for something that detects when network connection is achieved with a certain network.
That can be handy to do certain things, like sync, make/unmake networkmappings, etcetera.

For now I've been doing something like below in a settimer:

RunWait , %comspec% /c ipconfig > %A_Temp%\ipconfig.txt, , Hide UseErrorLevel
FileRead , ipcnfg , %A_Temp%\ipconfig.txt
FileDelete %A_Temp%\ipconfig.txt
if ipcnfg contains %DNS_suffix%
network = 1
network = 0

Any thoughts?

Pages: [1]