AutoHotkey API Reference (for Inspiration)
AutoHotkey is a powerful automation scripting language for Windows that provides many additional features beyond basic mouse and keyboard control. The following APIs serve as a reference for potential future enhancements to Tego Bot:
Window Management
AutoHotkey provides extensive window manipulation capabilities:
Window Detection & Activation
WinExist()- Check if a window existsWinActivate()- Activate a windowWinActivateBottom()- Activate the bottommost matching windowWinWait()- Wait for a window to existWinWaitActive()- Wait for a window to become activeWinWaitClose()- Wait for a window to close
Window State Control
WinMinimize()- Minimize a windowWinMaximize()- Maximize a windowWinRestore()- Restore a windowWinHide()- Hide a windowWinShow()- Show a windowWinClose()- Close a windowWinKill()- Forcefully close a window
Window Position & Size
WinMove()- Move and/or resize a windowWinGetPos()- Retrieve position and size of a windowWinSet()- Change various window attributes (always on top, transparency, etc.)
Window Information
WinGetTitle()- Retrieve window titleWinGetClass()- Retrieve window class nameWinGetText()- Retrieve window textWinGetID()- Retrieve unique window IDWinGetPID()- Retrieve process ID of window's processWinGetCount()- Count matching windows
Process Management
Run()- Run a program, script, or documentRunWait()- Run a program and wait until it finishesProcess- Perform various operations on a process (close, wait, priority, etc.)ProcessExist()- Check if a process existsProcessWait()- Wait for a process to existProcessWaitClose()- Wait for a process to close
Clipboard Operations
Clipboard- Access/modify clipboard contentsClipboardAll- Retrieve all clipboard data including formattingClipWait()- Wait for clipboard to contain data
File & Directory Operations
File Operations
FileRead()- Read file contentsFileAppend()- Append text to a fileFileDelete()- Delete filesFileMove()- Move or rename filesFileCopy()- Copy filesFileExist()- Check if file/folder existsFileGetSize()- Retrieve file sizeFileGetTime()- Retrieve file timeFileSetTime()- Set file time
Directory Operations
DirCreate()- Create directory/folderDirDelete()- Delete directory/folderDirMove()- Move/rename directoryDirCopy()- Copy directoryDirSelect()- Display folder selection dialog
Image & Pixel Operations
ImageSearch()- Search for an image on screenPixelSearch()- Search for a pixel of specified colorPixelGetColor()- Retrieve pixel color at coordinates
GUI Creation
Gui- Create and manage custom windowsGuiCtrl- Add controls (buttons, text, edit boxes, etc.)GuiShow()- Show/hide GUI windowGuiClose()- Close GUI window
System Information & Control
SysGet()- Retrieve system information (screen size, work area, etc.)Shutdown()- Shutdown, restart, or log off the systemSleep()- Wait/sleep for specified millisecondsSetTimer()- Create/manage timed subroutinesFormatTime()- Format time/date stringA_Now- Current date and time variable
String Operations
StringReplace()- Replace substring in stringStringSplit()- Split string into arrayStringLen()- Get string lengthSubStr()- Extract substringStrReplace()- Replace occurrences of substringRegExMatch()- Match string using regular expressionRegExReplace()- Replace using regular expression
Registry Operations
RegRead()- Read from registryRegWrite()- Write to registryRegDelete()- Delete from registry
Network Operations
UrlDownloadToFile()- Download file from URLComObjCreate()- Create COM objects (for advanced automation)
User Interaction
MsgBox()- Display message boxInputBox()- Prompt user for inputFileSelectFile()- Display file selection dialogFileSelectFolder()- Display folder selection dialogToolTip()- Display tooltipSplashTextOn/Off()- Display splash text
Advanced Mouse & Keyboard
MouseGetPos()- Get mouse position (with window info)MouseClickDrag()- Click and drag mouseSendRaw()- Send raw text without interpreting special charactersSendInput()- Send keystrokes using SendInput methodSendPlay()- Send keystrokes using Play methodSendMode- Set send mode (Input, Play, Event, etc.)SetKeyDelay()- Set delay between keystrokesSetMouseDelay()- Set delay between mouse movements
Hotkeys & Hotstrings
- Hotkey definitions (e.g.,
^c::for Ctrl+C) - Hotstring definitions (e.g.,
::btw::by the way) - Context-sensitive hotkeys
- Custom key combinations
Notes
While Tego Bot currently focuses on cross-platform mouse, keyboard, and screen automation, many of these AutoHotkey features could serve as inspiration for future enhancements. However, some features (like Windows-specific window management) may not be applicable to cross-platform libraries.
For more information, refer to the AutoHotkey official documentation.