Editing an AppleScript using Script Editor. AppleScripts are written in Script Editor, an app which lives in your Mac's Utilities folder. There are two ways you can create scripts in AppleScript. If you plan to use AppleScript frequently, right-click or Ctrl-click on the script editor's Dock icon and choose 'Keep in Dock' so you can launch it with a single click.
Taking shortcuts is awesome — there’s something about doing a task in a speedy way that gives you a sense of fulfillment. Once you’ve mastered the huge list of Windows keyboard shortcuts and have every Windows 10 gesture down flat, you might be hungry for more ways to use shortcuts.
AutoHotkey (AHK) is the answer to all of your customization needs. This one little program can take care of remapping keys, creating new shortcuts, and running macros to automate repetitive tasks. Let’s take a look at some awesome scripts you can download and start using right now, then get some AHK basics down so you can make your own scripts where these don’t suffice!
If you need a detailed introduction to AHK, take a quick detour to our AutoHotKey guide for beginnersThe Quick AutoHotkey Guide for BeginnersThe Quick AutoHotkey Guide for BeginnersAutoHotkey is a powerful free and open source Microsoft Windows tool that can automate repetitive tasks. Learn how to use it here.Read More before you proceed.
Installing AutoHotkey
Before you can test out some scripts or make your own, you’ll need to get AutoHotkey installed. Visit the main page for AHK, click Download on the right side, and choose Installer to grab the easiest version to install. Run through the quick install dialogue, and you have AutoHotkey running and ready to go!
Now, the program you just installed handles the execution of the scripts you write in AutoHotkey’s language, but you don’t have any scripts running, yet! To create a new one, make sure AutoHotkey is running (by opening your Start Menu and typing AutoHotkey to run the program), then right-click anywhere on your desktop or wherever else is convenient and choose New > AutoHotkey Script. Name it something useful and make sure the file ends in .ahk, or it won’t work correctly.
If you’re going to be writing some scripts for AutoHotkey, it’s a good idea to upgrade your text editor from the bland Notepad. Notepad++ is a great free option and is recommended for this purpose. Note that you can open your text editor, type some code, and simply save it as a file ending in .ahk and you’ll achieve the same result as the above method.
Now that you have the software to run the scripts, you can download the code that others have written to automate all sorts of tasks. To save a script, simply download it as an .ahk file and save it wherever you wish.
You’ll probably want some of these scripts to run as soon as you boot your computer so you don’t have to remember to start them manually every time. To do that, copy and paste the .ahk files into your Startup folder by typing shell:startup into the Start menu, or browsing to the following location:
This will ensure they’re running as soon as you start, so you don’t try to use the key combinations and get nothing!
The Best AutoHotkey Scripts
Here are some of the best scripts you can download and start using to make Windows even better right away.
1. AutoCorrect
AutoCorrect is a staple of smartphone keyboardsHow to Fix or Turn Off Autocorrect on AndroidHow to Fix or Turn Off Autocorrect on AndroidRead More, but it hasn’t really made its way to desktop yet since you have more precise typing on the latter. However, you’re still bound to make mistakes when typing (whether by slip of the fingers or just not knowing the spelling of a word), so AutoCorrect should be one of the first scripts you get on your computer.
This is an old script, but typos don’t go out of style. It contains tons of common misspellings and when you commit one, it instantly replaces it with the correct version. It even allows you to edit your own words in, which we’ll discuss later.
Download: AutoCorrect Script
2. Disable Lock Keys
The three Lock keys — Num Lock, Caps Lock, and Scroll Lock — aren’t really used that often in today’s computing. You probably only use the number pad for numbers, don’t ever hit Caps Lock except by accidentOops! 10 Keyboard Shortcuts Users Keep Hitting by MistakeOops! 10 Keyboard Shortcuts Users Keep Hitting by MistakeFind that your keyboard won't type properly? Here are common keyboard shortcuts that cause issues and how to fix them.Read More, and might not even know what Scroll Lock does. You can make Windows play a tone when you hit these keysHow to Get Alerted When Caps Lock Is Enabled in WindowsHow to Get Alerted When Caps Lock Is Enabled in WindowsCaps lock can strike at the worst times. Here's how to know as soon as you hit that annoying key.Read More, but to go further, try setting them to a default value with this script:
This assumes you want Num Lock always on; if you prefer it off, just change that line (or remove it completely and only deal with Caps and Scroll Lock).
3. Re-purpose Caps Lock
Once you’ve used the above code to disable Caps Lock, it makes sense to give that key another purposeIsn't It Time You Made Use of Your Caps Lock?Isn't It Time You Made Use of Your Caps Lock?The CAPS LOCK key is probably the most useless key on your keyboard. Netiquette forbids you to use it because it's considered screaming, which is simply rude. And what else would you use it for..Read More.
Using this short script will turn Caps Lock into another Shift key, but you can change it to anything you’d like (perhaps another Windows key, if your keyboard only has one of those):
4. Quickly View or Hide Hidden Files
We’ve shown you how to view hidden folders in WindowsHow to View Hidden Files and Folders in WindowsHow to View Hidden Files and Folders in WindowsNeed to work with a hidden file or folder in Windows? Here's how to view them in just a few clicks.Read More, because many people want them showing all the time. If you only need access to hidden folders once in a while and don’t want them cluttering up your work normally, however, this is the script for you.
This script simply has you press Windows Key + H with any folder open to toggle its hidden files or folders. That’s all there is to it!
Download:Toggle Hidden Files Script
Auto Clicker For Mac Osx5. Quickly Show or Hide Known File Extensions
In a similar vein, sometimes you want to see file extensions for every file; this comes in handy, if you have multiple files with the same name, or want to make sure that something you downloaded and thought was a PDF isn’t actually a harmful .exe. The below script will let you toggle showing extensions for known file types with Windows Key + Y.
Download:Toggle Known File Extensions Script
6. Insert Special Characters
Though your keyboard has some special characters (like @ or *), there are dozens more that are pretty tedious to access, if you use them with any frequency. With just a line of AHK code, you can quickly insert these special symbols and stop having to hunt around with ALT codes15 Common Symbols You Can Insert With the Alt Key15 Common Symbols You Can Insert With the Alt KeyYour keyboard has lots of symbols, but there are plenty more that aren't immediately accessible.Read More or copy and paste from a Web list.
Use the template below to create shortcuts that will be useful for you; the left characters are what you press to trigger the shortcut, while the symbol inside the brackets is what gets inserted. So, if you want to press ALT + Q to insert the trademark icon, you would type:
For reference, the characters for keys are as follows. You can read more about hotkeys on AHK’s guide page.
7. Mimic a Chromebook Search Key
Google’s Chromebooks have many shortcuts of their own, including a completely different key. Google decided to remove the infrequently used Caps Lock key and replace it with a Search button on their machines. You can get a similar functionality with a simple script.
This will launch your default browser and search Google for any bit of text you have highlighted when you press CTRL + Shift + C. Handy to reduce copying and pasting all the time!
8. Use the Numpad as a Mouse
You can navigate Windows with just keyboard shortcuts, but having this script around makes it a lot easier if you don’t want to remember all of those. It uses your number pad to act as a mouse, giving you more precision and a way to get around your computer in case of a failure.
Download:Using Keyboard Numpad as a Mouse Script
9. Launch Any App
Launchers like Launchy are great for pulling up any program installed on your computer in seconds, but for your most-used programs you might want a faster way.
The script to open an app is simple; here’s one to launch Firefox when you press Windows Key + F:
10. Paste into a Command Prompt
Up until Windows 10, you had to right-click and choose Paste to paste anything into a command line; the usual shortcut CTRL + V didn’t work.
If you’re still holding out on Windows 10, this quick script lets you use CTRL + V to paste into the Command Prompt like normal.
Even More!
For even more scripts, including ones that are much more complex, check out the AutoHotkey Script Showcase.
Writing Your Own Scripts
If you’re just getting started with AHK, you’ll probably benefit the most from text expansion.
Basically, text expansion lets you type a bit of text that automatically expands to a lot. Do you have repetitive emails you send multiple times a day? How often do you type out your email address when signing into websites and the like? Instead of wasting time typing these items out every time, set up some text expansion and become more productive.
If you downloaded the AutoCorrect script above, there’s a place at the bottom for you to add any phrases of your own, which is a perfect place to add some single-line expansion. If you’re not using this script, just make a new script for your entries.
It’s quite simple: type two colons, followed by the hotkey text. After two more colons, type the phrase to be expanded. So, if you wanted to make typing “@@” auto-expand to your email address, the script would be:
Komodo Edit supports background syntax checking and contains a toolbox with shell command integration, macros, and code snippets. Codewright. If you like the Vi editor in Linux, but prefer a graphical editor that also serves well as a programmer’s text editor, and are good options. Both Editra and Komodo Edit are available for Windows, Linux, and Mac OS X. Editra has a tabbed interface, allows block (un)commenting and (un)indenting, and is extendable using the built-in plugin downloader/installer. They both provide Vi emulation, as well as support for syntax highlighting in many programming languages and code folding.
The possibilities here are many — you could make the hotkey CTRL + ALT + C spit out a canned email that you type several times a day, or any number of other tasks pertinent to your work:
Once you’ve set up some text expansion, you can start remapping keys if you find some of them not useful in their current state.
Do you wish the Insert button was a shortcut for Copy? You can do that!
Check out the AutoHotkey tutorials for more info.
The Power of AutoHotkey
The great part about AutoHotkey is that it’s completely customizable for your needs. If you just want AutoCorrect and a few simple bits of text expansion, you can easily set that up. If you want to go deeper with lots of custom controls and complex shortcuts, you can write anything you please.
You shouldn’t have any trouble coming up with uses for AHK. For starters, you can combine it with existing Microsoft Office shortcuts60 Essential Microsoft Office Keyboard Shortcuts for Word, Excel, and PowerPoint60 Essential Microsoft Office Keyboard Shortcuts for Word, Excel, and PowerPointHundreds of keyboard shortcuts are available in Office, but these are the most important ones you should know because they will save you a lot of time.Read More and you’ll be more productive than ever before!
Image Credit: holding dental equipment by FabrikaSimf via Shutterstock
Explore more about: Keyboard Shortcuts, Productivity.
Archived
An autoclicker can be very useful for some of the things on r/beermoney. I've been searching forever for a free Mac autoclicker and finally discovered something that works. I'll explain how to set it all up and give an example of how to use it with the SuperLucky button.
General Setup:
SuperLucky Bottin :)
Once this is set up, you can simply run it and it will click through your daily 100 clicks while you do anything you want.
New Superpoints users only: Sign up for Superpoints with one of the referral links below or in comments. Alternatively, PM me and I'll reply ASAP with an invite. The website is invite only. Try to get to platinum level to get 100 free spins per day.
NOTE - This guide assumes you have cliclick saved to /Users/derp/Desktop/cliclick, you will modify this to your actual path.
![]()
cd /Users/derp/Desktop/
3) Type the following command but DO NOT hit enter
./cliclick -q
4) With terminal still open, hover the mouse over the SuperLucky Button and press enter
5) Take note of the output, we will assume 658,510 and refer to it as SLB
6) Continue to click until you win (7a) or see the sponsored ad (7b)
7a) If you won, prepare the cliclick -q command in terminal and hover the mouse over the 'keep playing' button, press enter. For this tut, let's assume we got 877,485 which will be 'WIN'
7b) If you got the ad, prepare the cliclick -q command in terminal and hover the mouse over the 'continue playing' button, press enter. For this tut, let's assume we got 876,287 which will be 'ADS'
8) Once you have all 3 locations, open AppleScript Editor and copy/paste this script
9) You will need to edit the first 3 lines to the coordinates you found before as well as the path where cliclick is installed.
How To Make A Auto Clicker For Mac Using Script Editor Download
10 optional ) Depending on your connection speed and other factors, you can edit the waiting times (default 200 ms and 1100 ms, 1000 ms = 1 second) as well as the number of repeats in the script.
11) To run, first set focus to your browser, then the AppleScript Editor. You will see the editor on top of the browser. Press 'Run' or hit command + R to begin the script. Once it's running, you may have to manually click the browser to set focus. It will NOT work if the AppleScript Editor is still on top/in focus.
12) To end, wait until it loops through all iterations, or quickly press command + tab to switch to AppleScript Editor and hit the Stop script hotkey (command + period.)
Have fun SuperLucky Bottin'!
WINDOWS ALTERNATIVE - Download a free autoclicker or macro recorder (google is your friend) and set it up to click the 3 target areas, ADS WIN and SLB and loop accordingly.
SuperPoints invites updated daily
http://superpoints.com/wrpgs/wx8go6NEW 25 Point bonus Expires 1/27
http://superpoints.com/wrpgs/iinz4aNEW Expires 1/27
http://superpoints.com/wrpgs/wx8go6NEW Expires 1/27
http://superpoints.com/wrpgs/57lgqnNEW Expires 1/27
http://superpoints.com/wrpgs/0j01lbNEW Expires 1/27
How To Make A Auto Clicker For Mac Using Script Editor For Advance
http://superpoints.com/wrpgs/8tt6ciNEW Expires 1/27
How To Make A Auto Clicker For Mac Using Script Editor Tutorial
http://superpoints.com/wrpgs/inxit0NEW Expires 1/27
How Do I Make A Auto Clicker Go Faster
1 comment
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |