z24d Posted July 26, 2015 Share Posted July 26, 2015 سلام عليكم ورحمة الله وبركاتة اليوم حاولت اسوي سكربت وسويت اكثر من 5 سكربتات ولا واجهتني نفس المشكلة في هذا السكربت وملاحضة الديبوق مايطلع شيء الكود addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 5, 1024, 768, "المتصفح", false) guiWindowSetSizable(GUIEditor.window[1], false) btn = guiCreateButton(893, 24, 45, 37, "", false, GUIEditor.window[1]) edt = guiCreateEdit(16, 31, 851, 30, "", false, GUIEditor.window[1]) browser = guiCreateBrowser(17, 73, 997, 685, "", false, GUIEditor.window[1]) local theBrowser = guiGetBrowser(browser) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn ) then local get = guiGetText ( edt ) end end ) addEventHandler("onClientBrowserCreated", theBrowser, get function() loadBrowserURL(source, "get") end ) Link to comment
#CroSs Posted July 26, 2015 Share Posted July 26, 2015 addEventHandler ( "onClientGUIClick", root, function () if ( source == btn ) then local URL = guiGetText ( edt ) if ( URL ~= "" ) and not ( string.find( URL, " " ) ) then loadBrowserURL( theBrowser, URL ) end end end) addEventHandler( "onClientBrowserCreated", theBrowser, function() loadBrowserURL( source, "http://www.google.com" ) end) Link to comment
z24d Posted July 26, 2015 Author Share Posted July 26, 2015 #CroSs said: addEventHandler ( "onClientGUIClick", root, function () if ( source == btn ) then local URL = guiGetText ( edt ) if ( URL ~= "" ) and not ( string.find( URL, " " ) ) then loadBrowserURL( theBrowser, URL ) end end end) addEventHandler( "onClientBrowserCreated", theBrowser, function() loadBrowserURL( source, "http://www.google.com" ) end) اخوي انا ابي اذا انضغط زر ياخذ الي بالادت ويوديه بالرابط المكتوب بالادت Link to comment
#CroSs Posted July 26, 2015 Share Posted July 26, 2015 طيب الأكواد إلي طرحتها نفس إلي تبيه Link to comment
H25 Posted July 26, 2015 Share Posted July 26, 2015 addEventHandler("onClientResourceStart", resourceRoot, function() BrowserWindow = guiCreateWindow(0, 5, 1024, 768, "المتصفح", false) guiWindowSetSizable(BrowserWindow, false) btn = guiCreateButton(893, 24, 45, 37, "", false, BrowserWindow) edt = guiCreateEdit(16, 31, 851, 30, "", false, BrowserWindow) browser = guiCreateBrowser(17, 73, 997, 685, "", false, BrowserWindow) theBrowser = guiGetBrowser(browser) end ) addEventHandler("onClientGUIClick", root, function () if (source == btn) then local URL = guiGetText(edt) if (URL ~= "") then loadBrowserURL(theBrowser, URL) end end end ) addEventHandler( "onClientBrowserCreated", theBrowser, function() loadBrowserURL( source, "http://www.google.com" ) end ) Link to comment
#CroSs Posted July 27, 2015 Share Posted July 27, 2015 ._. الأكواد صح بس انت ماتعرف تسوي سكربت شكلك 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