ÄÜÆ®·ÑÀÇ À§Ä¡¿Í Å©±â¸¦ ¿¶÷ÇÕ´Ï´Ù.
ControlGetPos [, X, Y, Width, Height, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlÀÇ Á»ó ¸ð¼¸®ÀÇ X¿Í Y ÁÂÇ¥¸¦ ÀúÀåÇÒ º¯¼ö À̸§ (Çȼ¿ ´ÜÀ§). ÀÌ ÁÂÇ¥´Â ¸ñÇ¥ âÀÇ Á»ó ¸ð¼¸®¿¡ »ó´ëÀûÀÌ¸ç ±×·¡¼ ControlMove°¡ »ç¿ëÇÏ´Â ÁÂÇ¥¿Í °°½À´Ï´Ù.
X³ª Y¸¦ »ý·«Çϸé, »óÀÀÇÏ´Â °ªÀÌ ÀúÀåµÇÁö ¾Ê½À´Ï´Ù.
ControlÀÇ ³Êºñ¿Í ³ôÀ̸¦ (Çȼ¿ ´ÜÀ§·Î) ÀúÀåÇÒ º¯¼öÀÇ À̸§. »ý·«Çϸé, »óÀÀÇÏ´Â °ªÀÌ ÀúÀåµÇÁö ¾Ê½À´Ï´Ù.
ClassNN (ÄÜÆ®·ÑÀÇ Å¬·¡½ºÀ̸§°ú ½Çü ¹øÈ£) ¶Ç´Â ÄÜÆ®·ÑÀÇ ÅؽºÆ®. µÑ ¸ðµÎ Window Spy¸¦ ÅëÇÏ¿© ¾Ë¾Æ³¾ ¼ö ÀÖ½À´Ï´Ù. ÅؽºÆ®¸¦ »ç¿ëÇÒ ¶§, ºÎÇÕÇÏ´Â ÇàÀ§´Â SetTitleMatchMode·Î °áÁ¤µË´Ï´Ù. ÀÌ ¸Å°³º¯¼ö°¡ ºñ¾î ÀÖÀ¸¸é, ¸ñÇ¥ âÀÇ ÃÖ»óÀ§ ÄÜÆ®·ÑÀÌ »ç¿ëµË´Ï´Ù.
ÄÜÆ®·ÑÀÇ HWND (â ÇÚµé)¿¡ ÀÛµ¿½ÃÅ°·Á¸é, Control ¸Å°³º¯¼ö¸¦ ºó ä·Î µÎ°í ahk_id %ControlHwnd%
¸¦ WinTitle ¸Å°³º¯¼ö¿¡ ÁöÁ¤ÇϽʽÿÀ (ÀÌ°ÍÀº ¼ûÀº ÄÜÆ®·Ñ¿¡µµ ÀÛµ¿ÇÕ´Ï´Ù. DetectHiddenWindows°¡ ²¨Á® À־ »ó°ü ¾ø½À´Ï´Ù). ÄÜÆ®·ÑÀÇ HWND´Â ÀüÇüÀûÀ¸·Î ControlGet Hwnd, MouseGetPos, ¶Ç´Â DllCall¸¦ ÅëÇÏ¿© ¿¶÷ÇÕ´Ï´Ù.
¸ñÇ¥ âÀ» ½Äº°Çϴ â Á¦¸ñ ¶Ç´Â ±âŸ ±âÁØ. WinTitle ÂüÁ¶.
Á¸ÀçÇϸé, ÀÌ ¸Å°³º¯¼ö´Â ¸ñÇ¥ â ÅؽºÆ®ÀÇ ºÎ¹®ÀÚ¿ÀÔ´Ï´Ù (Window Spy¿¡ ³ëÃâ). ¼ûÀº ÅؽºÆ®´Â DetectHiddenText°¡ ÄÑÁ®(ON) ÀÖ¾î¾ß ŽÁöµË´Ï´Ù.
Á¦¸ñ¿¡ ÀÌ °ªÀÌ Àִ âÀº ¹«½ÃÇÕ´Ï´Ù.
ÅؽºÆ®¿¡ ÀÌ °ªÀÌ Àִ âÀº ¹«½ÃÇÕ´Ï´Ù.
ºÎÇÕÇϴ âÀ̳ª ÄÜÆ®·ÑÀÌ ¹ß°ßµÇÁö ¾ÊÀ¸¸é, Ãâ·Â º¯¼ö´Â ºñ¿öÁý´Ï´Ù.
ÄÜÆ®·ÑÀ» º¯°æÇÏ´Â ¸í·É¾î¿Í ´Ù¸£°Ô, ControlGetPos´Â ÀÚµ¿ Áö¿¬ÀÌ ¾ø½À´Ï´Ù (SetControlDelay¿¡ ¿µÇâÀ» ¹ÞÁö ¾Ê½À´Ï´Ù).
ÇöÀç ¸¶¿ì½º°¡ ¶° ÀÖ´Â ÄÜÆ®·ÑÀÇ ClassNNÀ̳ª HWND¸¦ ¹ß°ßÇÏ·Á¸é MouseGetPos¸¦ »ç¿ëÇϽʽÿÀ. âÀÇ ¸ðµç ÄÜÆ®·Ñ ¸ñ·ÏÀ» ¿¶÷ÇÏ·Á¸é WinGetÀ» »ç¿ëÇϽʽÿÀ.
â Á¦¸ñ°ú ÅؽºÆ®´Â ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇÕ´Ï´Ù. ¼ûÀº âÀº DetectHiddenWindows°¡ ÄÑÁ® ÀÖ¾î¾ß ŽÁöµË´Ï´Ù.
ControlMove, WinGetPos, Control, ControlGet, ControlGetText, ControlSetText, ControlClick, ControlFocus, ControlSend
; ´ÙÀ½ÀÇ ÀÛµ¿ÇÏ´Â ¿¹Á¦´Â °è¼Ó °»½ÅÇÏ¸é¼ ; ÇöÀç ¸¶¿ì½º ¾Æ·¡ÀÇ ÄÜÆ®·ÑÀÇ À§Ä¡¿Í À̸§À» º¸¿©ÁÝ´Ï´Ù: Loop { Sleep, 100 MouseGetPos, , , WhichWindow, WhichControl ControlGetPos, x, y, w, h, %WhichControl%, ahk_id %WhichWindow% ToolTip, %WhichControl%`nX%X%`tY%Y%`nW%W%`t%H% }