<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://devcafe.co.kr/w/index.php?action=history&amp;feed=atom&amp;title=Autoit_controlGetText_%ED%95%A8%EC%88%98</id>
	<title>Autoit controlGetText 함수 - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://devcafe.co.kr/w/index.php?action=history&amp;feed=atom&amp;title=Autoit_controlGetText_%ED%95%A8%EC%88%98"/>
	<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=Autoit_controlGetText_%ED%95%A8%EC%88%98&amp;action=history"/>
	<updated>2026-04-04T09:15:16Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://devcafe.co.kr/w/index.php?title=Autoit_controlGetText_%ED%95%A8%EC%88%98&amp;diff=2176&amp;oldid=prev</id>
		<title>2025년 7월 21일 (월) 23:38에 Devcafe님의 편집</title>
		<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=Autoit_controlGetText_%ED%95%A8%EC%88%98&amp;diff=2176&amp;oldid=prev"/>
		<updated>2025-07-21T23:38:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025년 7월 22일 (화) 08:38 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;1번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AutoIt를 사용하여 현재 커서 위치의 문자열을 가져오려면 `ControlGetText` 함수를 사용할 수 있습니다. 이 함수는 지정된 컨트롤의 텍스트를 반환합니다. 메모장의 경우, 컨트롤 ID가 일반적으로 &amp;quot;Edit1&amp;quot;이며, 메모장 창의 핸들을 알아야 합니다. 아래는 간단한 예시 코드입니다.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AutoIt를 사용하여 현재 커서 위치의 문자열을 가져오려면 `ControlGetText` 함수를 사용할 수 있습니다. 이 함수는 지정된 컨트롤의 텍스트를 반환합니다. 메모장의 경우, 컨트롤 ID가 일반적으로 &amp;quot;Edit1&amp;quot;이며, 메모장 창의 핸들을 알아야 합니다. 아래는 간단한 예시 코드입니다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sql&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autoit&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;```autoit&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;MsgBoxConstants.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;MsgBoxConstants.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;16번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;14번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;이 코드는 메모장 창의 핸들을 찾아서 &amp;quot;Edit1&amp;quot; 컨트롤에서 텍스트를 가져옵니다. 그러나 메모장이 현재 활성화되어 있고 편집 상태인 경우에만 작동합니다.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;이 코드는 메모장 창의 핸들을 찾아서 &amp;quot;Edit1&amp;quot; 컨트롤에서 텍스트를 가져옵니다. 그러나 메모장이 현재 활성화되어 있고 편집 상태인 경우에만 작동합니다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 마우스 커서 텍스트 복사 ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 마우스 커서 텍스트 복사 ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sql&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autoit&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;WinAPI.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;WinAPI.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;Misc.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;Misc.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;49번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;47번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here&amp;#039;s a complete example of a full screen GUI, displaying the actual screen and a border around the window that&amp;#039;s topmost under the mouse pointer. This function is used to write the Title of the window to console.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here&amp;#039;s a complete example of a full screen GUI, displaying the actual screen and a border around the window that&amp;#039;s topmost under the mouse pointer. This function is used to write the Title of the window to console.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sql&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autoit&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;Misc.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;Misc.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;Array.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;Array.au3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Devcafe</name></author>
	</entry>
	<entry>
		<id>https://devcafe.co.kr/w/index.php?title=Autoit_controlGetText_%ED%95%A8%EC%88%98&amp;diff=156&amp;oldid=prev</id>
		<title>Devcafe: 새 문서: AutoIt를 사용하여 현재 커서 위치의 문자열을 가져오려면 `ControlGetText` 함수를 사용할 수 있습니다. 이 함수는 지정된 컨트롤의 텍스트를 반환합니다. 메모장의 경우, 컨트롤 ID가 일반적으로 &quot;Edit1&quot;이며, 메모장 창의 핸들을 알아야 합니다. 아래는 간단한 예시 코드입니다. &lt;source lang=sql&gt;  ```autoit #include &lt;MsgBoxConstants.au3&gt;  Opt(&quot;WinTitleMatchMode&quot;, 2) ; 윈도우 제목 부분 일치 모...</title>
		<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=Autoit_controlGetText_%ED%95%A8%EC%88%98&amp;diff=156&amp;oldid=prev"/>
		<updated>2024-10-04T17:11:22Z</updated>

		<summary type="html">&lt;p&gt;새 문서: AutoIt를 사용하여 현재 커서 위치의 문자열을 가져오려면 `ControlGetText` 함수를 사용할 수 있습니다. 이 함수는 지정된 컨트롤의 텍스트를 반환합니다. 메모장의 경우, 컨트롤 ID가 일반적으로 &amp;quot;Edit1&amp;quot;이며, 메모장 창의 핸들을 알아야 합니다. 아래는 간단한 예시 코드입니다. &amp;lt;source lang=sql&amp;gt;  ```autoit #include &amp;lt;MsgBoxConstants.au3&amp;gt;  Opt(&amp;quot;WinTitleMatchMode&amp;quot;, 2) ; 윈도우 제목 부분 일치 모...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;새 문서&lt;/b&gt;&lt;/p&gt;&lt;div&gt;AutoIt를 사용하여 현재 커서 위치의 문자열을 가져오려면 `ControlGetText` 함수를 사용할 수 있습니다. 이 함수는 지정된 컨트롤의 텍스트를 반환합니다. 메모장의 경우, 컨트롤 ID가 일반적으로 &amp;quot;Edit1&amp;quot;이며, 메모장 창의 핸들을 알아야 합니다. 아래는 간단한 예시 코드입니다.&lt;br /&gt;
&amp;lt;source lang=sql&amp;gt;&lt;br /&gt;
&lt;br /&gt;
```autoit&lt;br /&gt;
#include &amp;lt;MsgBoxConstants.au3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Opt(&amp;quot;WinTitleMatchMode&amp;quot;, 2) ; 윈도우 제목 부분 일치 모드로 설정&lt;br /&gt;
&lt;br /&gt;
$notepadHandle = WinGetHandle(&amp;quot;[CLASS:Notepad]&amp;quot;) ; 메모장 창의 핸들을 가져옴&lt;br /&gt;
$editControlText = ControlGetText($notepadHandle, &amp;quot;&amp;quot;, &amp;quot;Edit1&amp;quot;) ; &amp;quot;Edit1&amp;quot; 컨트롤의 텍스트를 가져옴&lt;br /&gt;
&lt;br /&gt;
MsgBox($MB_OK, &amp;quot;현재 커서 위치의 문자열&amp;quot;, $editControlText)&lt;br /&gt;
```&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
이 코드는 메모장 창의 핸들을 찾아서 &amp;quot;Edit1&amp;quot; 컨트롤에서 텍스트를 가져옵니다. 그러나 메모장이 현재 활성화되어 있고 편집 상태인 경우에만 작동합니다.&lt;br /&gt;
=== 마우스 커서 텍스트 복사 ===&lt;br /&gt;
&amp;lt;source lang=sql&amp;gt;&lt;br /&gt;
#include &amp;lt;WinAPI.au3&amp;gt;&lt;br /&gt;
#include &amp;lt;Misc.au3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Func _WindowFromPoint($iX,$iY)&lt;br /&gt;
    Local $stInt64,$aRet,$stPoint=DllStructCreate(&amp;quot;long;long&amp;quot;)&lt;br /&gt;
    DllStructSetData($stPoint,1,$iX)&lt;br /&gt;
    DllStructSetData($stPoint,2,$iY)&lt;br /&gt;
    $stInt64=DllStructCreate(&amp;quot;int64&amp;quot;,DllStructGetPtr($stPoint))&lt;br /&gt;
    $aRet=DllCall(&amp;quot;user32.dll&amp;quot;,&amp;quot;hwnd&amp;quot;,&amp;quot;WindowFromPoint&amp;quot;,&amp;quot;int64&amp;quot;,DllStructGetData($stInt64,1))&lt;br /&gt;
    If @error Then Return SetError(2,@error,0)&lt;br /&gt;
    If $aRet[0]=0 Then Return SetError(3,0,0)&lt;br /&gt;
    Return $aRet[0]&lt;br /&gt;
EndFunc&lt;br /&gt;
&lt;br /&gt;
Local $hControl, $hWin, $hOldWin, $aMousePos&lt;br /&gt;
$hOldWin = &amp;quot;&amp;quot;&lt;br /&gt;
While Not _IsPressed(&amp;quot;1B&amp;quot;)&lt;br /&gt;
    $aMousePos = MouseGetPos()&lt;br /&gt;
    $hControl=_WindowFromPoint($aMousePos[0],$aMousePos[1])&lt;br /&gt;
    ; Since _WindowFromPoint() can return &amp;#039;sub&amp;#039; windows, or control handles, we should seek the owner window&lt;br /&gt;
    $hWin=_WinAPI_GetAncestor($hControl,2)&lt;br /&gt;
    If $hWin &amp;lt;&amp;gt; $hOldWin Then&lt;br /&gt;
        TrayTip(&amp;quot;Window Info&amp;quot;,&amp;quot;Window under mouse = &amp;quot; &amp;amp; WinGetTitle($hWin), 1)&lt;br /&gt;
        $hOldWin = $hWin&lt;br /&gt;
    EndIf&lt;br /&gt;
    Sleep(10)&lt;br /&gt;
WEnd&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== 마우스 포인터 위치 ===&lt;br /&gt;
다음은 실제 화면과 마우스 포인터 아래의 맨 위에 있는 창 주변의 테두리를 표시하는 전체 화면 GUI의 완전한 예입니다. 이 기능은 창의 제목을 콘솔에 쓰는 데 사용됩니다.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a complete example of a full screen GUI, displaying the actual screen and a border around the window that&amp;#039;s topmost under the mouse pointer. This function is used to write the Title of the window to console.&lt;br /&gt;
&amp;lt;source lang=sql&amp;gt;&lt;br /&gt;
#include &amp;lt;Misc.au3&amp;gt;&lt;br /&gt;
#include &amp;lt;Array.au3&amp;gt;&lt;br /&gt;
#include &amp;lt;GDIPlus.au3&amp;gt;&lt;br /&gt;
#include &amp;lt;ScreenCapture.au3&amp;gt;&lt;br /&gt;
#include &amp;lt;WindowsConstants.au3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HotKeySet(&amp;quot;{Esc}&amp;quot;, &amp;quot;_Exit&amp;quot;)&lt;br /&gt;
Func _Exit()&lt;br /&gt;
    Exit 0&lt;br /&gt;
EndFunc&lt;br /&gt;
&lt;br /&gt;
Global $xPosReminder, $yPosReminder&lt;br /&gt;
$dll = DllOpen(&amp;quot;user32.dll&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
$allWindows = WinList()&lt;br /&gt;
; exclude invisible windows from winlist&lt;br /&gt;
Dim $windows[1]&lt;br /&gt;
$windows[0] = 0&lt;br /&gt;
For $i = 1 to $allWindows[0][0]&lt;br /&gt;
    ; only fetches visible windows&lt;br /&gt;
    If BitAnd(WinGetState($allWindows[$i][1]), 2) Then;AND $allWindows[$i][0] &amp;lt;&amp;gt; &amp;quot;&amp;quot; Then&lt;br /&gt;
        ReDim $windows[$windows[UBound($windows) - 1] + 2]&lt;br /&gt;
        $windows[UBound($windows) - 1] = $windows[UBound($windows) - 2] + 1&lt;br /&gt;
        $windows[UBound($windows) - 2] = $allWindows[$i][1]&lt;br /&gt;
    EndIf&lt;br /&gt;
Next&lt;br /&gt;
ReDim $windows[$windows[UBound($windows) - 1]]&lt;br /&gt;
_ArrayReverse($windows)&lt;br /&gt;
&lt;br /&gt;
; capture screen without cursor&lt;br /&gt;
$pos = MouseGetPos()&lt;br /&gt;
MouseMove(@DesktopWidth, @DesktopHeight, 0)&lt;br /&gt;
$hBitmap = _ScreenCapture_Capture (&amp;quot;&amp;quot;)&lt;br /&gt;
MouseMove($pos[0], $pos[1], 0)&lt;br /&gt;
&lt;br /&gt;
; create and show new fullscreen gui&lt;br /&gt;
$hGUI = GUICreate(&amp;quot;&amp;quot;, @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP)&lt;br /&gt;
GUISetState(@SW_SHOW)&lt;br /&gt;
&lt;br /&gt;
; Initialize GDI+ library&lt;br /&gt;
_GDIPlus_StartUp()&lt;br /&gt;
$hImage = _GDIPlus_BitmapCreateFromHBITMAP ($hBitmap)&lt;br /&gt;
$hGraphics = _GDIPlus_GraphicsCreateFromHWND ($hGUI)&lt;br /&gt;
$hPen = _GDIPlus_PenCreate(0xFFFF0000, 3, 2)&lt;br /&gt;
$iX = _GDIPlus_ImageGetWidth($hImage)&lt;br /&gt;
$iY = _GDIPlus_ImageGetHeight($hImage)&lt;br /&gt;
&lt;br /&gt;
_GDIPlus_GraphicsDrawImage($hGraphics, $hImage, 0, 0)&lt;br /&gt;
&lt;br /&gt;
Global $oldWindow = 0&lt;br /&gt;
; Wait for Click&lt;br /&gt;
While True&lt;br /&gt;
    If _IsPressed(&amp;quot;01&amp;quot;, $dll) Then ; left mouse button&lt;br /&gt;
        $xPos = MouseGetPos(0)&lt;br /&gt;
        $yPos = MouseGetPos(1)&lt;br /&gt;
        ExitLoop&lt;br /&gt;
    EndIf&lt;br /&gt;
    If __MouseMoved() Then&lt;br /&gt;
        ; Erzeugt eine Kopie einer 24 bit Bitmap&lt;br /&gt;
        $hClone = _GDIPlus_BitmapCloneArea($hImage, 0, 0, $iX, $iY, $GDIP_PXF24RGB)&lt;br /&gt;
&lt;br /&gt;
        $currentWindow = __GetWindowByMousePosition($windows, MouseGetPos(0), MouseGetPos(1))&lt;br /&gt;
        If $currentWindow &amp;lt;&amp;gt; $oldWindow Then&lt;br /&gt;
            $windowPosition = WinGetPos($currentWindow)&lt;br /&gt;
&lt;br /&gt;
            ; reduce position and size to desktop space&lt;br /&gt;
            $windowPosition[0] = _Iif($windowPosition[0] &amp;lt; 0, 0, $windowPosition[0])&lt;br /&gt;
            $windowPosition[1] = _Iif($windowPosition[1] &amp;lt; 0, 0, $windowPosition[1])&lt;br /&gt;
            $windowPosition[2] = _Iif($windowPosition[2]  &amp;gt; @DesktopWidth, @DesktopWidth, $windowPosition[2])&lt;br /&gt;
            $windowPosition[3] = _Iif($windowPosition[3] &amp;gt; @DesktopHeight, @DesktopHeight, $windowPosition[3])&lt;br /&gt;
&lt;br /&gt;
            _GDIPlus_GraphicsDrawImage($hGraphics, $hClone, 0, 0)&lt;br /&gt;
            _GDIPlus_GraphicsDrawRect($hGraphics, $windowPosition[0], $windowPosition[1], $windowPosition[2], $windowPosition[3], $hPen)&lt;br /&gt;
            $oldWindow = $currentWindow&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf&lt;br /&gt;
    Sleep(1)&lt;br /&gt;
WEnd&lt;br /&gt;
&lt;br /&gt;
; Free Ressources&lt;br /&gt;
_GDIPlus_PenDispose($hPen)&lt;br /&gt;
_GDIPlus_BitmapDispose($hImage)&lt;br /&gt;
_GDIPlus_GraphicsDispose($hGraphics)&lt;br /&gt;
_WinAPI_DeleteObject($hBitmap)&lt;br /&gt;
_GDIPlus_ShutDown()&lt;br /&gt;
DllClose($dll)&lt;br /&gt;
&lt;br /&gt;
GUISetState(@SW_HIDE)&lt;br /&gt;
&lt;br /&gt;
Func __GetWindowByMousePosition($windows, $xPos, $yPos)&lt;br /&gt;
    Local $currentWindow = 0&lt;br /&gt;
    For $i = 0 to UBound($windows) - 1&lt;br /&gt;
        $pos = WinGetPos($windows[$i])&lt;br /&gt;
        If $xPos &amp;gt;= $pos[0] AND $xPos &amp;lt;= $pos[0] + $pos[2] AND $yPos &amp;gt;= $pos[1] AND $yPos &amp;lt;= $pos[1] + $pos[3] Then&lt;br /&gt;
            $currentWindow = $windows[$i]&lt;br /&gt;
        EndIf&lt;br /&gt;
    Next&lt;br /&gt;
    Return $currentWindow&lt;br /&gt;
EndFunc&lt;br /&gt;
&lt;br /&gt;
Func __MouseMoved()&lt;br /&gt;
    Local $actualPos = MouseGetPos()&lt;br /&gt;
    If $xPosReminder &amp;lt;&amp;gt; $actualPos[0] OR $yPosReminder &amp;lt;&amp;gt; $actualPos[1] Then&lt;br /&gt;
        $xPosReminder = $actualPos[0]&lt;br /&gt;
        $yPosReminder = $actualPos[1]&lt;br /&gt;
        Return True&lt;br /&gt;
    Else&lt;br /&gt;
        Return False&lt;br /&gt;
    EndIf&lt;br /&gt;
EndFunc&lt;br /&gt;
&lt;br /&gt;
ConsoleWrite(WinGetTitle(__GetWindowByMousePosition($windows, $xPos, $yPos)) &amp;amp; @CR)&lt;br /&gt;
Share&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[category:autoit]]&lt;/div&gt;</summary>
		<author><name>Devcafe</name></author>
	</entry>
</feed>