AutoHotkey: Difference between revisions
No edit summary |
|||
(118 intermediate revisions by 21 users not shown) | |||
Line 1: | Line 1: | ||
[ | '''AutoHotkey''' is a [[complementary program]] which can be used to initiate operations and automate tasks in [[Total Commander]]. AutoHotkey is a scripting language (kind of programming language) specifically designed to create [http://www.autohotkey.com/docs/Hotkeys.htm hotkeys], which in AutoHotkey terminology means mouse, joystick and keyboard shortcuts. | ||
Another notable feature is [http://www.autohotkey.com/docs/Hotstrings.htm hotstrings] (requires Windows NT/2000/XP or later). Hotstrings are basically the same as hotkeys except that they are triggered when a certain piece of text is typed. They are mainly used to automatically replace typed text with other texts but can be used to trigger any scripted action. | |||
Getting started is not very hard. Just take a look at AutoHotkey's help file which is suited for beginners and advanced users as well and will help you to create your own scripts in no time. | |||
''Be aware that some [[AHK-Scripts with different versions of Windows]] do not work properly or possibly do not work at all.'' | |||
== How does it work? == | |||
In order to make use of the following scripts you have to | |||
# install AutoHotkey; | |||
# save the script as WhateverYouLike.ahk (alternatively add it to the AHK autostart file AutoHotkey.ini); | |||
# run it. | |||
'''or''' | |||
you compile the script with '''''Ahk2Exe.exe''''' (available in the [http://www.autohotkey.com/download/ zip-file] at the AHK Download page). Thus you get a standalone exe-file you can run on each PC without Autohotkey installed. Disadvantage: You can't modify this compiled exe anymore. | |||
== Useful Scripts == | == Useful Scripts == | ||
=== GUI enhancements === | |||
[[AutoHotkey: Drives Tooltip]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Move Quicksearch Box To Make Status Bar Visible]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Show elapsed / remaining / total / start / finish times in title bar of progress dialogs]] (by [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Show the active path in the title bar]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Show the active path in the title bar extended]] (by [[user:StatusQuo|StatusQuo]]) | |||
[[AutoHotkey: TC Fav Menu]] (by [[user:majkinetor|majkinetor]]) | |||
[[AutoHotkey: Tray Icon for TC]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: From FileSync open another TC instance with selected files]] (by [[user:StatusQuo|StatusQuo]]) | |||
=== Automatic actions === | |||
[[AutoHotkey: Automatic directory-specific configuration / actions]] (by [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Alt-Tab fix when minimized to tray]] (by [[user:TucknDar|TucknDar]]) | |||
[[AutoHotkey: Reset the MultiRenameTool automatically]] (by [[user:SanskritFritz|SanskritFritz]], [[user:Sheepdog|Sheepdog]]) | |||
[[AutoHotkey: Run or activate Total Commander]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Auto-Delete BAK-files created by TC's File-Compare-Editor]] (by [[user:StatusQuo|StatusQuo]]) | |||
[[AutoHotkey: Launch a putty session out of an active sftp-plugin connection within TC]] (by [[user:TWatcher|TWatcher]]) | |||
=== User experience improvements === | |||
==== Menus and such ==== | |||
[[AutoHotkey: Makedir and file create history]] (by [[user:Jungle|Jungle]]) | |||
[[AutoHotkey: Popup menu for button bar or F4]] (by [[user:Mbirth|Mbirth]]) | |||
[[AutoHotkey: Popup the splitter menu]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Duplicate starter menu entry]] (or entry in directory hotlist) (by [[user:StatusQuo|StatusQuo]]) | |||
==== Help with Copy/Move/Pack/Download ==== | |||
[[AutoHotkey: Always copy / move in Queue]] (by [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Auto add URL to Background transfer manager]] (by [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Inplace rename with dialog]] (by [[user:Icfu|Icfu]], [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Shutdown computer after download or copy]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Unpack each archive to a separate subdir]] (by [[user:Icfu|Icfu]], [[user:Icfu|Icfu]], [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Automatically assign name for archive]] (by [[user:saturn|saturn]]) | |||
[[AutoHotkey: AppendLnk option for packing (plus: Automatically assign name for archive)]] (by [[user:StatusQuo|StatusQuo]]) | |||
[[AutoHotkey: Move selected files to parent directory]] (by [[user:ArchCarrier|ArchCarrier]]) | |||
[[AutoHotkey: Create shortcuts keeping timestamps]] (by [[user:Hacker|Hacker]]) | |||
==== Help with file panels ==== | |||
[[AutoHotkey: Backspace In Drive Root Opens My Computer]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Double click resets the splitter]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Find Previous Match With Ctrl Shift Enter]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Go To Parent Directory When Doubleclicking Border]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Jump To The Next File Extension]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Mark Important Files Permanently]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Middle click opens new tab]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: ScrollLock functionality]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Simultaneous switch to next/previous Tab in both panes]] (by [[user:Sheepdog|Sheepdog]]) | |||
[[Autohotkey: Spread Selection with Parameter]] (by [[user:Sheepdog|Sheepdog]]) | |||
[[AutoHotkey: With Alt - \ always to root]][[AutoHotkey: With Alt - \ always to root| of drive]] (by [[user:Sheepdog|Sheepdog]]) | |||
[[Autohotkey: When switching panels also transfer file selection]] (by [[user:StatusQuo|StatusQuo]]) | |||
[[Autohotkey: (Un)select all files in both panels with a single key combination]] (by [[user:StatusQuo|StatusQuo]]) | |||
==== Help with Config ==== | |||
[[AutoHotkey: Switch Language]] (by [[user:Sheepdog|Sheepdog]]) | |||
==== Help with the Clipboard ==== | |||
[[AutoHotkey: CopyNamesToClipWithoutExt]] (by [[user:Icfu|Icfu]], [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Copy Filename To Clipboard When Inplace-renaming]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Copy Selection To Clipboard In Lister]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Get the ftp address as hyperlink]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
=== Integration with external tools === | |||
[[AutoHotkey: Launch external diff]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: XML tidy for TC File Compare tool]] (by [[user:tomte|tomte]]) | |||
[[AutoHotkey: Locate in TC]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Paste TC's active path anywhere]] (by [[user:Hacker|Hacker]], [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Send a command to Total Commander]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Send a command to Total Commander (Accurate Version)]] (by [[user:Balderstrom|Balderstrom]]) | |||
[[AutoHotkey: Start Notepad In Lister]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotKey: Explorer Directory Tree]] (by [[user:Vigk|Vigk]]) | |||
[[AutoHotkey: Send a user command to Total Commander]] (by [[user:sunwind|sunwind]]) | |||
[[AutoHotkey: Copy and Paste of Exif via ExifTools]] (by Nikolay Cherkasov) | |||
[http://ghisler.ch/board/viewtopic.php?t=35721 AutoHotkey: F4MiniMenu - Open selected file(s) in defined editor(s) (A F4Menu clone)]] (by Hi5) | |||
=== External (standalone) scripts === | |||
[[AutoHotkey: Close or minimize windows]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Combine file parts]] (by [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Create .bat file to combine file parts]] (by [[user:Hacker|Hacker]]) | |||
[[AutoHotkey: Create folders from filenames]] (by [[user:Icfu|Icfu]]) | |||
[[AutoHotkey: Inplace rename facilities]] (by [[user:Gbo|Gbo]]) | |||
[[AutoHotkey: Launch putty or RDP sessions via a tree-driven selection menu]] (by [[user:mrbinary|mrbinary]]) | |||
[[AutoHotkey: Make a Screenshot of the current Window with Irfanview]] (by [[user:Sheepdog|Sheepdog]]) | |||
[[AutoHotkey: Make shortcut file from clipboard contents]] (by [[user:StatusQuo|StatusQuo]]) | |||
[[AutoHotkey: Refresh the treeinfo.wc of certain drives]] (by [[user:Sheepdog|Sheepdog]]) | |||
[[AutoHotkey: Set folder timestamp to newest file]] (by [[user:SanskritFritz|SanskritFritz]]) | |||
[[AutoHotkey: Simple file compare]] (by [[user:Hacker|Hacker]]) | |||
== Useful addons == | |||
* TC user Boskoop has created an [http://www.autohotkey.net/file/users/Members/Boskoop/Synplus_Autohotkey_Syntax_File.zip AHK syntax highlighter (DDL)] for the TC editor plugin [[SynPlus]]. | |||
[[ | == External links == | ||
* [http://www.ahkscript.org/ AHKScript.org] | |||
* [http://www.ahkscript.org/boards/ AHKScript.org - Forum (English, German and Chinese)] | |||
* [http://www.ahkscript.org/wiki/ AHKScript.org - AutoHotkey Wiki (English)] | |||
* [http://www.autohotkey.com/ AutoHotkey.com] | |||
* [http://www.autohotkey.com/board/ AutoHotkey.com - Forum (English and German)] | |||
* [http://ghisler.ch/board/viewtopic.php?t=6891 Discussion] in the Total Commander forum about some differences between [[AutoIt]] and AutoHotkey. | |||
[[ | {{translated|AutoHotkey|Scripting utilities}} | ||
[[Category:AutoHotkey| ]] | |||
[[Category:Complementary software]] |
Latest revision as of 15:13, 28 November 2016
AutoHotkey is a complementary program which can be used to initiate operations and automate tasks in Total Commander. AutoHotkey is a scripting language (kind of programming language) specifically designed to create hotkeys, which in AutoHotkey terminology means mouse, joystick and keyboard shortcuts.
Another notable feature is hotstrings (requires Windows NT/2000/XP or later). Hotstrings are basically the same as hotkeys except that they are triggered when a certain piece of text is typed. They are mainly used to automatically replace typed text with other texts but can be used to trigger any scripted action.
Getting started is not very hard. Just take a look at AutoHotkey's help file which is suited for beginners and advanced users as well and will help you to create your own scripts in no time.
Be aware that some AHK-Scripts with different versions of Windows do not work properly or possibly do not work at all.
How does it work?
In order to make use of the following scripts you have to
- install AutoHotkey;
- save the script as WhateverYouLike.ahk (alternatively add it to the AHK autostart file AutoHotkey.ini);
- run it.
or
you compile the script with Ahk2Exe.exe (available in the zip-file at the AHK Download page). Thus you get a standalone exe-file you can run on each PC without Autohotkey installed. Disadvantage: You can't modify this compiled exe anymore.
Useful Scripts
GUI enhancements
AutoHotkey: Drives Tooltip (by SanskritFritz)
AutoHotkey: Move Quicksearch Box To Make Status Bar Visible (by Icfu)
AutoHotkey: Show elapsed / remaining / total / start / finish times in title bar of progress dialogs (by Hacker)
AutoHotkey: Show the active path in the title bar (by SanskritFritz)
AutoHotkey: Show the active path in the title bar extended (by StatusQuo)
AutoHotkey: TC Fav Menu (by majkinetor)
AutoHotkey: Tray Icon for TC (by SanskritFritz)
AutoHotkey: From FileSync open another TC instance with selected files (by StatusQuo)
Automatic actions
AutoHotkey: Automatic directory-specific configuration / actions (by Hacker)
AutoHotkey: Alt-Tab fix when minimized to tray (by TucknDar)
AutoHotkey: Reset the MultiRenameTool automatically (by SanskritFritz, Sheepdog)
AutoHotkey: Run or activate Total Commander (by SanskritFritz)
AutoHotkey: Auto-Delete BAK-files created by TC's File-Compare-Editor (by StatusQuo)
AutoHotkey: Launch a putty session out of an active sftp-plugin connection within TC (by TWatcher)
User experience improvements
Menus and such
AutoHotkey: Makedir and file create history (by Jungle)
AutoHotkey: Popup menu for button bar or F4 (by Mbirth)
AutoHotkey: Popup the splitter menu (by SanskritFritz)
AutoHotkey: Duplicate starter menu entry (or entry in directory hotlist) (by StatusQuo)
Help with Copy/Move/Pack/Download
AutoHotkey: Always copy / move in Queue (by Hacker)
AutoHotkey: Auto add URL to Background transfer manager (by Hacker)
AutoHotkey: Inplace rename with dialog (by Icfu, SanskritFritz)
AutoHotkey: Shutdown computer after download or copy (by SanskritFritz)
AutoHotkey: Unpack each archive to a separate subdir (by Icfu, Icfu, Hacker)
AutoHotkey: Automatically assign name for archive (by saturn)
AutoHotkey: AppendLnk option for packing (plus: Automatically assign name for archive) (by StatusQuo)
AutoHotkey: Move selected files to parent directory (by ArchCarrier)
AutoHotkey: Create shortcuts keeping timestamps (by Hacker)
Help with file panels
AutoHotkey: Backspace In Drive Root Opens My Computer (by Icfu)
AutoHotkey: Double click resets the splitter (by SanskritFritz)
AutoHotkey: Find Previous Match With Ctrl Shift Enter (by Icfu)
AutoHotkey: Go To Parent Directory When Doubleclicking Border (by Icfu)
AutoHotkey: Jump To The Next File Extension (by Icfu)
AutoHotkey: Mark Important Files Permanently (by Icfu)
AutoHotkey: Middle click opens new tab (by SanskritFritz)
AutoHotkey: ScrollLock functionality (by SanskritFritz)
AutoHotkey: Simultaneous switch to next/previous Tab in both panes (by Sheepdog)
Autohotkey: Spread Selection with Parameter (by Sheepdog)
AutoHotkey: With Alt - \ always to root of drive (by Sheepdog)
Autohotkey: When switching panels also transfer file selection (by StatusQuo)
Autohotkey: (Un)select all files in both panels with a single key combination (by StatusQuo)
Help with Config
AutoHotkey: Switch Language (by Sheepdog)
Help with the Clipboard
AutoHotkey: CopyNamesToClipWithoutExt (by Icfu, Hacker)
AutoHotkey: Copy Filename To Clipboard When Inplace-renaming (by Icfu)
AutoHotkey: Copy Selection To Clipboard In Lister (by Icfu)
AutoHotkey: Get the ftp address as hyperlink (by SanskritFritz)
Integration with external tools
AutoHotkey: Launch external diff (by SanskritFritz)
AutoHotkey: XML tidy for TC File Compare tool (by tomte)
AutoHotkey: Locate in TC (by SanskritFritz)
AutoHotkey: Paste TC's active path anywhere (by Hacker, SanskritFritz)
AutoHotkey: Send a command to Total Commander (by SanskritFritz)
AutoHotkey: Send a command to Total Commander (Accurate Version) (by Balderstrom)
AutoHotkey: Start Notepad In Lister (by Icfu)
AutoHotKey: Explorer Directory Tree (by Vigk)
AutoHotkey: Send a user command to Total Commander (by sunwind)
AutoHotkey: Copy and Paste of Exif via ExifTools (by Nikolay Cherkasov)
AutoHotkey: F4MiniMenu - Open selected file(s) in defined editor(s) (A F4Menu clone)] (by Hi5)
External (standalone) scripts
AutoHotkey: Close or minimize windows (by SanskritFritz)
AutoHotkey: Combine file parts (by Hacker)
AutoHotkey: Create .bat file to combine file parts (by Hacker)
AutoHotkey: Create folders from filenames (by Icfu)
AutoHotkey: Inplace rename facilities (by Gbo)
AutoHotkey: Launch putty or RDP sessions via a tree-driven selection menu (by mrbinary)
AutoHotkey: Make a Screenshot of the current Window with Irfanview (by Sheepdog)
AutoHotkey: Make shortcut file from clipboard contents (by StatusQuo)
AutoHotkey: Refresh the treeinfo.wc of certain drives (by Sheepdog)
AutoHotkey: Set folder timestamp to newest file (by SanskritFritz)
AutoHotkey: Simple file compare (by Hacker)
Useful addons
- TC user Boskoop has created an AHK syntax highlighter (DDL) for the TC editor plugin SynPlus.
External links
- AHKScript.org
- AHKScript.org - Forum (English, German and Chinese)
- AHKScript.org - AutoHotkey Wiki (English)
- AutoHotkey.com
- AutoHotkey.com - Forum (English and German)
- Discussion in the Total Commander forum about some differences between AutoIt and AutoHotkey.
Back to Scripting utilities