ControlSetText

ÄÜÆ®·ÑÀÇ ÅؽºÆ®¸¦ º¯°æÇÕ´Ï´Ù.

ControlSetText [, Control, NewText, WinTitle, WinText, ExcludeTitle, ExcludeText]

¸Å°³º¯¼ö

Control

ClassNN (ÄÜÆ®·ÑÀÇ Å¬·¡½ºÀ̸§°ú ½Çü ¹øÈ£) ¶Ç´Â ÄÜÆ®·ÑÀÇ ÅؽºÆ®ÀÏ ¼ö ÀÖ½À´Ï´Ù. µÑ ´Ù Window Spy¸¦ ÅëÇÏ¿© ¾Ë¾Æ³¾ ¼ö ÀÖ½À´Ï´Ù. ÅؽºÆ®¸¦ »ç¿ëÇÒ ¶§, ºÎÇÕ ÇàÀ§´Â SetTitleMatchMode·Î °áÁ¤µË´Ï´Ù. ÀÌ ¸Å°³º¯¼ö°¡ ºñ¾î ÀÖÀ¸¸é, ¸ñÇ¥ âÀÇ ÃÖ»óÀ§ ÄÜÆ®·ÑÀÌ »ç¿ëµË´Ï´Ù.

ÄÜÆ®·ÑÀ¸ HWND (â ÇÚµé)¿¡ ÀÛµ¿ ½ÃÅ°·Á¸é, Control ¸Å°³º¯¼ö¸¦ ºñ¿ö µÎ°í ahk_id %ControlHwnd%¸¦ WinTitle ¸Å°³º¯¼ö¿¡ ÁöÁ¤ÇϽʽÿÀ (ÀÌ°ÍÀº ¼ûÀº ÄÜÆ®·Ñ¿¡µµ ÀÛµ¿ÇÕ´Ï´Ù. DetectHiddenWindows°¡ ²¨Á® À־ »ó°ü ¾ø½À´Ï´Ù). ÄÜÆ®·ÑÀÇ HWND´Â ÀüÇüÀûÀ¸·Î ControlGet Hwnd, MouseGetPos, ¶Ç´Â DllCallÀ» ÅëÇÏ¿© ¿­¶÷ÇÕ´Ï´Ù.

NewText

ÄÜÆ®·Ñ ¾È¿¡ ¼³Á¤ÇØ ³ÖÀ» »õ ÅؽºÆ®. ºñ¾î Àְųª »ý·«µÇ¸é, ÄÜÆ®·ÑÀÌ ºñ¿öÁý´Ï´Ù.

WinTitle

¸ñÇ¥ âÀ» ½Äº°Çϴ â Á¦¸ñÀ̳ª ±âŸ ±âÁØ. WinTitle ÂüÁ¶.

WinText

Á¸ÀçÇϸé, ¸ñÇ¥ â ÅؽºÆ®ÀÇ ºÎ¹®ÀÚ¿­ÀÔ´Ï´Ù (Window Spy¿¡ ³ëÃâ). ¼ûÀº ÅؽºÆ®´Â DetectHiddenText°¡ ÄÑÁ®(ON) ÀÖ¾î¾ß ŽÁöµË´Ï´Ù.

ExcludeTitle

Á¦¸ñ¿¡ ÀÌ °ªÀÌ Àִ âÀº Á¦¿ÜµË´Ï´Ù.

ExcludeText

ÅؽºÆ®¿¡ ÀÌ °ªÀÌ Àִ âÀº Á¦¿ÜµË´Ï´Ù.

ErrorLevel

[v1.1.04+] ÀÌ ¸í·É¾î´Â ½ÇÆнà ¿¹·¯¸¦ ´øÁú ¼ö ÀÖ½À´Ï´Ù. ´õ ÀÚ¼¼ÇÑ Á¤º¸´Â ½ÇÇà½Ã°£ ¿¡·¯¸¦ ÂüÁ¶ÇϽʽÿÀ.

ErrorLevelÀº ½ÇÆÐÇϸé 1 ¼º°øÇϸé 0ÀÌ ¼³Á¤µË´Ï´Ù.

³íÆò

´ëºÎºÐÀÇ ÄÜÆ®·Ñ À¯ÇüÀº Ȧ·Î ¶óÀÎÇǵå (`n) ¸»°í ij¸®Áö ¸®ÅÏ°ú ¶óÀÎÇǵå (`r`n)¸¦ »ç¿ëÇØ °¢ ÁÙÀÇ ³¡À» Ç¥½ÃÇÕ´Ï´Ù. `n ¹®ÀÚ°¡ Æ÷ÇÔµÈ ÅؽºÆ® ºí·ÏÀ» º¯È¯ÇÏ·Á¸é, ´ÙÀ½ ¿¹Á¦¸¦ µû¸£½Ê½Ã¿À:

StringReplace, MyVar, MyVar, `n, `r`n, All

½Å·Ú¼ºÀ» Çâ»ó½ÃÅ°±â À§ÇØ, ÀÌ ¸í·É¾î¸¦ »ç¿ëÇÒ ¶§¸¶´Ù Áö¿¬ ½Ã°£ÀÌ ÀÚµ¿À¸·Î »ðÀԵ˴ϴÙ. ÀÌ Áö¿¬ ½Ã°£Àº SetControlDelay¸¦ ÅëÇÏ¿© ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù.

â Á¦¸ñ°ú ÅؽºÆ®´Â ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇÕ´Ï´Ù. ¼ûÀº âÀº DetectHiddenWindows°¡ ÄÑÁ® ÀÖ¾î¾ß ŽÁöµË´Ï´Ù.

°ü·Ã Ç׸ñ

SetControlDelay, ControlGetFocus, ControlGetText, ControlGet, Control, ControlMove, ControlGetPos, ControlClick, ControlFocus, ControlSend

¿¹Á¦

ControlSetText, Edit1, ¿©±â¿¡ »õ ÅؽºÆ® ¼³Á¤, Untitled -