Skyrim
0 of 0

File information

Last updated

Original upload

Created by

Rez - aka Treplos

Uploaded by

Treplos

Virus scan

Safe to use

About this mod

A small AHK script that automates spamming whatever keys you want, like \"E\" (activate) and \"Y\" (yes), or any other combination for different purposes, like mass smithing, forging, smelting, stripping leather, etc.

Permissions and credits
NEW

Clikey Clicks Script v1.1

Unlike the original v1.0, this new v1.1 of the script is customizable - as some users asked for - where you can specify all the details. This gives you more flexibility and makes the script more useful, even outside the game! It should also provide better compatibility for users with remapped keys, and even those with non-English keyboards.

(1) Which Hotkey you want to use.
Pease do NOT use complex keys with modifiers (Ctrl or Shift or Alt). For example: "X" or "PgUp" are ok, but "Ctrl-X" or "Shift-Alt-PgUp" are not ok.

(2) How many loops you want the script to do.
This determines how many loops the script will do with 1 press of the Hotkey.
Don't worry though, you can press the Hotkey again to do as many loops as you want.

(3) Which key presses you want to spam.
For example: "E and Y", or "F and 5", or "` and ]", etc.
In fact, you can specify 2 keys in each box, for a total of 4. For example: "R5" and "=8", or any combination you want from the allowed characters.
This can also be useful if you want to spam keys outside the game!!

(4) How much delay or pause you want between each key press.
The lower the delay (which is in milli-seconds), the faster the keys will press.
The best speed depends on how fast your game and PC are, and possibly how much frame rate or FPS you have.
If you have a slow PC or your FPS is low, you might miss some key presses.
But it does not matter at all, even if you put 1 or 0 ms delay and skip some key presses as a result, because you can just spam keys as much as you want :D

- Btw, I have disabled the Game detection for now, so you can load the script at any time, before or after you start Skyrim.

- Also, I included a small popup msgbox to tell you when your input was successfully saved. I can disable that later on though.

The zipped/archive file has both the Compiled and Uncompiled versions in it. So use whichever you prefer.
The original version 1.0 is still available of course.

Waiting for your feedback!
Rez


DESCRIPTION

This AHK script (the original v1.0) is a small and simple utility that relieves you of having to spend hours spamming "E" and/or "Y" on your keyboard when you are doing stuff in bulk, like mass smithing, forging, smelting, stripping leather, buying, or even wood-chopping (if you remove the animation from the wood-chopping script or use a no-anim mod). It is especially useful if you have mods that let you breakdown everything, like clutter, misc items and others.

I wrote this just for myself for fun and thought I would share, just in case others might find it useful.
It has saved me a lot of time, pain and mouse clicks :P.

The script can be used for anything that requires spamming the keys "E" (to activate) and/or "Y" (for yes confirmation). You can use it even if you only need to spam one of the keys, like "E" by itself or "Y" (the other key presses will simply do nothing).


WHAT IT DOES

Once you activate it, the script will simply spam the keys "E" and "Y" for you. That's all.
It does not get installed and does not interfere with anything really.
You can turn it on and off whenever you like or delete it without any issues.


Important

You need to keep your game MAXIMIZED while the script is running. This is how most AHK scripts work, since they are not injected into the game itself. AHK scripts normally simulate key presses regardless of the application. So, if you minimize Skyrim while the script is running, the script will be pressing "E" and "Y" on your desktop lol or in/on whatever application you put in the front.

However, I have included a function in the script to detect if the game is running, so the script will not activate if the game is not on. But just take note of this please.


INSTALLATION

The scripts comes in 2 versions. Choose the one you prefer:

- The uncompiled version, which is the .AHK file. You need to install the main AutoHotKey program to run this version.
It is also the source code, so you can open it and look at it in any text editor.

- The compiled version, which is the .EXE file. This can run by itself and does not need any other program.

NOTE: It does not really matter where you save or place the file, since you can start it from any folder.


UNINSTALLATION

To uninstall, just delete the .AHK or .EXE file you downloaded.


Loading, Activation & Deactivation

(1) To load the script: start Skyrim, alt-tab out and double-click the .AHK or .EXE file.

(2) A new [H] icon will appear in your system tray (the side bar on the lower right of your Windows desktop, where the system clock is).
A green icon means the script is loaded and is ready to be started.

(3) If Skyrim is on, the script will take you into the game. If Skyrim is not on, it will display an error message.

(4) To start and stop the script: just press the END key on your keyboard (END/BREAK on my laptop), since it acts as a toggle.
In other words, press END to start, and press it again to stop.

(5) To completely terminate the script: alt-tab out of Skyrim, right-click on the [H] icon and press EXIT. The file and script will be terminated.
If you want to use it again, you will have to start from Step 1.


HOW TO CUSTOMIZE THE SCRIPT


What you need

To change key presses in the script for your own use, here are some instructions. AHK is very simple, so it should be quite easy. (If you happen to re-publish my script with changes, please give credit :))

- You will first need the uncompiled version, so that you can do your changes directly to the .AHK file.

- You will also need to download and install the Autohotkey program itself, since the .AHK file needs it to run.

- Right-click on the .AHK file and click EDIT and it should open in Windows Notepad, or drag and drop it in any text editor. Once you do your changes, save the file. Easy peasy!! :D

- If you want to make an uncompiled file, right-click on the new .AHK file and click COMPILE. It will create an .EXE file for you.


What to change

There are 3 things that you may want to change in the script. Do not change anything else unless you know what you are doing :P

- the toggle key (END) to start and stop the script.
- the "E" key press.
- the "Y" key press.


Where to change

Here is where you do the changes in the script:

[Line 26] End::-- this is your toggle key to start the script. You can change "END" to whatever key you want.
[Line 35] If GetKeyState("End", "P")-- this is your toggle key to stop the script. You can change "END" to whatever key you want. It is better to use the same key for both the start and stop function, for simplicity.

[Line 39] Send E-- this is your "E" press. You can change "E" to whatever key you want.
[Line 41] Send Y-- this is your "Y" press. You can change "Y" to whatever key you want.


Notes

I think any key press can be emulated, even in non-English keyboards, as long as the proper code is known. Here are some links to help you get started: AHK KeyList

There is also a small function I included in the script called "KeyHistory" which is commented out [Line 31]. You can uncomment it to try and find special keys when you press them. You may need to add #InstallKeybdHook to the top of the script as well if it does not work at first: AHK KeyHistory


I hope it is useful.
Rez

________________________________________
My Mods:

> REZ SORTING MOD
> Rez Modified Spells and Settings
> No More Click-EY Clicks_AHK Script
________________________________________