IsMTAWindowActive: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool isChatBoxInputActive ()
bool isMTAWindowActive ()
</syntaxhighlight>  
</syntaxhighlight>  


===Returns===
===Returns===
Returns ''true'' if the chatbox is receiving input, ''false'' if not active.
Returns ''true'' if the focus is on the MTA window, ''false'' if isn't.


==Example==  
==Example==  

Revision as of 13:49, 16 March 2009

This function returns whether the any system windows that take focus are active. This includes the chatbox input, console window, main menu and transferbox. To get the status of the debug view, see isDebugViewActive.

Syntax

bool isMTAWindowActive ()

Returns

Returns true if the focus is on the MTA window, false if isn't.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows