- Find out why you should create a video script and how you should go about 'reading' it in front of the camera so that you don't look awkward. Download a free video script template which contains the winning 4-section structure that will make your information crystal clear, organized and will get you more customers.
- How to auto-run a script. Ask Question Asked 10 years, 11 months ago. Active 2 years, 5 months ago. Viewed 33k times 4. I created a script that will tell me what to wear in the morning based on the weather (i.e. Rain slicker if it will rain, heavy jacket if it will be cold, etc). I have fairly basic programming experience with python and the.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
This page is a collection of useful AutoHotkey scripts.
[see AutoHotkey Tutorial]
Swap Modifier Keys
[see AutoHotkey Key Syntax]
Launch Browser, Switch to Browser
Suppose you want a hotkey that launches a browser, but if it is already running, just switch to it.
How to find window name or app name?
To find out what is the window's “ahk_class”, right click on the AHK icon and chose “Window Spy”, then click on a window you want.
for Mac or Linux, see:How to Set Key to Switch to Browser
It is useful to have a single button to switch to last window.
Alt+Tab is no good because it strain your hands, and you have to take a second to chose.
Single Key for Cut, Copy, Paste
Disable Caps Lock, Num Lock, ScrLk
[see AutoHotkey Key Syntax]
The ▤Menu key is actually very useful. See: Microsoft Keyboard Menu Key.
Disable Windows Logo Key
Disable Win Key Start Menu Behavior
Disable ❖Window key, but don't disable ❖Window+key combination.
Disable Win+key Combination
Note: the ❖Window+l (lock computer) cannot be disabled.
Disable Win Key Completely
Disable F1 Help
Instead of disable keys, it's better to set them to do something useful, such as switching app/window/tab, or copy cut paste.
Empty Trash (Recycle Bin), Open Trash
Used Car Commercial Script
open recycle bin:
Changing Sound Level
Many keyboards have special buttons to control sound level, but they are a pain to use. Because, the button change volume by a tiny amount. You have to press it 5 or 10 times. If you hold it, for a second nothing happens, then all of a sudden it became too loud.
The following script changes volume by 10%, using Ctrl and the + and - on the numberpad.
Change Sound Level with Multimedia Key
If you have a multimedia keyboard with special keys such asMicrosoft Ergonomic Keyboard, and want increase sound volume by one of its special button, here's what you can do.
Create a file of the following content and save it as
Then, use IntelliTypeto assign the keyboard's special button to launch the script.
Close Tab in Browser
Close Current Window or Tab
Windows has many different keyboard shortcuts to close the window. For example, Alt+F4 closes the application, Ctrl+F4 or Ctrl+w closes current tab or window in browsers, Escape usually closes dialog boxes. (See: Windows Keyboard Shortcuts)All these can be thought of close the current visible box. You can define a easy key, so that it'll close the current browser tab, or window, or application.
The code checks what application is the current window, by the
IfWinActive lines. When you want a hotkey to check what is the current window or if it exists, you can use“IfWinActive” or “IfWinExist”.
Toggle Window Size
Note: in Microsoft Windows 7, you can maximize by ❖Window+↑ and restore by ❖Window+↓.[see Windows Keyboard Shortcuts]
Temporarily Disable AutoHotkey
Script For Auto Attendant
You have many personal hotkeys. In some situations, you want thesehotkeys to be off temporarily. You can create a hotkeyX, sothat it'll disable all your hotkeys, and press hotkeyX again to turn allyour hotkeys back on. Here's a example:
When hotkeys are suspended, the AutoHotkey icon in your system notification area changes to S.
Swap Middle/Right Mouse Buttons
[see Why Swap Mouse Right Button and Middle Button]
If you have a question, put $5 at patreon and message me.