<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/isBrowserFocused?action=history&amp;feed=atom</id>
	<title>RO/isBrowserFocused - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/isBrowserFocused?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/isBrowserFocused&amp;action=history"/>
	<updated>2026-04-08T06:53:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/isBrowserFocused&amp;diff=65752&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;__NOTOC__ {{RO/Funcție client}} Această funcție verifică dacă navigatorul web este în prim plan.  ==Sintaxă== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool isBrowserFocused (browse...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/isBrowserFocused&amp;diff=65752&amp;oldid=prev"/>
		<updated>2020-04-08T13:27:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{RO/Funcție client}} Această funcție verifică dacă navigatorul web este în prim plan.  ==Sintaxă== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool isBrowserFocused (browse...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{RO/Funcție client}}&lt;br /&gt;
Această funcție verifică dacă navigatorul web este în prim plan.&lt;br /&gt;
&lt;br /&gt;
==Sintaxă==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserFocused (browser webBrowser)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:isFocused}}&lt;br /&gt;
&lt;br /&gt;
===Argumente Necesare===&lt;br /&gt;
*'''webBrowser:''' Navigatorul web&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă ''true'' dacă navigatorul web este în prim plan, ''false'' în caz contrar și ''nil'' dacă au fost transmise argumente nevalide.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
Acest exemplu realizează un navigator web. Dacă apăsați control left, acesta va reda în chatbox dacă navigatorul web este sau nu în prim plan.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local theBrowser = guiCreateBrowser(150, 150, 1280, 720, true, false, false)&lt;br /&gt;
addEventHandler(&amp;quot;onClientKey&amp;quot;, localPlayer,&lt;br /&gt;
function(button, state)&lt;br /&gt;
    if (button == &amp;quot;lctrl&amp;quot; and state = &amp;quot;down&amp;quot;) then -- dacă tasta este lctrl și starea acesteia este apăsată atunci vom verifica dacă navigatorul web este sau nu în prim plan&lt;br /&gt;
        if (isBrowserFocused(theBrowser)) then&lt;br /&gt;
            outputChatbox(&amp;quot;Navigatorul web este în prim plan.&amp;quot;)&lt;br /&gt;
        else&lt;br /&gt;
            outputChatbox(&amp;quot;Navigatorul web nu este în prim plan.&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții CEF}}&lt;br /&gt;
&lt;br /&gt;
[[EN:isBrowserFocused]]&lt;br /&gt;
[[hu:isBrowserFocused]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>