Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Context Sensitive Help in Any Editor

Based on the v1 script by Rajat

This script makes  Ctrl + 2  (or another hotkey of your choice) show the help file page for the
selected AutoHotkey function or keyword. If nothing is selected, the function name will be
extracted from the beginning of the current line.

Show code

Easy Window Dragging


Normally, a window can only be dragged by clicking on its title bar. This script extends that so
that any point inside a window can be dragged. To activate this mode, hold down  CapsLock  or
the middle mouse button while clicking, then drag the window to a new position.

Show code

Easy Window Dragging (KDE style)


Based on the v1 script by Jonny

This script makes it much easier to move or resize a window: 1) Hold down  Alt  and LEFT-click
anywhere inside a window to drag it to a new location; 2) Hold down  Alt  and RIGHT-click-drag
anywhere inside a window to easily resize it; 3) Press  Alt  twice, but before releasing it the
second time, left-click to minimize the window under the mouse cursor, right-click to maximize it,
or middle-click to close it.

Show code

Easy Access to Favorite Folders


Based on the v1 script by Savage

When you click the middle mouse button while certain types of windows are active, this script
displays a menu of your favorite folders. Upon selecting a favorite, the script will instantly switch
to that folder within the active window. The following window types are supported: 1) Standard
file-open or file-save dialogs; 2) Explorer windows; 3) Console (command prompt) windows. The
menu can also be optionally shown for unsupported window types, in which case the chosen
favorite will be opened as a new Explorer window.

Show code
IntelliSense
Based on the v1 script by Rajat

This script watches while you edit an AutoHotkey script. When it sees you type a command
followed by a comma or space, it displays that command's parameter list to guide you. In
addition, you can press  Ctrl + F1  (or another hotkey of your choice) to display that command's
page in the help file. To dismiss the parameter list, press  Esc  or  Enter .

Show code

Using a Joystick as a Mouse


This script converts a joystick into a three-button mouse. It allows each button to drag just like a
mouse button and it uses virtually no CPU time. Also, it will move the cursor faster depending
on how far you push the joystick from center. You can personalize various settings at the top of
the script.

Show code

Joystick Test Script


This script helps determine the button numbers and other attributes of your joystick. It might
also reveal if your joystick is in need of calibration; that is, whether the range of motion of each
of its axes is from 0 to 100 percent as it should be. If calibration is needed, use the operating
system's control panel or the software that came with your joystick.

Show code

On-Screen Keyboard
Based on the v1 script by Jon

This script creates a mock keyboard at the bottom of your screen that shows the keys you are
pressing in real time. I made it to help me to learn to touch-type (to get used to not looking at the
keyboard). The size of the on-screen keyboard can be customized at the top of the script. Also,
you can double-click the tray icon to show or hide the keyboard.

Show code

Minimize Window to Tray Menu


This script assigns a hotkey of your choice to hide any window so that it becomes an entry at
the bottom of the script's tray menu. Hidden windows can then be unhidden individually or all at
once by selecting the corresponding item on the menu. If the script exits for any reason, all the
windows that it hid will be unhidden automatically.

Show code

Changing MsgBox's Button Names


This is a working example script that uses a timer to change the names of the buttons in a
message box. Although the button names are changed, the MsgBox's return value still requires
that the buttons be referred to by their original names.

Show code

Numpad 000 Key


This example script makes the special  000  that appears on certain keypads into an equals key.
You can change the action by replacing the Send "=" line with line(s) of your choice.

Show code

Using Keyboard Numpad as a Mouse


Based on the v1 script by deguix

This script makes mousing with your keyboard almost as easy as using a real mouse (maybe
even easier for some tasks). It supports up to five mouse buttons and the turning of the mouse
wheel. It also features customizable movement speed, acceleration, and "axis inversion".

Show code

Seek (Search the Start Menu)


Based on the v1 script by Phi

Navigating the Start Menu can be a hassle, especially if you have installed many programs over
time. 'Seek' lets you specify a case-insensitive key word/phrase that it will use to filter only the
matching programs and directories from the Start Menu, so that you can easily open your target
program from a handful of matched entries. This eliminates the drudgery of searching and
traversing the Start Menu.

Show code

ToolTip Mouse Menu


Based on the v1 script by Rajat
This script displays a popup menu in response to briefly holding down the middle mouse button.
Select a menu item by left-clicking it. Cancel the menu by left-clicking outside of it. A recent
improvement is that the contents of the menu can change depending on which type of window is
active (Notepad and Word are used as examples here).

Show code

Volume On-Screen-Display (OSD)


Based on the v1 script by Rajat

This script assigns hotkeys of your choice to raise and lower the master volume.

Show code

Window Shading
Based on the v1 script by Rajat

This script reduces a window to its title bar and then back to its original size by pressing a single
hotkey. Any number of windows can be reduced in this fashion (the script remembers each). If
the script exits for any reason, all "rolled up" windows will be automatically restored to their
original heights.

Show code

WinLIRC Client
This script receives notifications from WinLIRC whenever you press a button on your remote
control. It can be used to automate Winamp, Windows Media Player, etc. It's easy to configure.
For example, if WinLIRC recognizes a button named "VolUp" on your remote control, create a
label named VolUp and beneath it use the function SoundSetVolume "+5" to increase the
soundcard's volume by 5%.

Show code

HTML Entities Encoding


Similar to AutoHotkey v1's Transform HTML, this function converts a string into its HTML
equivalent by translating characters whose ASCII values are above 127 to their HTML names
(e.g. £ becomes &pound;). In addition, the four characters "&<> are translated
to &quot;&amp;&lt;&gt;. Finally, each linefeed (`n) is translated to <br>`n (i.e. <br> followed by
a linefeed).

Show code
AutoHotkey v1 Scripts and Functions Forum

You might also like