KillerX Posted September 5, 2018 Share Posted September 5, 2018 السلام عليكم ورحمه الله وبركاتة واجهتني مشكلة في الكود دا 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 ) ملحوظة : الاكواد مو حقي حقت الويكي بس انا ضايف موقع الفيسبوك وبس | وشكرا مقدما 1 Link to comment
Master_MTA Posted September 5, 2018 Share Posted September 5, 2018 من الويكي استخدم الجيو لان المرونه حقها افظل من الدي اكس في البراوزر 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
KillerX Posted September 5, 2018 Author Share Posted September 5, 2018 (edited) تمام شغاله علي موقع اليوتيوب | بس الفيسبوك لا @Master_MTA Edited September 5, 2018 by KillerX 1 Link to comment
Master_MTA Posted September 5, 2018 Share Posted September 5, 2018 requestBrowserDomains({ "facebook.com" }) حطه باول الملف Link to comment
KillerX Posted September 5, 2018 Author Share Posted September 5, 2018 صار يجيبلي قبول الموقع ولا لا دوست قبول بس رجع الوضع كما كان الاكواد : 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 ) 1 Link to comment
Master_MTA Posted September 5, 2018 Share Posted September 5, 2018 ظيف ذي باول الملف وقولي وش يطلعلك if isBrowserDomainBlocked ( "facebook.com" ) then outputChatBox('yes') else outputChatBox('no') end On 05/09/2018 at 05:29, KillerX said: صار يجيبلي قبول الموقع ولا لا دوست قبول بس رجع الوضع كما كان Expand Link to comment
KillerX Posted September 5, 2018 Author Share Posted September 5, 2018 On 05/09/2018 at 05:33, Master_MTA said: ظيف ذي باول الملف وقولي وش يطلعلك if isBrowserDomainBlocked ( "facebook.com" ) then outputChatBox('yes') else outputChatBox('no') end Expand no اسف والله تعبتك معايا 1 Link to comment
Master_MTA Posted September 5, 2018 Share Posted September 5, 2018 (edited) 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 September 5, 2018 by Master_MTA 1 Link to comment
KillerX Posted September 5, 2018 Author Share Posted September 5, 2018 لا والله مش مسويلوا حظر ونقول يمكن يكون خطا من عندي مثلا في الفيسبوك او مسويلوا بلوك بس عمنا التويتر نفس الحال :*( 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 ) 1 Link to comment
Master_MTA Posted September 5, 2018 Share Posted September 5, 2018 On 05/09/2018 at 05:45, KillerX said: بس عمنا التويتر نفس الحال :*( Expand والله صراحه ما ابي افتي لك لكن ما اشوف خطا بالاكواد ابد هذا اللي اقدر اساعدك بيه والله غير كذا معرف عالعموم ممكن تكون اللعبه هي معطيتهم حظر الله اعلم جرب حط google.com وبعدين ابحث في جوجل عن فيسبوك وخش عليه وجرب انا للاسف ما معي اللابتوب حقي تكسر اليوم باذن الله بستلمه لاني حاليا على لابتوب اخوي اعذرني مقدر اجرب شي +_+ ما عندي اللعبه 1 Link to comment
Rockyz Posted September 5, 2018 Share Posted September 5, 2018 (edited) المشكلة انك حاط 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 September 5, 2018 by #,xiRocKyz 1 Link to comment
Rockyz Posted September 5, 2018 Share Posted September 5, 2018 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) 1 Link to comment
KillerX Posted September 5, 2018 Author Share Posted September 5, 2018 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 1 1 Link to comment
Master_MTA Posted September 5, 2018 Share Posted September 5, 2018 On 05/09/2018 at 08:12, #,xiRocKyz said: الريكوست Expand سويتها له فوق والله لكن هو رجع حطها Link to comment
KillerX Posted September 6, 2018 Author Share Posted September 6, 2018 On 05/09/2018 at 17:51, Master_MTA said: سويتها له فوق والله لكن هو رجع حطها Expand اسف فهتك غلط من الاول شكرا ليك ومتاسف 1 1 Link to comment
Master_MTA Posted September 6, 2018 Share Posted September 6, 2018 On 06/09/2018 at 02:32, KillerX said: اسف فهتك غلط من الاول شكرا ليك ومتاسف Expand ولا يهمك يقلبي بالتوفيق 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now