# AutoIt3 limits/defaults

AutoIt3 limits | Value | Description
--- | --- | ---
MAX_LINESIZE | 4095 | Maximum size for a line of script.
STRBUFFER | 4095 | Size of a general string buffer.
MAX_ENVSIZE | 32767 | Maximum size for an ENV variable.
WINTEXTBUFFER | 32767 | GetWindowText fails under 95 if>65535, WM_GETTEXT randomly fails if > 32767.
IDLE | 10 ms | Number of ms to wait when idling.
HOTKEYQUEUESIZE | 64 | Maximum number of queued hotkeys that can be buffered.
MAXEXECUTERECURSE | 384 | Maximum number of times the Execute() function can recurse to itself.
GUI_MAXWINDOWS | 1024 | Maximum number of simultaneous windows.
GUI_MAXCONTROLS | 4093 | Maximum number of controls in GUI box.
GUI_MAXCOLOURS | 32 | Maximum number of colour brushes to cache
GUI_MAXPOINTS | 256 | Maximum number of points by graphic info page.
COM_MAXEVENT | 64 | Maximum number of COM events that can be buffered.
VAR_SUBSCRIPT_MAX | 64 | Maximum number of subscripts for an array.
MAIN_TIMER_DELAY | 750 ms | Tray icon hiding/flashing/drawing is checked every 750ms.
CMDLINE_MAXPARAMS | 63 | Maximum number of parameters.
CMDLINEPARAM_MAXLEN | 4096 | Each parameter can be this many characters.
TRAY_MAXITEMS | 505 | Maximum number of items in the tray menu.
TRAY_MAXEVENT | 32 | Maximum number of events that can be buffered.
TRAY_TOOLTIPWIDTH | 64 | Maximum number of characters displayed in a tray tooltip.

Default | Value | Description
--- | --- | ---
ADLIB delay | 250 ms | Default delay in ms between ADLIB triggers. Can be defined in AdlibEnable().
|  | Following defaults can be changed with Opt()
MouseClickDelay | 10 ms | Time between mouse clicks.
MouseClickDownDelay | 10 ms | Time the click is held down.
MouseClickDragDelay | 250 ms | The delay at the start and end of a drag operation.
TCPTimeout | 100 ms | Time after a TCP function is aborted.