WinMove

ÁöÁ¤µÈ âÀÇ À§Ä¡¿Í Å©±â¸¦ º¯°æÇÕ´Ï´Ù.

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

¸Å°³º¯¼ö

X, Y

¸ñǥâÀÇ »õ À§Ä¡ÀÇ Á»ó ¸ð¼­¸® X¿Í Y ÁÂÇ¥ (Çȼ¿ ´ÜÀ§). ÀÌ °ªÀº Ç¥Çö½ÄÀÏ ¼ö ÀÖ½À´Ï´Ù. È­¸éÀÇ Á»ó Çȼ¿ ÁÂÇ¥´Â 0, 0ÀÔ´Ï´Ù.

ÀÌ ¸Å°³º¯¼ö¸¸ ÁÖ¾îÁ³´Ù¸é, ¸¶Áö¸· ¹ß°ß âÀÌ ¸ñÇ¥ âÀ¸·Î »ç¿ëµË´Ï´Ù.

±×·¸Áö ¾ÊÀ¸¸é, X¿Í Y¸¦ »ý·«ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì ÇöÀç À§Ä¡°¡ »ç¿ëµË´Ï´Ù.

WinTitle

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

WinText

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

Width, Height

âÀÇ »õ ³Êºñ¿Í ³ôÀÌ (Çȼ¿ ´ÜÀ§), ÀÌ °ªÀº Ç¥Çö½ÄÀÏ ¼öÀÖ½À´Ï´Ù. Çϳª¶óµµ »ý·«µÇ°Å³ª ºñ¾î Àְųª ´Ü¾î DEFAULTÀ̸é, ÇØ´ç Â÷¿øÀÇ Å©±â´Â ¹Ù²îÁö ¾Ê½À´Ï´Ù.

ExcludeTitle

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

ExcludeText

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

³íÆò

Width¿Í Height°¡ ³Ê¹« ÀÛ´Ù¸é (¶Ç´Â À½¼ö¶ó¸é), Á¦¸ñ ¹Ù°¡ ÀÖ´Â ´ëºÎºÐÀÇ Ã¢Àº ÀϹÝÀûÀ¸·Î 112 x 27 Çȼ¿º¸´Ù ´õ ÀÛ¾ÆÁöÁö ¾Ê½À´Ï´Ù (±×·¸Áö¸¸, ¾î¶² À¯ÇüÀÇ Ã¢Àº µû·Î ÃÖ¼Ò Å©±â¸¦ °¡Áú ¼ö ÀÖ½À´Ï´Ù). Width¿Í Height°¡ ³Ê¹« Å©¸é, ´ëºÎºÐÀÇ Ã¢Àº ¹ÙÅÁÈ­¸é Å©±âÀÇ ´ë·« 12 Çȼ¿À» ³Ñ¾î°¡Áö ¾Ê½À´Ï´Ù.

x¿Í yÁÂÇ¥¿¡ À½¼ö °ªÀº Çã¿ëµË´Ï´Ù. ´ÙÁß-¸ð´ÏÅÍ ½Ã½ºÅÛÀ» Áö¿øÇÏ°í âÀ» ¿ÏÀüÈ÷ È­¸éÀ¸·ÎºÎÅÍ ¸Ö¸® À̵¿½Ãų ¼ö ÀÖ½À´Ï´Ù.

WinMove´Â ÃÖ¼ÒÈ­µÈ âÀ» À̵¿ÇÒ ¼ö ¾øÁö¸¸, ¼ûÀº âÀº À̵¿½Ãų ¼ö ÀÖ½À´Ï´Ù. ¹°·Ð DetectHiddenWindows°¡ ÄÑÁ® ÀÖ¾î¾ß ÇÕ´Ï´Ù.

WinMoveÀÇ ¼Óµµ´Â SetWinDelay¿¡ ¿µÇâÀ» ¹Þ½À´Ï´Ù.

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

°ü·Ã Ç׸ñ

ControlMove, WinGetPos, WinHide, WinMinimize, WinMaximize, WinSet

¿¹Á¦

Run, calc.exe
WinWait, Calculator
WinMove, 0, 0 ; WinWait°¡ ¹ß°ßÇÑ Ã¢À» È­¸éÀÇ Á»ó ¸ð¼­¸®·Î À̵¿½Ãŵ´Ï´Ù.

SplashTextOn, 400, 300, Clipboard, Ŭ¸³º¸µåÀÇ ³»¿ë:`n%clipboard%
WinMove, Clipboard, , 0, 0 ; ½ºÇ÷¹½Ã âÀ» Á»ó ¸ð¼­¸®·Î À̵¿½Ãŵ´Ï´Ù.
Msgbox, SplashText¸¦ ³¡³»·Á¸é OK¸¦ ´©¸£½Ê½Ã¿À
SplashTextOff

; ´ÙÀ½ ÇÔ¼ö´Â ÁöÁ¤µÈ âÀ» È­¸é °¡¿îµ¥¿¡ ¹èÄ¡ÇÕ´Ï´Ù:
CenterWindow(WinTitle)
{
    WinGetPos,,, Width, Height, %WinTitle%
    WinMove, %WinTitle%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
}