jaberxpro Posted December 23, 2015 Posted December 23, 2015 السلام عليكم ورحمة الله وبركاته كل عام وانت بخير عيد المولد النبوي كيف اسوي عندما شخص يضغط بوتون ينسخ الكلام الموجود بالميمو او الايديت
Ja[B]er[X]Pro Posted December 23, 2015 Posted December 23, 2015 GUIEditor = { button = {}, edit = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(241, 112, 385, 353, "تجربة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1],false) GUIEditor.edit[1] = guiCreateEdit(65, 72, 262, 37, "**__*** *---*--* تجربة ", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(136, 186, 135, 42, "نسخ", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(327, 303, 49, 34, "اغلاق", false, GUIEditor.window[1]) ----------------------------اكواد زر النسخ function clickedButton1() local text = guiGetText(GUIEditor.edit[1]) setClipboard(text) end addEventHandler("onClientGUIClick", GUIEditor.button[1], clickedButton1, false) ---------------------------اكواد كلام يجي بالشات addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then outputChatBox("تم النسخ بنجاح", 250, 255, 0) end end ) --------------------------اكواد زر فتح اللوحة local KEY = "F5" function open () guiSetVisible (GUIEditor.window[1],true) showCursor(true) end bindKey(KEY,"down",open) --------------------------اكواد زر اغلاق اللوحة addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) facebooke : https://www.facebook.com/jaber.pro skype : delete Email : [email protected] احلام الناس لا نهاية لهالا يجدر بنا القلق على مقدرتنا لتحقيق أحلامنا ما دمنا نمتلك الرغبة في تحقيقها
Mr.R Posted December 23, 2015 Posted December 23, 2015 GUIEditor = { button = {}, edit = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(241, 112, 385, 353, "تجربة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible (GUIEditor.window[1],false) GUIEditor.edit[1] = guiCreateEdit(65, 72, 262, 37, "**__*** *---*--* تجربة ", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(136, 186, 135, 42, "نسخ", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(327, 303, 49, 34, "اغلاق", false, GUIEditor.window[1]) ----------------------------اكواد زر النسخ function clickedButton1() local text = guiGetText(GUIEditor.edit[1]) setClipboard(text) end addEventHandler("onClientGUIClick", GUIEditor.button[1], clickedButton1, false) --------------------------اكواد زر فتح اللوحة local KEY = "F5" function open () guiSetVisible (GUIEditor.window[1],true) showCursor(true) end bindKey(KEY,"down",open) --------------------------اكواد زر اغلاق اللوحة addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) هنا false وش فايدة الـ addEventHandler("onClientGUIClick", GUIEditor.button[1], clickedButton1, false) * There is no God but Allah, Mohammed is the Messenger Of Allah
Rockyz Posted December 23, 2015 Posted December 23, 2015 هذا عشان لانه حط بدل root او guiRoot اسم الزر مباشرة ف ال false هي يعني اذا ضغط هذا الزر يعني مثلا اذا ماحطيت false اذا ضغطت اي زر راح يسوي نفس الامر
Mr.R Posted December 23, 2015 Posted December 23, 2015 هذا عشان لانه حط بدل root او guiRoot اسم الزر مباشرة ف ال false هي يعني اذا ضغط هذا الزر يعني مثلا اذا ماحطيت false اذا ضغطت اي زر راح يسوي نفس الامر آها .. مشكور * There is no God but Allah, Mohammed is the Messenger Of Allah
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