# AutoExec - Automatic Command Execution on Login
**Stop running the same commands every time you log in.** AutoExec automatically executes your custom slash commands and Lua scripts when you enter the game, saving you time and freeing up your macro slots for what matters.
## Why Use AutoExec?
- **Save Time**: No more typing the same commands after every login
- **Free Up Macro Slots**: Don't waste precious macro slots on simple setup commands
- **One Central Place**: Manage all your startup commands in a single, easy-to-use interface
- **Test Before You Save**: Execute commands manually to verify they work before enabling auto-run
- **Simple & Lightweight**: No complex configuration, no dependencies, just works ## Perfect For - **Hiding UI Elements**: Automatically hide XP bars, reputation bars, or other interface elements
- **Interface Configuration**: Set transparency, positioning, or other UI settings on login
- **Console Variables**: Apply your preferred console settings automatically
- **Custom Scripts**: Run Lua code to configure addons or game settings
- **Quality of Life**: Any repetitive command you're tired of typing ## Features ### Clean Interface
- Integrated directly into WoW's Interface Options panel
- Simple text editor - one command per line
- No complicated menus or confusing options ### Flexible Execution
- **Auto-Execute**: Commands run automatically 2 seconds after login
- **Manual Test**: "Execute Now" button to test commands before saving
- **Safe Execution**: Failed commands won't break the rest of your list ### Smart Command Handling
- Supports slash commands (`/command`)
- Supports Lua scripts (`/run
- **Free Up Macro Slots**: Don't waste precious macro slots on simple setup commands
- **One Central Place**: Manage all your startup commands in a single, easy-to-use interface
- **Test Before You Save**: Execute commands manually to verify they work before enabling auto-run
- **Simple & Lightweight**: No complex configuration, no dependencies, just works ## Perfect For - **Hiding UI Elements**: Automatically hide XP bars, reputation bars, or other interface elements
- **Interface Configuration**: Set transparency, positioning, or other UI settings on login
- **Console Variables**: Apply your preferred console settings automatically
- **Custom Scripts**: Run Lua code to configure addons or game settings
- **Quality of Life**: Any repetitive command you're tired of typing ## Features ### Clean Interface
- Integrated directly into WoW's Interface Options panel
- Simple text editor - one command per line
- No complicated menus or confusing options ### Flexible Execution
- **Auto-Execute**: Commands run automatically 2 seconds after login
- **Manual Test**: "Execute Now" button to test commands before saving
- **Safe Execution**: Failed commands won't break the rest of your list ### Smart Command Handling
- Supports slash commands (`/command`)
- Supports Lua scripts (`/run
`)
- Supports console commands (`/console <cvar> <value>`)
- Automatically trims whitespace and ignores empty lines
- Commands execute in order from top to bottom
### Persistent Storage
- Commands are saved between sessions
- Works across all characters (account-wide storage)
- Survives addon updates and game patches
## Example Use Cases
**Hide Status Tracking Bar:**
```
/run StatusTrackingBarManager:Hide()
```
**Set Action Bar Transparency:**
```
/run MainMenuBar:SetAlpha(0.5)
```
**Configure Multiple Settings:**
```
/run StatusTrackingBarManager:Hide()
/console autoDismountFlying 0
/run MainMenuBar:SetAlpha(0)
/console nameplateShowEnemies 1
```
**Advanced Lua Scripts:**
```
/run for i=1,12 do _G["ActionButton"..i.."HotKey"]:SetAlpha(0) end
```
## How to Use
1. Type `/autoexec` to open the settings panel
2. Enter your commands (one per line)
3. Click "Execute Now" to test them
4. Click "Save" to enable auto-execution on login
5. Done! Your commands will run automatically next time you log in
## Technical Details
- **Lightweight**: Pure WoW API, no external libraries
- **Efficient**: Minimal memory footprint and CPU usage
- **Compatible**: Works with all other addons
- **Safe**: Proper error handling prevents game crashes
- **Modern**: Uses latest WoW Settings API with fallback support
## Support & Feedback
- Found a bug? Report it on our issue tracker
- Have a feature request? We'd love to hear it
- Questions? Check the FAQ or reach out
AutoExec is designed to be simple, reliable, and exactly what you need - nothing more, nothing less.
---
**Note:** This addon executes commands with the same permissions as manually typing them in chat. It cannot bypass game restrictions or execute protected functions during combat.