AHK-Library
AHK-Library copied to clipboard
Most of my personal AHK stdlib.
AHK-Library
Most of my personal AHK stdlib.
Functions
Function | Description |
---|---|
binSearch() | Performs a binary search on a given index-based object. |
borderlessMode() | Toggles AlwaysOnTop and caption for a specified window (active window, if unspecified). |
borderlessMove() | Enables click-and-drag movement for windows without captions. |
checkSession() | Creates a callback for user session messages, such as logging off or locking the session. |
commaFormat() | Performs a comma format on numbers, eg., 123456789.12345 > 123,456,789.12345 . |
compileScript() | Requires: AHK to be installed on the system. Allows compilation of a script from a script, which could be self-compilation. |
downloadGithubRelease() | Requires: urlDownloadToVar() Downloads latest Git repo release from any repo. |
dpiOffset() | Adds DPI offset to the given value, based on the current system DPI setting. |
externalIP[_old]() | Retrieves the visible information of a given IP. If no IP is given, the information for the external IP of the local machine is retrieved. |
fileUnblock() | Removes the "file came from another computer" security flag on a specified file. |
getCurrentTime() | Requires: urlDownloadToVar(), strToLower() Retrieves the current time of the specified [region of a] country. Utilizing the boolean countryIsTimezone parameter, the country parameter may be a timezone acronym instead. |
getImageSize() | Returns the image resolution (width and height) of a given image file. |
getPosFromAngle() | Calculates and returns a coordinate based off of a given coordinate, length/distance in pixels, and angle. |
getSelected() | Returns the path[s] of selected file[s] when using a file explorer. |
getUTCOffset() | Requires: urlDownloadToVar(), strToLower() Retrieves the UTC offset of a timezone. |
getWinClientSize() | Returns the size (width and height) of the client area of a specified window handle. |
hToMs() | Converts hours into milliseconds. |
hwndHung() | Checks if a window handle is hung/frozen. |
ifContains() | Function wrap for if var contains matchList. |
ifIn() | Function wrap for if var in matchList. |
imageSearchc() | Requires: Gdip_All GDI based image search, to replace ImageSearch. |
internetConnected() | Pings given URL (Google if unspecified) to check connection. |
invertCaseChr() | Inverts the case of a given character. |
invertCaseStr() | Inverts the case of a given string. |
is64bitExe() | Checks if a specified executable is 64-bit. |
isAlpha() | Wrap for if var is alpha. |
isAlphaNum() | Wrap for if var is alphaNum. |
isBetween() | Wrap for if var is between lowerBound and upperBound. |
isDigit() | Wrap for if var is digit. |
isFloat() | Wrap for if var is float. |
isHex() | Wrap for if var is hex. |
isInt() | Wrap for if var is int. |
isLower() | Wrap for if var is lower. |
isNum() | Wrap for if var is num. |
isSpace() | Wrap for if var is space. |
isUpper() | Wrap for if var is upper. |
lanConnected() | Checks if the local device is connected to a local area network. |
msToH() | Converts milliseconds into hours. |
msToM() | Converts milliseconds into minutes. |
msToS() | Converts milliseconds into seconds. |
mToMs() | Converts minutes into milliseconds. |
multiKeyStates() | Allows to check for multiple key states at a time, keeping the return boolean to match getKeyState(). |
mouseOverWin() | Checks if the mouse is over a specified window. |
muteWindow() | Requires: VA Mutes, unmutes, or toggles mute state for a specified window in the volume mixer. |
nicRestart() | Requires: nicSetState() Disables and re-enables a specified network adapter. |
nicSetState() | Enables or disables a specified network adapter. |
processExist() | Wrap for process, exist. |
processPriority() | Returns the priority level of a given process/PID. |
rand() | Wrap for random. |
randStr() | Generates a random string of a given length, with options to include any combination of lowercase, uppercase, digits, and symbols. |
readHotkeys() | Creates a list of all hotkeys/hotstrings and directives from a script file (from disk, not active). |
regExMatchI() | Requires: strI() Performs an inverted (end to start) regExMatch. |
regExReplaceI() | Requires: strI() Performs an inverted (end to start) regExReplace. |
setWindowVol() | Requires: VA Sets the volume for a specified window in the volume mixer. |
StdOutStream() | Creates a callback for all standard output lines of a program. |
StdOutToVar() | Returns all standard output of a program. |
strI() | Inverts a given string. |
strReplaceI() | Requires: strI() Performs an inverted (end to start) strReplace. |
strToLower() | Wrap for stringLower. |
strToUpper() | Wrap for stringUpper. |
stringify() | Returns a specified object in the form of a string. |
tool() | Creates a tooltip for a specified amount of time. |
toolSpeak() | Speaks a given string. |
urlDownloadToFile() | Downloads a URL resource to a file. |
urlDownloadToVar() | Downloads a URL resource to a variable. |
urlFileGetSize() | Retrieves the file size of a URL resource. |
winInfo() | Returns information about the specified window. |
Classes
Class | Description |
---|---|
audioRouter | Requires: VA, Audio Router Allows using/interacting with Audio Router from AHK. |
IEObj | Contains an instance of IE via COM, with methods that wrap basic interactions, such as URL navigation. Features extensive error catching. |
threadMan | Requires: _MemoryLibrary, _Struct, AutoHotkey.dll (v1 zip download) Wraps functionality of AutoHotkey.dll to allow multi-threading with AHK v1.1. |
db | Base DB class, with methods for reading, writing, and removing key-value pairs to/from a file. |
Other
Name | Description |
---|---|
functionalAHK | Wraps all AHK commands, so functions may be used instead. |