ÁöÁ¤µÈ âÀÌ È°¼ºÈµÇ°Å³ª ºñÈ°¼ºÈµÉ ¶§±îÁö ±â´Ù¸³´Ï´Ù.
WinWaitActive [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText] WinWaitNotActive [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]
¸ñÇ¥ âÀ» ½Äº°Çϴ â Á¦¸ñÀ̳ª ±âŸ ±âÁØ. WinTitle ÂüÁ¶.
Á¸ÀçÇϸé, ÀÌ ¸Å°³º¯¼ö´Â ¸ñÇ¥ â ÅؽºÆ®ÀÇ ºÎ¹®ÀÚ¿ÀÔ´Ï´Ù (µ¿ºÀµÈ Window Spy À¯Æ¿¸®Æ¼¿¡ ³ëÃâµÊ). ¼ûÀº ÅؽºÆ®´Â DetectHiddenTextÀÌ ÄÑÁ®(ON) ÀÖÀ¸¸é ŽÁöµË´Ï´Ù.
½Ã°£Á¦ÇÑ ±îÁö ±â´Ù¸± ÃÊÀÇ °³¼ö ±×¸®°í ErrorLevelÀ» 1·Î ¼³Á¤. ºó ä·Î µÎ¸é ¹«ÇÑÁ¤ ´ë±âÇÕ´Ï´Ù. 0À» ÁöÁ¤Çϸé 0.5¸¦ ÁöÁ¤ÇÑ °Í°ú µ¿ÀÏÇÕ´Ï´Ù. ÀÌ ¸Å°³º¯¼ö´Â Ç¥Çö½ÄÀÌ °¡´ÉÇÕ´Ï´Ù.
Á¦¸ñ¿¡ ÀÌ °ªÀÌ µé¾î Àִ âÀº Á¦¿ÜÇÕ´Ï´Ù.
ÅؽºÆ®¿¡ ÀÌ °ªÀÌ µé¾î Àִ âÀº Á¦¿ÜÇÕ´Ï´Ù.
ErrorLevelÀº ¸í·É¾î°¡ ½Ã°£Á¦ÇÑ¿¡ °É¸®¸é 1·Î ¼³Á¤µÇ°í ±×·¸Áö ¾ÊÀ¸¸é 0À¸·Î ¼³Á¤µË´Ï´Ù.
ºÎÇÕÇϴ âÀÌ ¸í·É¾îÀÇ ±â´ë¸¦ ¸¸Á·Çϸé, ±× ¸í·É¾î´Â ÀÌÁ¦ Ã˹ßÀ» À§ÇØ Seconds Ãʸ¦ ±â´Ù¸®Áö ¾Ê½À´Ï´Ù. ´ë½Å¿¡, Áï½Ã ErrorLevel¿¡ 0À» ¼³Á¤ÇÏ°í ½ºÅ©¸³Æ®´Â ½ÇÇàÀ» °è¼ÓÇÕ´Ï´Ù.
¸í·É¾î°¡ ½ÃÀÛÇÒ ¶§ ±â´ë¸¦ ¸¸Á·Çϴ âÀÌ È°¼ºÈµÇ¸é WinWaitActive¿Í WinWaitNotActive ¸ðµÎ ¸¶Áö¸·À¸·Î ¹ß°ßµÈ âÀ» °»½ÅÇÕ´Ï´Ù.
¸í·É¾î°¡ ´ë±â »óÅ¿¡ ÀÖ´Â µ¿¾È, ÇÖÅ°, ¸ÂÃã ¸Þ´º Ç׸ñ, ¶Ç´Â ŸÀ̸Ӹ¦ ÅëÇÏ¿© »õ ¾²·¹µå¸¦ ±âµ¿ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÀÌ ¸í·É¾îÀÇ ¸Å°³º¯¼ö·Î »ç¿ëµÈ º¯¼öÀÇ ³»¿ëÀ» ¶Ç´Ù¸¥ ¾²·¹µå°¡ º¯°æÇÏ´õ¶óµµ, ÀÌ ¸í·É¾î´Â ±× º¯°æÀ» º¸Áö ¸øÇÕ´Ï´Ù -- ¸í·É¾î°¡ óÀ½ ´ë±â¸¦ ½ÃÀÛÇÒ ¶§ÀÇ º¯¼ö¿¡ Á¸ÀçÇÏ´Â ¿ø·¡ ÅؽºÆ®¿Í Á¦¸ñÀ» °è¼Ó »ç¿ëÇÕ´Ï´Ù.
â Á¦¸ñ°ú ÅؽºÆ®´Â ´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÕ´Ï´Ù. ¼ûÀº âÀº DetectHiddenWindows¸¦ ÄѸé ŽÁöµË´Ï´Ù.
WinWait, WinWaitClose, IfWinExist, IfWinActive, SetTitleMatchMode, DetectHiddenWindows
Run, notepad.exe WinWaitActive, Untitled - Notepad, , 2 if ErrorLevel { MsgBox, WinWait timed out. return } else WinMinimize ; WinWaitActive°¡ ¹ß°ßÇÑ Ã¢À» ÃÖ¼ÒÈÇÕ´Ï´Ù.