Giter Site home page Giter Site logo

lihuelworks_own_autohotkey_scripts's Introduction

Lihuelworks own Autohotkey scripts πŸš€

Notes

  • All scripts are made for AUTOHOTKEY 1 (currently deprecated, but still useful!)
  • If you haven't configured Powershell to accept running scripts, be sure to update Powershell to accept them by pasting Set-ExecutionPolicy Unrestricted in a Powershell console
  • Repo comes with a script "ahk_killall.bat". In case any script gives you trouble, you can press the .bat script to stop all Autohotkey processes (It basically has 2 "taskkill" for the default name for x64 Autohotkey processes)
  • All scripts are written with Windows 10 in mind. This sholudn't give you any trouble, since Windows basics don't change from version to version (but who knows Β―_(ツ)_/Β―)
  • Most of the files here are written for Autohotkey 1, which shouldn't give you any trouble if you install authotkey normally. Be sure to not rename the file endings to .ahk or it will prompt you to choose between Autohotkey 1 and 2 (The scripts don't work for Autohotkey 2, since it has different syntax)

Pre-install for cycle-audio-device.ahk1

  • You probably don't have BurnToast and AudioDeviceCmdlets, so let's fix that. On a Powershell Admin Terminal, paste the following commands to install them (Be sure to press S, then Enter to confirm)
     Install-Module -Name AudioDeviceCmdlets -Force -AllowClobber
    
     Install-Module -Name BurntToast -Force -AllowClobber
    

terminal.ahk

  • Ctrl + Alt + T πŸ‘‰πŸ» Opens Windows Terminal on the default profile, with the same combination you would use to open one in Linux.
    • You can change the type of terminal by changing the executable (currently ”wt.exe”) to any other, like Powershell, CMD or Git Bash.

resize_window.ahk

  • Ctrl + Alt + Left Click πŸ‘‰πŸ» Click any window with that combination to move it, without having to click the windows' title
  • Ctrl + Alt + Rigth Click πŸ‘‰πŸ» Click any window with that combination to Click any window with that combination to move it, without having to click the windows' title it, without having to click the windows' title
    • Script depends on windrag.ahk (Which comes packaged with the repo, asegurate que esten en la misma carpeta)

f1_volume_mixer

  • F1 πŸ‘‰πŸ» Overwrites default F1 behaviour (most of the time, opening a help window) and uses it for something useful instead: Opening Windows Volume mixer (this πŸ‘‡πŸ»)

    Untitled

  • You can also close it by pressing Esc when the mixer is open (apart from just pressin it's X button)

explorer_open_terminal_here.ahk1

  • F12 πŸ‘‰πŸ» With Windows Explorer open, you can open a Windows Terminal window on the current folder path (of the current focused Windows Explorer window)
    • If no Windows Explorer window is focused...nothing happens.
    • Also, you may change the terminal from Windows Terminal to anything elseby changing the Run "wt.exe" -d "%_Path%" command to any other terminal path (using the correct directory flag instead of "-d")

cycle-audio-device.ahk1

  • Ctrl+Alt+Esc πŸ‘‰πŸ» Cycles between plugged audio devices (e.g. Headphones, Speakers, etc)

    • This scripts depends on other script I've wrote: cycle-audio-device-script.ps1, which comes packaged with this repo, and it's called by the ahk script.
    • It also depends on Powershell package β€œBurnToast” (https://github.com/Windos/BurntToast) to send Windows Notifications. If you haven't installed it (which is likely if you don't fiddle with Powershell scripts) it gets automatically installed (If it doesn't, try calling the script with Admin rights)

    Untitled

    • ❗ Sadly, BurntToast doesn't allow to reduce the fade time of notification (which is 5 seconds) so if the hotkey is pressed multiple times, multiple 5 second notifications will be spawn. This can be fixed my closing the notifications (by clicking them or pressing their close buttons). Despite that, the device change is instantaneous.

move_window_to_virtual_desktop.ahk1

  • Ctrl+Windows+Left Key (left virtual desktop) // Ctrl+Windows+Right Key (Right virtual desktop)
    • If you have more than one virtual desktop, this script allows you to move a
      • It depends on VirtualDesktopAccessor by Ciantic (https://github.com/Ciantic/VirtualDesktopAccessor), and although the .dll is provided by the repo, I encourage you to install it by yourself (Released packed in repo is for release 2023-11-10-windows11)
      • For some reason, it doesn’t seem to work on terminal windows (Like Windows Terminal) for what I believe is administrative privileges. I haven’t been able to debug it yet.

lihuelworks_own_autohotkey_scripts's People

Contributors

lihuelworks avatar

Stargazers

 avatar  avatar

Watchers

 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.