Exit

ÇöÀç ¾²·¹µå¸¦ Á¾·áÇÕ´Ï´Ù. ¶Ç´Â (½ºÅ©¸³Æ®°¡ ¿µ¼ÓÀûÀÌ ¾Æ´Ï°í ÇÖÅ°°¡ Æ÷ÇԵǾî ÀÖÁö ¾ÊÀ¸¸é) Àüü ½ºÅ©¸³Æ®¸¦ Á¾·áÇÕ´Ï´Ù.

Exit [, ExitCode]

¸Å°³º¯¼ö

ExitCode

½ºÅ©¸³Æ®°¡ Á¾·áÇÒ ¶§ È£ÃâÀڷκÎÅÍ ¹ÝȯµÈ -2147483648ºÎÅÍ 2147483647 »çÀÌÀÇ Á¤¼ö (Ç¥Çö½Ä °¡´É). ÀÌ ÄÚµå´Â ±× ½ºÅ©¸³Æ®¸¦ ºÎÈ­ÇÑ ¾î¶² ÇÁ·Î±×·¥µµ ¿¹¸¦ µé¾î, ¶Ç´Ù¸¥ ½ºÅ©¸³Æ® (RunWait¸¦ ÅëÇÏ¿©) ¶Ç´Â ¹èÄ¡ ÆÄÀÏ (.bat)µµ Á¢±ÙÇÒ ¼ö ÀÖ½À´Ï´Ù.. »ý·«µÇ¸é, ExitCode´Â 0ÀÌ ±âº»°ªÀÔ´Ï´Ù. 0Àº ÀüÅëÀûÀ¸·Î ¼º°øÀ» ³ªÅ¸³»´Â µ¥ »ç¿ëµË´Ï´Ù.

³íÆò

½ºÅ©¸³Æ®¿¡ ÇÖÅ°°¡ ¾ø´Ù¸é, ±×¸®°í ¿µ¼ÓÀûÀÌ ¾Æ´Ï¶ó¸é, ±×¸®°í Num/Scroll/CapsLock Å°¸¦ AlwaysOn ¶Ç´Â AlwaysOff »óŸ¦ À¯ÁöÇϵµ·Ï ¿ä±¸ÇÏÁö ¾Ê¾Ò´Ù¸é, ExitÀ» ¸¸³ª¸é ±× Áï½Ã Á¾·áÇÕ´Ï´Ù (´Ü, OnExit ¼­ºê·çƾÀÌ ÀÖ´Ù¸é ¿¹¿ÜÀÔ´Ï´Ù).

±×·¸Áö ¾ÊÀ¸¸é, Exit ¸í·É¾î´Â ÇöÀç ¾²·¹µå¸¦ Á¾·áÇÕ´Ï´Ù. ´Ù¸¥ ¸»·Î, ¸Þ´º³ª ŸÀÌ¸Ó ¶Ç´Â ÇÖÅ° ¼­ºê·çƾÀ¸·ÎºÎÅÍ Á÷Á¢ °£Á¢ÀûÀ¸·Î È£ÃâµÈ ¼­ºê·çƾÀÇ ½ºÅÃÀº ¸¶Ä¡ °¢°¢ ReturnÀ» ¸¸³­ °Íó·³ ¸ðµÎ ÇѲ¨¹ø¿¡ ¹ÝȯµË´Ï´Ù. ExitÀÌ ±×·± ¼­ºê·çƾ ¾È¿¡¼­ Á÷Á¢ »ç¿ëµÇ¸é -- ÀÚ½ÅÀÌ °£Á¢ÀûÀ¸·Î È£ÃâÇÑ ¼­ºê·çƾ ÁßÀÇ Çϳª°¡ ¾Æ´Ï¶ó -- ExitÀº Return°ú µ¿µîÇÕ´Ï´Ù.

ExitApp¸¦ »ç¿ëÇÏ¸é ¿µ¼ÓÀûÀ̰ųª ÇÖÅ°°¡ ÀÖ´Â ½ºÅ©¸³Æ®¸¦ ¿ÏÀüÈ÷ Á¾·áÇÒ ¼ö ÀÖ½À´Ï´Ù.

°ü·Ã Ç׸ñ

ExitApp, OnExit, Functions, Gosub, Return, Threads, #Persistent

¿¹Á¦

#z::
Gosub, Sub2
MsgBox, ÀÌ msgbox´Â EXIT ¶§¹®¿¡ Àý´ë ³ªÅ¸³ªÁö ¾Ê½À´Ï´Ù.
return

Sub2:
Exit  ; ÀÌ ¼­ºê·çƾ°ú ´õºÒ¾î È£ÃâÇÑ ¼­ºê·çƾÀ» Á¾·áÇÕ´Ï´Ù.