WinGetPos

ÁöÁ¤µÈ âÀÇ Å©±â¿Í À§Ä¡¸¦ ¿­¶÷ÇÕ´Ï´Ù.

WinGetPos [, X, Y, Width, Height, WinTitle, WinText, ExcludeTitle, ExcludeText]

¸Å°³º¯¼ö

X, Y

¸ñÇ¥ âÀÇ Á»ó ¸ð¼­¸® X ÁÂÇ¥¿Í Y ÁÂÇ¥¸¦ ÀúÀåÇÒ À̸§. »ý·«Çϸé, »óÀÀÇÏ´Â °ªÀÌ ÀúÀåµÇÁö ¾Ê½À´Ï´Ù.

Width/Height

¸ñÇ¥ âÀÇ ³ôÀÌ¿Í ³Êºñ¸¦ ÀúÀåÇÒ º¯¼öÀÇ À̸§. »ý·«ÇÏ¸é »óÀÀÇÏ´Â °ªÀÌ ÀúÀåµÇÁö ¾Ê½À´Ï´Ù.

WinTitle

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

WinText

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

ExcludeTitle

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

ExcludeText

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

³íÆò

ºÎÇÕÇϴ âÀÌ ¾øÀ¸¸é, Ãâ·Â º¯¼ö´Â ºñ¿öÁý´Ï´Ù.

WinTitle "ÇÁ·Î±×·¥ °ü¸®ÀÚr"°¡ »ç¿ëµÇ¸é, ÀÌ ¸í·É¾î´Â ¹ÙÅÁÈ­¸éÀÇ Å©±â¸¦ ¿­¶÷ÇÕ´Ï´Ù. ÀÌ´Â º¸Åë ÇöÀç È­¸é ÇØ»óµµ¿Í °°½À´Ï´Ù.

ÃÖ¼ÒÈ­µÈ âÀº ¿©ÀüÈ÷ Å©±â¿Í À§Ä¡°¡ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì ¹ÝȯµÈ °ªÀº OS¿Í ȯ°æ ±¸¼º¿¡ µû¶ó ´Þ¶óÁú ¼ö ÀÖ½À´Ï´Ù.

¸¶¿ì½º°¡ ÇöÀç ¼±È¸ ÁßÀΠâÀÇ À̸§°ú ÄÜÆ®·ÑÀ» ¹ß°ßÇÏ·Á¸é, MouseGetPos¸¦ »ç¿ëÇϽʽÿÀ.

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

°ü·Ã Ç׸ñ

WinMove, ControlGetPos, WinGetActiveStats, WinGetActiveTitle, WinGetTitle, WinGetText, ControlGetText

¿¹Á¦

WinGetPos, X, Y, Width, Height, Calculator
MsgBox, Calculator is at %X%`,%Y%

WinGetPos, X, Y, , , A  ; "A"´Â È°¼º âÀÇ À§Ä¡¸¦ ¾ò½À´Ï´Ù.
MsgBox, È°¼º âÀÇ À§Ä¡: %X%`,%Y%

IfWinExist, Untitled - Notepad
{
    WinGetPos, Xpos, Ypos  ; À§¿¡¼­ ¹ß°ßÇÑ Ã¢À» »ç¿ëÇÕ´Ï´Ù.
    MsgBox, Notepad is at %Xpos%`,%Ypos%
}