FocusBrowser: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (fix oop)
Line 10: Line 10:
bool focusBrowser ( browser webBrowser )
bool focusBrowser ( browser webBrowser )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Element/Browser|browser]]:focus||focusBrowser}}
{{OOP||[[Element/Browser|browser]]:focus}}


===Required Arguments===
===Required Arguments===

Revision as of 20:21, 17 December 2015

Accessories-text-editor.png Script Example Missing Function FocusBrowser needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function will attempt to focus the browser or unfocus all browsers. The browser that is focused will retrieve keyboard input.

Syntax

bool focusBrowser ( browser webBrowser )

OOP Syntax Help! I don't understand this!

Method: browser:focus(...)


Required Arguments

  • webBrowser: The web browser to be focused - if this is nil, it will unfocus all browsers.

Returns

Returns true if the browser was focused or if nil was passed, false if it failed to focus or the browser does not exist.

Example

--todo

See Also