ÁöÁ¤µÈ âÀ» ´Ý½À´Ï´Ù.
WinClose [, WinTitle, WinText, SecondsToWait, ExcludeTitle, ExcludeText]
¸ñÇ¥ âÀ» ½Äº°Çϴ â Á¦¸ñ ¶Ç´Â ´Ù¸¥ ±âÁØ. WinTitle ÂüÁ¶.
Á¸ÀçÇÏ¸é ¸ñÇ¥ â ÅؽºÆ®ÀÇ ºÎ¹®ÀÚ¿ÀÔ´Ï´Ù (Window Spy¿¡ ³ëÃâµÊ). ¼ûÀº ÅؽºÆ®´Â DetectHiddenText°¡ ÄÑÁ® ÀÖÀ¸¸é(ON) ŽÁöµË´Ï´Ù.
»ý·«µÇ°Å³ª ºñ¾î ÀÖÀ¸¸é, ÀüÇô ±â´Ù¸®Áö ¾Ê½À´Ï´Ù. 0À̸é 500ms µ¿¾È ±â´Ù¸³´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é, ÁöÁ¤ °³¼öÀÇ ÃÊ µ¿¾È âÀÌ ´ÝÈ÷±â¸¦ ±â´Ù¸³´Ï´Ù (¼Ò¼öÁ¡À» Çã¿ëÇÏ°í Ç¥Çö½Äµµ °¡´ÉÇÕ´Ï´Ù). âÀÌ ±× µ¿¾È ´ÝÈ÷Áö ¾Ê´õ¶óµµ, ½ºÅ©¸³Æ®´Â ½ÇÇàÀ» °è¼ÓÇÕ´Ï´Ù. ErrorLevelÀº ÀÌ ¸í·É¾î·Î ¼³Á¤µÇÁö ¾Ê½À´Ï´Ù. ±×·¡¼ âÀÌ ´ÝÇû´ÂÁö È®½ÇÇÏ°Ô ¾Ë ÇÊ¿ä°¡ ÀÖ´Ù¸é IfWinExist³ª WinWaitClose¸¦ »ç¿ëÇϽʽÿÀ. ÀÌ ¸í·É¾î°¡ ±â´Ù¸®´Â µ¿¾È, ÇÖÅ°, ¸ÂÃã ¸Þ´º Ç׸ñ, ¶Ç´Â ŸÀ̸Ӹ¦ ÅëÇÏ¿© »õ ¾²·¹µå¸¦ ±âµ¿ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Á¦¸ñ¿¡ ÀÌ °ªÀÌ Àִ âÀº ¹«½ÃÇÕ´Ï´Ù.
ÅؽºÆ®¿¡ ÀÌ °ªÀÌ Àִ âÀº ¹«½ÃÇÕ´Ï´Ù.
ÀÌ ¸í·É¾î´Â â¿¡ ´Ý±â ¸Þ½ÃÁö¸¦ Àü¼ÛÇÕ´Ï´Ù. ±× °á°ú´Â â¿¡ µû¶ó ´Ù¸¨´Ï´Ù (µ¥ÀÌÅ͸¦ ÀúÀåÇϵµ·Ï ¿ä±¸ÇÒ ¼ö ÀÖ½À´Ï´Ù. µîµî.)
ºÎÇÕÇϴ âÀÌ È°¼ºÈµÇ¾î ÀÖ´Ù¸é, ±× ¾Æ·¡¿¡ ºÎÇÕÇÏ´Â ¾î¶² ⺸´Ù ¿ì¼± ±× âÀÌ ´ÝÈü´Ï´Ù. ÀϹÝÀûÀ¸·Î, ¿©·¯ âÀÌ ºÎÇÕÇϸé, ÃÖ»óÀ§ (°¡Àå ÃÖ±Ù¿¡ »ç¿ëµÈ) âÀÌ ´ÝÈü´Ï´Ù.
ÀÌ ¸í·É¾î´Â ºÎÇÕÇÏ´Â ÃÖ»óÀ§ â¿¡¸¸ ÀÛµ¿ÇÕ´Ï´Ù. ´Ü, WinTitleÀÌ ahk_group GroupNameÀÏ °æ¿ì´Â Á¦¿ÜÇÕ´Ï´Ù. ÀÌ °æ¿ì ±×·ì ¾ÈÀÇ ¸ðµç âÀÌ ¿µÇâÀ» ¹Þ½À´Ï´Ù.
WinClose´Â WM_CLOSE ¸Þ½ÃÁö¸¦ ¸ñÇ¥ â¿¡ º¸³À´Ï´Ù. ¾à°£ °Á¦ÀûÀÎ ¹æ¹ýÀ¸·Î ´Ý½À´Ï´Ù. ´Ù¸¥ ¹æ¹ýÀ¸·Î ´ÝÀ¸·Á¸é ´ÙÀ½ ¸Þ½ÃÁö¸¦ º¸³À´Ï´Ù. ÇàÀ§°¡ ´Ù¸¦ ¼ö ÀÖ½À´Ï´Ù. ¿Ö³ÄÇϸé. Alt-F4¸¦ ´©¸£°Å³ª Á¦¸ñ ¹Ù¿¡¼ âÀÇ ´Ý±â ¹öÆ°À» Ŭ¸¯ÇÑ °Í°ú È¿°ú°¡ ºñ½ÁÇϱ⠶§¹®ÀÔ´Ï´Ù:
PostMessage, 0x112, 0xF060,,, WinTitle, WinText ; 0x112 = WM_SYSCOMMAND, 0xF060 = SC_CLOSE
WinClose¸¦ ÅëÇÏ¿© âÀÌ ´ÝÈ÷Áö ¾ÊÀ¸¸é, WinKill¸¦ »ç¿ëÇÏ¿© °Á¦·Î ´ÝÀ» ¼ö ÀÖ½À´Ï´Ù.
â Á¦¸ñ°ú ÅؽºÆ®´Â ´ë¼Ò¹®ÀÚ¿¡ ¹Î°¨ÇÕ´Ï´Ù. ¼ûÀº âÀº DetectHiddenWindows°¡ ÄÑÁ® ÀÖ¾î¾ß ŽÁöµË´Ï´Ù.
WinKill, WinWaitClose, Process, WinActivate, SetTitleMatchMode, DetectHiddenWindows, Last Found Window, IfWinExist, IfWinActive, WinWaitActive, WinWait, GroupActivate
IfWinExist, Untitled - Notepad WinClose ; À§¿¡¼ ¹ß°ßÇÑ Ã¢À» »ç¿ëÇÕ´Ï´Ù else WinClose, Calculator