| Welcome to Nintendo Forums. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| AutoHotKey; scripting easy | |
|---|---|
| Tweet Topic Started: Nov 5 2008, 08:21 PM (228 Views) | |
| ryanj27 | Nov 5 2008, 08:21 PM Post #1 |
|
--
|
AutoHotKey AutoHotKey is a program that allows you to right up your own script that makes a command to open or run a certain thing when pressed. For example, I have a script that I wrote in a few seconds that makes it so when I press Windows Key+Space it opens up firefox. The scripting is pretty easy, unless you want to get into more complicated strings. Here is the code for my Firefox Script (not really mine, I'm positive someone else has made it before):
# denotes the Windows Key space tells the program to activate when the combination of the Windows Key and the Space Bar are pressed Run tells the program that a program/file will be opened when this is activated Firefox.exe is there to tell which program. Be sure to put the file name, not the name you see underneath it on the desktop or in your programs Be sure to name the script you make with a .ahk ! that's the only way it will work! After you create the script, you need to double click on it, then it will activate. I'll add some more tutorials as I progress through the program. Be on the lookout! There are a lot more tutorials and things that can help you here and here. Here are the two scripts I have made already: Firefox Run Spoiler: click to toggle Open Nintendo Forums Spoiler: click to toggle Thanks s_D for telling me about this! Edited by ryanj27, Nov 5 2008, 08:33 PM.
|
![]() | |
![]() |
|
| sniping_dreamer | Nov 5 2008, 08:24 PM Post #2 |
![]()
NOT BACK
|
Haha, you actually took up on it. Cool. Here's my quick script to turn Caps Lock into a "Boss Key". Basically, it minimizes everything into your desktop. Basically Windows Key+D, except faster and put into one button for easy hiding.
I use AutoHotkey often in games to remap keys, or give me extra buttons. For example, in Frets on Fire, I made a script that gave me 2 different sets of strum buttons (since not all keyboard combinations can work) Edited by sniping_dreamer, Nov 5 2008, 08:25 PM.
|
NF Interviews ![]() ![]() | |
![]() |
|
| ryanj27 | Nov 5 2008, 08:26 PM Post #3 |
|
--
|
Thank you again for telling us about this, s_D. It's pretty awesome. I have a question, is there a way you can make all the scripts you have active, but not with a separate icon for each in the desktop tray? |
![]() | |
![]() |
|
| Iggy2010 | Nov 5 2008, 08:27 PM Post #4 |
![]()
The Fickle Fascination of an Everlasting God
|
Hey, this is pretty cool. I'm trying to learn as much programming as I can, and this looks like an easy and practical way to get into programming. I'll have to check it out soon. |
|
[Describe the Person Above You | GFX Gallery | LoZ: Into The Shadows] [Mario Strikers: Charged Review | Metroid Prime 3: Corruption Review] [Cooking Mama: Cook Off Review | Bioshock Review | Sig Store] ![]()
| |
![]() |
|
| sniping_dreamer | Nov 5 2008, 08:34 PM Post #5 |
![]()
NOT BACK
|
The easy way to do this is if you just combine all the scripts into one. There's actually a way to "toggle" the Hotkey on/off. Say you want to use Scroll Lock as the on/off switch. Just do:
Handy if you like toggling. |
NF Interviews ![]() ![]() | |
![]() |
|
| ryanj27 | Nov 5 2008, 08:35 PM Post #6 |
|
--
|
So I can just add them a few lines apart? or do I need to add a combine thing? |
![]() | |
![]() |
|
| sniping_dreamer | Nov 5 2008, 08:40 PM Post #7 |
![]()
NOT BACK
|
Basically, yeah. so for example: n::a b::a a::c etc. etc. |
NF Interviews ![]() ![]() | |
![]() |
|
| ryanj27 | Nov 5 2008, 08:41 PM Post #8 |
|
--
|
Thanks s_D I like it how this is easier to script with, and you can get into more complicated stuff, instead of all easy or all hard. |
![]() | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Pee Wee's Playhouse · Next Topic » |
| Track Topic · E-mail Topic | 11:44 AM Jul 13 |
Hosted for free by ZetaBoards · Privacy Policy












