Keyboard shortcuts for Windows, Hotkey utility, Keyboard Hot. Key manager. Some key features of Agata. Soft Hot. Key Manager: Easily assign keyboard shortcuts to your programs. Assign keyboard hotkeys to your frequently visited websites. Use a hotkey to open a specific drive. Assign a hotkey to open/close your CD- ROMClose the selected program using a hotkey. Hotkeys (Mouse, Joystick and Keyboard Shortcuts)Table of Contents. Introduction and Simple Examples. Hotkeys are sometimes referred to as shortcut keys because of their ability to easily trigger an action (such as launching a program or keyboard macro). In the following example, the hotkey Win+N is configured to launch Notepad. However, if a hotkey needs to execute only a single line, that line can be listed to the right of the double- colon. In other words, the return is implicit: #n: :Run Notepad. To use more than one modifier with a hotkey, list them consecutively (the order does not matter). The following example uses ^! New hotkey::remapped key.where new hotkey is the keyboard shortcut that will activate the second part—in this case, a remapped key. For example, I don't like the Caps Lock key, so I'd like to remap it to act as a second. AutoHotKey, free and safe download. AutoHotKey latest version: Automate almost anything by setting keystroke and mouse click combos. Control+Alt+S: ^! Send Sincerely. In v. Windows Vista and later, hotkeys that include the Windows key (e. This prevents usages of Send within such a hotkey from locking the PC. This behavior applies to all sending modes except Send. Play (which doesn't need it) and blind mode.! Alt^Control+Shift& An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey. See below for details.< Use the left key of the pair. If your keyboard layout has an Alt. Gr key instead of a right- Alt key, this series of symbols can usually be used to stand for Alt. Gr. For example: < ^> ! Msg. Box You pressed Alt. Gr+m. This is often used in conjunction with remapping keys or buttons. For example: *#c: :Run Calc. Win+C, Shift+Win+C, Ctrl+Win+C, etc. In both of the below examples, the user's click of the mouse button will be sent to the active window: ~RButton: :Msg.
Box You clicked the right mouse button. However, if a tilde is applied to the prefix key of any custom combination which has not been turned off or suspended, it affects the behavior of that prefix key for all combinations. Special hotkeys that are substitutes for alt- tab always ignore the tilde prefix. For example, the ~RButton hotkey above is fired as soon as the button is pressed. Prior to v. 1. 1. RButton & C combination was not activated. If the tilde prefix is applied only to the custom combination and not the non- combination hotkey, the key's native function will still be blocked. For example, in the script below, holding Apps. Key will show the Tool. Tip and will not trigger a context menu: Apps. Key: :Tool. Tip Press < or > to cycle through windows. The $ prefix forces the keyboard hook to be used to implement this hotkey, which as a side- effect prevents the Send command from triggering it. The $ prefix is equivalent to having specified #Use. Hook somewhere above the definition of this hotkey. The $ prefix has no effect for mouse hotkeys, since they always use the mouse hook. It also has no effect for hotkeys which already require the keyboard hook, including any keyboard hotkeys with the tilde (~) or wildcard (*) modifiers, key- up hotkeys and custom combinations. The following example remaps LWin to become LControl: *LWin: :Send . It also works with combination hotkeys (e. F1 & e Up: :)Limitations: 1) . One way to prevent this is to add a tilde prefix (e. The advantage is that although the hotkey will fire upon release, it will do so only if you did not press any other key while it was held down. For example: LControl & F1: :return ; Make left- control a prefix by using it in front of . AutoHotkey sends several tools into retirement. It unites hotkey and text macros and offers a scripting-language, which is more powerful than every batch-file. Keystarter 1.0 - you can Make button icons with scripts, popup menu, virtual keyboard, clipboard, in 3d card, disk, cube, sphere, cylinder any button can run a keystroke, program or write/read registry For example: ^Numpad. Msg. Box Pressing either Control+Numpad. Control+Numpad. 1 will display this message. The following example disables the right- side Windows key: RWin: :return. Context- sensitive Hotkeys. The directives #If. Win. Active/Exist and #If can be used to make a hotkey perform a different action (or none at all) depending on a specific condition. For example: #If. Win. Active, ahk. Pressing Ctrl- A in any other window will pass the Ctrl- A keystroke to that window. In the below example, you would hold down Numpad. Numpad. 0 & Numpad. Msg. Box You pressed Numpad. Numpad. 0. To avoid this, a script may configure Numpad. Numpad. 0: :Win. Maximize A ; Maximize the active/foreground window. See comment below. Fire on release: The presence of one of the above custom combination hotkeys causes the release of Numpad. Numpad. 0 was being held down. In v. 1. 1. 1. 4+, this behaviour can be avoided by applying the tilde prefix to either hotkey. Modifiers: Unlike a normal hotkey, custom combinations act as though they have the wildcard (*) modifier by default. For example, 1 & 2: : will activate even if Ctrl or Alt is held down when 1 and 2 are pressed, whereas ^1: : would be activated only by Ctrl+1 and not Ctrl+Alt+1. For standard modifier keys, normal hotkeys typically work as well or better than . For example, < +s: : is recommended over LShift & s: . Combinations of three or more keys are not supported. Combinations which your keyboard hardware supports can usually be detected by using #If and Get. Key. State, but the results may be inconsistent. For example: ; Press Apps. Key and Alt in any order, then slash (/). For example: Set. Numlock. State Always. On. Overriding Explorer's hotkeys: Windows' built- in hotkeys such as Win- E (#e) and Win- R (#r) can be individually overridden simply by assigning them to an action in the script. See the override page for details. Substitutes for Alt- Tab: Hotkeys can provide an alternate means of alt- tabbing. For example, the following two hotkeys allow you to alt- tab with your right hand: RControl & RShift: :Alt. Tab ; Hold down right- control then press right- shift repeatedly to move forward. Wheel. Left and Wheel. Right are also supported in v. Windows Vista. Here are some examples of mouse wheel hotkeys: MButton & Wheel. Down: :Msg. Box You turned the mouse wheel down while holding down the middle button. A hotkey like the following can help analyze your mouse: ~Wheel. Down: :Tool. Tip %A. For example, the following pair of hotkeys scrolls horizontally instead of vertically when you turn the wheel while holding down the left Control key: ~LControl & Wheel. Up: : ; Scroll left. Alternatively, a numpad key can be made to launch the same subroutine regardless of the Numlock state. For example: Numpad. End: . Msg. Box, This hotkey is launched regardless of whether Numlock is on. For example, in both of the below hotkeys, the active window will receive all right- clicks even though only one of the definitions contains a tilde: ~RButton & LButton: :Msg. Box You pressed the left mouse button while holding down the right. For greater selectivity, use #If. Win. Active/Exist. By means of the Hotkey command, hotkeys can be created dynamically while the script is running. The Hotkey command can also modify, disable, or enable the script's existing hotkeys individually. Joystick hotkeys do not currently support modifier prefixes such as ^ (Control) and # (Win). However, you can use Get. Key. State to mimic this effect as shown in the following example: Joy. Get. Key. State(. Consider the following example: ^! Send . To work around this, use Key. Wait to wait for the keys to be released; for example: ^! Key. Wait Control. Send . Try using a different character that you know exists in your keyboard layout. A hotkey label can be used as the target of a Gosub or Goto. For example: Gosub ^! One common use for hotkeys is to start and stop a repeating action, such as a series of keystrokes or mouse clicks. For an example of this, see this FAQ topic. Finally, each script is quasi multi- threaded, which allows a new hotkey to be launched even when a previous hotkey subroutine is still running. For example, new hotkeys can be launched even while a Msg. Box is being displayed by the current hotkey. Alt- Tab Hotkeys. Each Alt- Tab hotkey must be a combination of two keys, which is typically achieved via the ampersand symbol (& ). In the following example, you would hold down the right Alt key and press J or K to navigate the alt- tab menu: RAlt & j: :Alt. Tab. RAlt & k: :Shift. Alt. Tab. Alt. Tab and Shift. Alt. Tab are two of the special commands that are only recognized when used on the same line as a hotkey. Here is the complete list: Alt. Tab: If the alt- tab menu is visible, move forward in it. Otherwise, display the menu (only if the hotkey is an . Otherwise, display the menu. Alt. Tab. Menu. Dismiss: Close the Alt- tab menu. To illustrate the above, the mouse wheel can be made into an entire substitute for Alt- tab. With the following hotkeys in effect, clicking the middle button displays the menu and turning the wheel navigates through it: MButton: :Alt. Tab. Menu. Wheel. Down: :Alt. Tab. Wheel. Up: :Shift. Alt. Tab. To cancel a hotkey- invoked Alt- tab menu without activating the selected window, use a hotkey such as the following. It might require adjustment depending on: 1) the means by which the alt- tab menu was originally displayed; and 2) whether the script has the keyboard hook installed. LCtrl & Caps. Lock: :Alt. Tab. ! MButton: : ; Middle mouse button. They are not affected by #If. Win or #If. Custom alt- tab actions can also be created via hotkeys. In the following example, you would press F1 to display the menu and advance forward in it. Then you would press F2 to activate the selected window (or press Escape to cancel): *F1: :Send . No label is created for hotkeys defined this way; however, the auto- execute section ends at the first hotkey even if it is assigned a function. The main benefit of using a function is that local variables can be used, which avoids conflicts when two or more hotkeys use the same variable names for different purposes. It also encourages self- documenting hotkeys, like in the code above where the function name describes the hotkey. The Hotkey command can also be used to assign a function or function object to a hotkey.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |