Skip to content

caglartoklu/ahk-scripts

Repository files navigation

ahk-scripts

AutoHotKey scripts I have written.

Please note that, these are not full blown applications. Some of them are very specific to some applications, versions and even languages. There is a strong possibility that a script in this repository may work on a system, but not on another.

It is also possible they will behave differently with different keyboard layouts.

So please use them at your own risk.

See the LICENSE file.

Home page: https://github.com/caglartoklu/ahk-scripts

Installation

Copy the corresponding script to a directory of your choice, and run it.

Supported Environments

Windows 7 and Windows 8 has been used for testing. But, almost all of the scripts here automate some applications/platforms, so the exact supported environment varies from script to script. Better to check the source code for the exact results.

Tested with AutoHotkey 1.1.13.01.

Security

Some antivirus software will report the Windows binaries for these scripts as malicious software, such as this one. It is a false positive, they are not. If you are suspicious, simply download the source code in .ahk format, then compile them yourself, or simply use them in their source code form.

Usage

Simply run the corresponding script.

Some of them are triggered by special hotkeys, some of them do their thing when they are executed.

Please see the source code of the corresponding script.

Script Index

Download youtube-dl-helper.exe

youtube-dl is an incredible video downloader supporting a ton of online services. youtube-dl-helper.ahk is a simple script providing less typing when using youtube-dl.

To use it, copy the video URL to clipboard, switch to cmd.exe as you would with youtube-dl and type y22 to download the video in high definition. y22 will expand to this, waiting for you to press ENTER:

youtube-dl -t --write-description -f 22 -- "<WHATEVER FROM THE CLIPBOARD>"

The script will perform when the hotstrings are used.

Automates Microsoft Excel 2010 to clear trusted documents. The script will perform at the moment it is executed.

Download cmdexe.exe

Provides:

  • ctrl-v to paste
  • ctrl-a to select all
  • ctrl-f to open find dialog

The script will perform when the shortcuts are used.

Download disable_shift_del.exe

Disables shift-delete key on Windows, and switches it with regular delete key. So, whenever shift-delete is used, file will go to Recycle Bin instead. Tested with Windows 7 and Windows 8. On Windows 7, presses yes for the dialog afterwards too.

Reference: http://stackoverflow.com/a/18074871

The script will perform when the shortcuts are used.

Download snipping-tool-new.exe

Launch the Snipping Tool of Windows and automatically activates New.

Download copy_path.exe

It is a simple script that will copy the files dropped to its icon to clipboard.

When executed, it shreds Windows Recycle Bin using McAfee's Shredder, since McAfee Live Save - Internet Security 12.8 does not place such a right click menu to the Recycle Bin.

Download firefox_save_in_archive.exe

When executed, it overrides ctrl-s (only when Firefox is active) by sending alt-f key for file menu and press g for Save Page In Archive As.

Firefox does not have a Save Page In Archive As method by default. This menu item comes with the Mozilla Archive Format add-on. Since Save Page In Archive As menu item does not have a shortcut, this little script provides one by overriding Save Page As.

Here is a screenshot for the menu structure:

Firefox, MAF, Save Page In Archive Menu

Download ie_save_in_archive.exe

When executed, it overrides ctrl-s (only when Internet Explorer is active). It makes sure that the web pages are saved as Web Archive, single file (*.mht).

This little script opens the Internet Options and cleans history by pressing Delete button.

disable_modifier_keys

A few simple scripts to disable control, alt and shift keys on your keyboard. These scripts, especially the left ones, can be used to slow you down when the pinky finger is too much stressed under heavy coding.

Download sleep_after_vlc.exe

Shutdowns the computer in 10 seconds after VLC Media Player is closed. For this to work, Quit at the end of playlist should be selected in VLC media player, as in the following screenshot:

Quit at the end of playlist

If the the sleep_after_vlc.ini is provided, it will be automatically read by sleep_after_vlc.

Download vlc_few_seconds_back.exe

If a VLC window exists, it will activate it, and it will jump back 20 seconds. In my configuration, it is bound to the extra left side button of my Microsoft Wireless Mouse 5000.

Download vlc_few_seconds_forward.exe

If a VLC window exists, it will activate it, and it will jump forward 20 seconds. In my configuration, it is bound to the extra right side button of my Microsoft Wireless Mouse 5000.

Download vlc_toggle_play.exe

If a VLC window exists, it will activate it, and toggle playing, that is, by sending a space keypress. In my configuration, it is bound to the wheel button click of my Microsoft Wireless Mouse 5000.

Download clip_length.exe

When ctrl-shift-c is pressed, shows the length of the clipboard contents in a small dialog box.

Download selected_length.exe

When ctrl-shift-s is pressed, shows the length of the selected content in a small dialog box. This will almost work in any text editor or application.

Selected Length

Download selected_lower.exe

When ctrl-shift-l is pressed, lower case the selected text. This will almost work in any text editor or application.

Download selected_upper.exe

When ctrl-shift-u is pressed, UPPER case the selected text. This will almost work in any text editor or application.

Download text_paste.exe

Pastes the contents of the clipboard without pictures and formatting (ctrl-shift-v).

SharpDevelop is a free and open source IDE for .NET framework, supporting, C#, VB.NET, Python, F# and some other languages. Most of its shortcuts are similar to Visual Studio, except some. This little AutoHotKey script maps common Visual Studio keyboard shortcuts to SharpDevelop.

License

Licensed with 2-clause license ("Simplified BSD License" or "FreeBSD License"). See the LICENSE file.

Legal

The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.

About

AutoHotKey scripts I have written.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published