Giter VIP home page Giter VIP logo

autohotkey_scripts's Introduction

autohotkey_scripts

The AutoHotKey scripts that I use.

On my beloved ThinkPad X1, the Print Screen button was given a very privileged position. On the other hand, the Applications button (aka Apps key) was given no position at all. I think this is a bad design decision because the Print Screen button holds a very a function that is ever hardly used. On the other hand, the Apps Key is (at least for me), extremely useful.

Hence, I developed a solution, and turned the Print Screen key into an Apps key, via software.

pc.png

Steps

0- Setup

My setup is Windows 10. I do not know how this could be done on other operating systems, although I guess that it would be similar in any other Windows system.

1- Install AutoHotKey

AutoHotKey is an open-source software that lets you create your own scripts to do cool stuff with your keyboard or mouse. In other words, it's exactly what we need. So the first step will be to install it. Please download and install it from here: https://autohotkey.com/

2- Create the script

Open Notepad and copy-paste this into a new file:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; This script turns the Print Screen key into the Applications (Apps) Key

PrintScreen::AppsKey

Finally, save the file as PrtSc.ahk

3- Run the script

Your file should look like this:

Capture

To run it, simply double-click on it. You will see an icon appear on the bottom-right corner of your screen (near the clock).

Now try your new function, it should be working!

4- (Optional) Make the script run on startup

To make the script run everytime the computer starts, simply open the "Run" program by pressing Windows Key + R . On the prompt, write shell:startup and press OK.

Capture2

A folder's window will appear, where you will have to copy and paste the script.

Capture3.PNG

And it's done! If you have any questions, please feel free to contact me.

Thank you =)

autohotkey_scripts's People

Contributors

franciscoqv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.