Jump to content

X{مشكلة}X loadBrowserURL


KillerX

Recommended Posts

السلام عليكم ورحمه الله وبركاتة

واجهتني مشكلة في الكود دا

loadBrowserURL

ما بيشتغل مع موقع الفيسبوك مدري ليش مع انوا الفيسبوك  واخد العلامة الخضراء + ضايفوا لقائمة اللعبة حقت المواقع

: الاكواد

local screenWidth, screenHeight = guiGetScreenSize()
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)
	
function webBrowserRender()
	dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end

addEventHandler("onClientBrowserCreated", webBrowser, 
	function()		
		loadBrowserURL(webBrowser, "https://www.facebook.com/")
		addEventHandler("onClientRender", root, webBrowserRender)
	end
)

ملحوظة : الاكواد مو حقي حقت الويكي بس انا ضايف موقع الفيسبوك وبس | وشكرا مقدما

  • Thanks 1
Link to comment

من الويكي استخدم الجيو لان المرونه حقها افظل من الدي اكس في البراوزر

local screenWidth, screenHeight = guiGetScreenSize( )

-- Let's create a new browser in remote mode
local window = guiCreateWindow( 0, 0, screenWidth, screenHeight, "Web Browser", false )
local browser = guiCreateBrowser( 0, 28, screenWidth, screenHeight, false, false, false, window )
local theBrowser = guiGetBrowser( browser ) -- Get the browser element from gui-browser

-- The event onClientBrowserCreated will be triggered after the browser has been initialized
-- After this event has been triggered we will be able to load our URL
addEventHandler( "onClientBrowserCreated", theBrowser, 
	function( )
		-- After the browser has been initialized, we can load www.youtube.com
		loadBrowserURL( source, "https://www.youtube.com/" )
	end
)

 

Link to comment

صار يجيبلي قبول الموقع ولا لا دوست قبول بس رجع الوضع كما كان 
الاكواد

 

requestBrowserDomains({ "https://www.facebook.com/" })
local screenWidth, screenHeight = guiGetScreenSize( )

-- Let's create a new browser in remote mode
local window = guiCreateWindow( 0, 0, screenWidth, screenHeight, "Web Browser", false )
local browser = guiCreateBrowser( 0, 28, screenWidth, screenHeight, false, false, false, window )
local theBrowser = guiGetBrowser( browser ) -- Get the browser element from gui-browser

-- The event onClientBrowserCreated will be triggered after the browser has been initialized
-- After this event has been triggered we will be able to load our URL
addEventHandler( "onClientBrowserCreated", theBrowser, 
	function( )
		-- After the browser has been initialized, we can load www.youtube.com
		loadBrowserURL( source, "https://www.facebook.com/" )
	end
)	

 

  • Thanks 1
Link to comment
  On 05/09/2018 at 05:35, KillerX said:

اسف والله تعبتك معايا

 

Expand  

ولا يهمك يا غالي

لكن شي عجيب صراحه المهم هل انت مسوي حظر للموقع من الراوتر او البلد اللي انت فيها مسويه له حظر؟

+جرب

requestBrowserDomains({ "facebook.com" })
local screenWidth, screenHeight = guiGetScreenSize( )

-- Let's create a new browser in remote mode
local window = guiCreateWindow( 0, 0, screenWidth, screenHeight, "Web Browser", false )
local browser = guiCreateBrowser( 0, 28, screenWidth, screenHeight, false, false, false, window )
local theBrowser = guiGetBrowser( browser ) -- Get the browser element from gui-browser

-- The event onClientBrowserCreated will be triggered after the browser has been initialized
-- After this event has been triggered we will be able to load our URL
addEventHandler( "onClientBrowserCreated", theBrowser, 
	function( )
		-- After the browser has been initialized, we can load www.youtube.com
		loadBrowserURL( source, "facebook.com" )
	end
)	

 

Edited by Master_MTA
  • Thanks 1
Link to comment

لا والله مش مسويلوا حظر ونقول يمكن يكون خطا من عندي مثلا في الفيسبوك او مسويلوا بلوك

بس عمنا التويتر نفس الحال :*(

if  isBrowserDomainBlocked ( "https://twitter.com/" )  then
outputChatBox('yes')
  else
  outputChatBox('no')
end

requestBrowserDomains({ "https://twitter.com/" })
local screenWidth, screenHeight = guiGetScreenSize( )

-- Let's create a new browser in remote mode
local window = guiCreateWindow( 0, 0, screenWidth, screenHeight, "Web Browser", false )
local browser = guiCreateBrowser( 0, 28, screenWidth, screenHeight, false, false, false, window )
local theBrowser = guiGetBrowser( browser ) -- Get the browser element from gui-browser

-- The event onClientBrowserCreated will be triggered after the browser has been initialized
-- After this event has been triggered we will be able to load our URL
addEventHandler( "onClientBrowserCreated", theBrowser, 
	function( )
		-- After the browser has been initialized, we can load www.youtube.com
		loadBrowserURL( source, "https://twitter.com/" )
	end
)

 

  • Thanks 1
Link to comment
  On 05/09/2018 at 05:45, KillerX said:

بس عمنا التويتر نفس الحال :*(

Expand  

والله صراحه ما ابي افتي لك لكن ما اشوف خطا بالاكواد ابد

هذا اللي اقدر اساعدك بيه والله غير كذا معرف

عالعموم ممكن تكون اللعبه هي معطيتهم حظر الله اعلم

جرب حط

google.com

وبعدين ابحث في جوجل عن فيسبوك وخش عليه وجرب

انا للاسف ما معي اللابتوب حقي تكسر اليوم باذن الله بستلمه لاني حاليا على لابتوب اخوي اعذرني مقدر اجرب شي +_+

ما عندي اللعبه

  • Thanks 1
Link to comment

المشكلة انك حاط https في الريكوست

خليه كذا وبس www.facebook.com

requestBrowserDomains({'www.facebook.com'})
local screenWidth, screenHeight = guiGetScreenSize()
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)
    
function webBrowserRender()
    dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end

addEventHandler("onClientBrowserCreated", webBrowser, 
    function()        
        loadBrowserURL(webBrowser, "https://www.facebook.com")
        addEventHandler("onClientRender", root, webBrowserRender)
    end
)

 

Edited by #,xiRocKyz
  • Thanks 1
Link to comment
  On 05/09/2018 at 08:12, #,xiRocKyz said:

المشكلة انك حاط https في الريكوست

خليه كذا وبس www.facebook.com

requestBrowserDomains({'www.facebook.com'})
local screenWidth, screenHeight = guiGetScreenSize()
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)
    
function webBrowserRender()
    dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end

addEventHandler("onClientBrowserCreated", webBrowser, 
    function()        
        loadBrowserURL(webBrowser, "https://www.facebook.com")
        addEventHandler("onClientRender", root, webBrowserRender)
    end
)

 

Expand  

او خليه كذا افضل:

local screenWidth, screenHeight = guiGetScreenSize()
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)
requestBrowserDomains({'www.facebook.com'}, false, function(accepted)
    if accepted then
        loadBrowserURL(webBrowser, 'https://www.facebook.com')
    end
end)
    
function webBrowserRender()
    dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end

addEventHandler('onClientBrowserCreated', webBrowser, function()        
    loadBrowserURL(webBrowser, 'https://www.facebook.com')
    addEventHandler('onClientRender', root, webBrowserRender)
end)

 

  • Thanks 1
Link to comment
  On 05/09/2018 at 08:46, #,xiRocKyz said:

او خليه كذا افضل:


local screenWidth, screenHeight = guiGetScreenSize()
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)
requestBrowserDomains({'www.facebook.com'}, false, function(accepted)
    if accepted then
        loadBrowserURL(webBrowser, 'https://www.facebook.com')
    end
end)
    
function webBrowserRender()
    dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end

addEventHandler('onClientBrowserCreated', webBrowser, function()        
    loadBrowserURL(webBrowser, 'https://www.facebook.com')
    addEventHandler('onClientRender', root, webBrowserRender)
end)

 

Expand  

تتتتتتسلم ايدك يا شيخ ظبط :)

 

الف الف شكرا ليكم تعبتكم معايا صراحه 

@Master_MTA @#,xiRocKyz

:x

  • Like 1
  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...