| This is an explanation for some of my other code that I decided to put up on this site. There are some things to remember for it: |
| 1. The code I keep here is all in txt. To run it, you have to run it. Like, yourself. |
| 2. I may or may not be good at coding. Don't rely on my code being perfect, just good enough to pass inspection. |
| 3. You'll probably need to understand at least *something* about the language to use the code, though hopefully it's not too confusing. |
| 4. The links that have an @ symbol on the edges open in another tab as, since they are all txt files, they can't link back to other pages. |
@ rainmaker.py - Animated ASCII art of rain in bf7fff: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @
| This is a Python script that outputs an animation of rain (in bf7fff) falling. It looks nice, runs sketchily and features bf7fff; perfection. |
| It asks for four integers: the animation's dimensions in characters, the frames per second to create and the frequency of "rain". |
| Some issues include: |
| Putting in (not even) large numbers for the Y value makes the bottom lines of the animation flicker a bit. |
| The normal numbers framerate values (30 - 60 - 120 or higher) are ridiculously fast for normal settings. Single digit numbers are best. |
| It scrolls instead of clearing text in terminal, meaning it is easy to record the entire animation, but creates a *LOT* of text above. |
| Looking back, it's not my best code and some of the math is off. |
# You can also see my Javascript port of it here, being coded much better and can be run natively! #
@ mnmutility.ahk - Control the mouse pointer using only the keyboard: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @
| This is an AHK (AutoHotKey) script that runs in the background and lets you control the mouse pointer using only the keyboard. Mostly. |
| You'll need to prepare a bit before using AHK for the first time. Mainly just installing the thingy from online. |
| Once you have the program or such, you can optionally compile the .ahk file into a .exe file, letting you and others run it natively. |
| There is a lot more to remember for this one as it creates lots of hotkeys. To list them out: |
| To trigger a hotkey, hold capslock. This script removes capslock's native function. |
| WASD moves the mouse. |
| Q2E left, middle and right click respectively. |
| 1X3 toggle left, middle and right click respectively. |
| GV zoom in and out respectively. |
| Directional keys scroll respectively. |
| RF and ZC also scroll their directions respectively. |
| Some issues include: |
| Mainly just key rollover. Most keyboard physically can't track pressing too many keys at once, potentially stopping many hotkey combinations. |
| You probably can't do some things using it, but I can't test them all myself. For example, manually holding shift to select text. |
| I'm pretty sure the computer has to be able to run .exe files for AHK to function at all. |