ControlMove

ÄÜÆ®·ÑÀ» À̵¿Çϰųª Å©±â¸¦ º¯°æÇÕ´Ï´Ù.

ControlMove, Control, X, Y, Width, Height [, WinTitle, WinText, ExcludeTitle, ExcludeText]

¸Å°³º¯¼ö

Control

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

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

X, Y

ControlÀÇ »õ À§Ä¡ÀÇ Á»ó ¸ð¼­¸®ÀÇ X¿Í Y ÁÂÇ¥ (Çȼ¿ ´ÜÀ§), Ç¥Çö½Ä °¡´É. ÁÂÇ¥°¡ ºñ¾î ÀÖÀ¸¸é, ControlÀÇ ±× Â÷¿øÀÇ À§Ä¡´Â º¯°æµÇÁö ¾Ê½À´Ï´Ù. ÁÂÇ¥´Â ControlÀÇ ºÎ¸ð âÀÇ Á»ó ¸ð¼­¸®¿¡ »ó´ëÀûÀÔ´Ï´Ù; ControlGetPos ¶Ç´Â Window Spy¸¦ »ç¿ëÇÏ¸é ±× ÁÂÇ¥¸¦ ¾Ë ¼ö ÀÖ½À´Ï´Ù.

Width, Height

ControlÀÇ »õ ³Êºñ¿Í ³ôÀÌ (Çȼ¿ ´ÜÀ§), Ç¥Çö½Äµµ °¡´É. ÀÌ ¸Å°³º¯¼ö°¡ ºñ¾î Àְųª »ý·«µÇ¸é, ±× Â÷¿øÀÇ ControlÀÇ Å©±â´Â º¯°æµÇÁö ¾Ê½À´Ï´Ù.

WinTitle

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

WinText

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

ExcludeTitle

Á¦¸ñ¿¡ ÀÌ °ªÀÌ Àִ âÀº ¹«½ÃÇÕ´Ï´Ù.

ExcludeText

ÅؽºÆ®¿¡ ÀÌ °ªÀÌ Àִ âÀº ¹«½ÃÇÕ´Ï´Ù.

ErrorLevel

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

ErrorLevelÀº ¹®Á¦°¡ ÀÖÀ¸¸é 1ÀÌ ¼³Á¤µÇ°í ±×·¸Áö ¾ÊÀ¸¸é 0ÀÌ ¼³Á¤µË´Ï´Ù.

³íÆò

½Å·Ú¼ºÀ» °³¼±Çϱâ À§ÇØ, ÀÌ ¸í·É¾î¸¦ »ç¿ëÇÒ ¶§¸¶´Ù ÀÚµ¿À¸·Î Áö¿¬µË´Ï´Ù. ÀÌ Áö¿¬ ½Ã°£Àº SetControlDelayÀ» ÅëÇÏ¿© º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù.

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

°ü·Ã Ç׸ñ

ControlGetPos, WinMove, SetControlDelay, Control, ControlGet, ControlGetText, ControlSetText, ControlClick, ControlFocus, ControlSend

¿¹Á¦

SetTimer, ControlMoveTimer
InputBox, OutputVar, My Input Box
return

ControlMoveTimer:
IfWinNotExist, My Input Box
    return
; ±×·¸Áö ¾ÊÀ¸¸é À§¿¡¼­ ¿ì¸®¸¦ À§ÇØ "¸¶Áö¸·À¸·Î ¹ß°ßµÈ" âÀ» ¼³Á¤ÇÕ´Ï´Ù:
SetTimer, ControlMoveTimer, off
WinActivate
ControlMove, OK, 10, , 200  ; OK ¹öÆ°À» ¿ÞÂÊÀ¸·Î À̵¿ÇÏ°í ±×ÀÇ ³Êºñ¸¦ ´Ã¸³´Ï´Ù.
return