Have you ever wanted to put a border around your entire screen or desktop? Maybe you want to personalize your computer or make it easier to see. Whatever the reason, this article will guide you through the process of putting or removing a border around the whole screen or desktop using Autokey.
What is Autokey?
Autokey is a powerful automation tool that allows you to create scripts and hotkeys to automate repetitive tasks on your computer. It is available for Windows, macOS, and Linux, making it accessible to a wide range of users.
Installing Autokey
Before we can proceed, you need to install Autokey on your computer. Follow these steps to install Autokey:
- Visit the Autokey website at https://autokey.github.io/
- Download the appropriate version of Autokey for your operating system.
- Run the installer and follow the on-screen instructions to complete the installation.
Creating a Script
Once you have Autokey installed, you can create a script to put or remove a border around the whole screen or desktop. Follow these steps to create a script:
- Launch Autokey from your computer's applications or programs menu.
- In the Autokey window, click on the "New Script" button.
- Give your script a name and click "OK".
- In the script editor, paste the following code:
import pyautogui
def put_border_around_screen():
screen_width, screen_height = pyautogui.size()
pyautogui.moveTo(0, 0)
pyautogui.dragTo(screen_width, 0, duration=1)
pyautogui.dragTo(screen_width, screen_height, duration=1)
pyautogui.dragTo(0, screen_height, duration=1)
pyautogui.dragTo(0, 0, duration=1)
def remove_border_around_screen():
pyautogui.press('esc')
Once you have pasted the code, save the script by clicking on the floppy disk icon or pressing Ctrl+S.
Assigning Hotkeys
Now that you have created the script, you need to assign hotkeys to put or remove the border around the whole screen or desktop. Follow these steps to assign hotkeys:
- In the Autokey window, select your script from the left-hand side.
- Click on the "Set Hotkey" button.
- Press the key combination you want to use as the hotkey. For example, you can use Ctrl+Alt+B to put the border around the screen and Ctrl+Alt+R to remove the border.
- Click "OK" to save the hotkey.
Putting or Removing the Border
Now that you have assigned the hotkeys, you can put or remove the border around the whole screen or desktop. Press the hotkey you assigned to put the border, and the border will appear. Press the hotkey you assigned to remove the border, and the border will disappear.
That's it! You have successfully learned how to put or remove a border around the whole screen or desktop using Autokey. Enjoy customizing your computer and making it more visually appealing!
References
| Website | Link |
|---|---|
| Autokey | https://autokey.github.io/ |