Difference between revisions of "AutoHotkey"
From PCGamingWiki, the wiki about fixing PC games
Juanielias (talk | contribs) (Added Autohotkey 2.0 script for borderless fullscreen and changed to toggle to be more useful for chaning it back) |
Jonnysonny (talk | contribs) (Changed some outdated Homepage and Forumlinks. added discord.) |
||
Line 7: | Line 7: | ||
|release dates = | |release dates = | ||
{{Infobox game/row/date|Windows|November 10, 2003}} | {{Infobox game/row/date|Windows|November 10, 2003}} | ||
− | |official site = https:// | + | |official site = https://www.autohotkey.com/ |
− | |license = | + | |license = Freeware [GPLv2] |
}} | }} | ||
{{Tocbox}} | {{Tocbox}} | ||
Line 17: | Line 17: | ||
'''General information''' | '''General information''' | ||
− | {{mm}} [ | + | {{mm}} [https://www.autohotkey.com/ Official Website], [https://github.com/AutoHotkey/AutoHotkey/ GitHub] and [https://www.autohotkey.com/Discord/ Discord] |
− | {{mm}} [https://www.autohotkey.com/boards/ | + | {{mm}} [https://www.autohotkey.com/boards/ New Forums (Bulletin Board)] and [http://www.autohotkey.com/board/ Archived Forums (IP.Board)] |
− | |||
==Installation== | ==Installation== | ||
{{Fixbox|description=Saving and running AutoHotkey scripts|fix= | {{Fixbox|description=Saving and running AutoHotkey scripts|fix= | ||
− | # Download | + | # Download [https://www.autohotkey.com/download/ahk-v2.exe Autohotkey v2] and install it. |
# Go to the '''Desktop''', then {{key|Right Click}} on an empty space and select '''New''', '''AutoHotkey script'''. | # Go to the '''Desktop''', then {{key|Right Click}} on an empty space and select '''New''', '''AutoHotkey script'''. | ||
# {{key|Right Click}} on the AutoHotkey file, and select '''Edit Script''', erase the contents of this file, close it and save any new changes. | # {{key|Right Click}} on the AutoHotkey file, and select '''Edit Script''', erase the contents of this file, close it and save any new changes. | ||
Line 29: | Line 28: | ||
'''Notes''' | '''Notes''' | ||
{{ii}} AutoHotkey scripts can be placed in the '''Startup''' folder of Windows in order to be executed automatically. | {{ii}} AutoHotkey scripts can be placed in the '''Startup''' folder of Windows in order to be executed automatically. | ||
+ | {{ii}} [https://www.autohotkey.com/download/ahk-install.exe Autohotkey v1] could be needed when trying to run older code. | ||
}} | }} | ||
Latest revision as of 10:07, 4 August 2023
This page is a stub: it lacks content and/or basic article components. You can help to expand this page
by adding an image or additional information.
Developers | |
---|---|
Chris Mallett | |
Steve | |
Release dates | |
Windows | November 10, 2003 |
Key points
- Scripting language for writing mouse and keyboard macros. Very useful at creating hotkeys or rebinding mouse/keyboard controls when the game for whatever reason doesn't allow you to.
- Games utilizing PunkBuster as an anti-cheat measure may mistakenly treat AutoHotkey as a cheat.
General information
Installation
Saving and running AutoHotkey scripts |
---|
Notes
|
Video
Borderless fullscreen windowed
Fullscreen toggle script
- This script will remove any borders and center the currently active window on the primary monitor by pushing F12.
Instructions |
---|
|
- This script will toggle between fullscreen and windowed modes when pressing F12 as well as hiding the taskbar on the fullscreen mode.
Follow the instructions of fullscreen toggle script, but use the below script instead: |
---|
#UseHook On F12:: WinGet, TempWindowID, ID, A If (WindowID != TempWindowID) { WindowID:=TempWindowID WindowState:=0 } If (WindowState != 1) { WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID% WinSet, Style, -0xC40000, ahk_id %WindowID% WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight ;Hide Windows Task Bar and Start Button. (Remove the following two lines if you don't want that behaviour) WinHide ahk_class Shell_TrayWnd WinHide Start ahk_class Button } Else { WinSet, Style, +0xC40000, ahk_id %WindowID% WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight ;Show the task bar again WinShow ahk_class Shell_TrayWnd WinShow Start ahk_class Button } WindowState:=!WindowState return |
Multiple monitors script
- Someone needs to check whenever this explanation for the script is correct or if 0, 0, and A_ScreenWidth/Height mean that the script automatically detects the user's resolution.
- This is a snippet from the fullscreen toggle script.
Fullscreen script |
---|
WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
WinMove, ahk_id %WindowID%, , 1920, 0, 1920, 1080 Notes
|