d43dr4 Posted January 4, 2013 Share Posted January 4, 2013 السلام عليكم شباب عندي نافذة تفتح ب كومند ابيها تفتح بزر ( CTRL + D ) يعني لما تضغط الزرين مع بعض في نفس الوقت bindKey ( "D" , "down" , xx ) -- مثـآل كيف اخليه يفتح ب زر كونترل و معه زر اخر شكرا مسبقا Link to comment
abu5lf Posted January 4, 2013 Share Posted January 4, 2013 getKeyState - اقرا المثال . Link to comment
MR.S3D Posted January 4, 2013 Share Posted January 4, 2013 السلام عليكم شبابعندي نافذة تفتح ب كومند ابيها تفتح بزر ( CTRL + D ) يعني لما تضغط الزرين مع بعض في نفس الوقت bindKey ( "D" , "down" , xx ) -- مثـآل كيف اخليه يفتح ب زر كونترل و معه زر اخر شكرا مسبقا bindKey("lctrl","down", ------ هذا زر كنترول function() if getKeyState"d" then وهذا اسم الزر اللي معه ----وهنا تحط كودك end end ) bindKey("lctrl","down", function() if getKeyState"d" then ---Here Your Code end end ) Link to comment
d43dr4 Posted January 4, 2013 Author Share Posted January 4, 2013 سعد ما ضبط ذا الكود : ( قبل التعديل )ذذ addCommandHandler("draw",function() local drawtag = getResourceFromName("drawtag") if not (drawtag and getResourceRootElement(drawtag)) then return end local show = not exports.drawtag:isDrawingWindowVisible() exports.drawtag:showDrawingWindow(show) end) بعد التعديل : bindKey("lctrl","down", function() if getKeyState"d" then addCommandHandler("draw",function() local drawtag = getResourceFromName("drawtag") if not (drawtag and getResourceRootElement(drawtag)) then return end local show = not exports.drawtag:isDrawingWindowVisible() exports.drawtag:showDrawingWindow(show) end) end end ) Link to comment
MR.S3D Posted January 4, 2013 Share Posted January 4, 2013 bindKey("lctrl","down", function() if getKeyState"d" then local show = not exports["drawtag"]:isDrawingWindowVisible() exports["drawtag"]:showDrawingWindow(show) end end ) Link to comment
d43dr4 Posted January 4, 2013 Author Share Posted January 4, 2013 مازبط ي سعد + ممكن تشوف الخاص لهنت Link to comment
MR.S3D Posted January 4, 2013 Share Posted January 4, 2013 local show = false bindKey("lctrl","down", function() if getKeyState ( "d" ) then show = not show exports["drawtag"]:showDrawingWindow(show) end end ) Link to comment
d43dr4 Posted January 4, 2013 Author Share Posted January 4, 2013 ما زبط عموما شكرا شباب Link to comment
MR.S3D Posted January 4, 2013 Share Posted January 4, 2013 ما زبطعموما شكرا شباب تأكد انك مشغل المود + انت وش تبي تسوي Link to comment
abu5lf Posted January 4, 2013 Share Posted January 4, 2013 ما زبطعموما شكرا شباب حط مود drawtag Link to comment
MR.S3D Posted January 4, 2013 Share Posted January 4, 2013 وعلى فكرة الكود كلنت مو سيرفر Link to comment
d43dr4 Posted January 4, 2013 Author Share Posted January 4, 2013 عاشق الشرق المود به ملفات كثيرة 5 او 6 ملفات يعني تحمله احسن اذا منت مشغول المود شغال و روعة [url=http://crystalmv.net84.net/pages/scripts/drawtag.php]http://crystalmv.net84.net/pages/scripts/drawtag.php[/url] هذا الرابط Link to comment
abu5lf Posted January 4, 2013 Share Posted January 4, 2013 عاشق الشرق المود به ملفات كثيرة5 او 6 ملفات يعني تحمله احسن اذا منت مشغول المود شغال و روعة [url=http://crystalmv.net84.net/pages/scripts/drawtag.php]http://crystalmv.net84.net/pages/scripts/drawtag.php[/url] هذا الرابط طيب انت وش تبي تسوي فيه؟ Link to comment
d43dr4 Posted January 4, 2013 Author Share Posted January 4, 2013 عاشق الشرق المود به ملفات كثيرة5 او 6 ملفات يعني تحمله احسن اذا منت مشغول المود شغال و روعة [url=http://crystalmv.net84.net/pages/scripts/drawtag.php]http://crystalmv.net84.net/pages/scripts/drawtag.php[/url] هذا الرابط طيب انت وش تبي تسوي فيه؟ هو النافذة تفتح لما تكتب /draw ابيها لما تضغط CTRL + D ارجو انك فهمتني Link to comment
Blaawee Posted January 4, 2013 Share Posted January 4, 2013 bindKey( 'd', 'down', function( ) if getKeyState( 'lctrl' ) == true then executeCommandHandler( 'draw' ); end end ); + شغل المودين حق التآق Link to comment
d43dr4 Posted January 4, 2013 Author Share Posted January 4, 2013 كفؤؤؤؤ عبـآدي بارك الله فيك شكرا لكم شباب 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