</head> <body> <h1>ComObjCreate() <span class="ver">[AHK_L 53+]</span></h1> <p>COM 객체를 생성합니다.</p> <pre class="Syntax">ComObject := <span class="func">ComObjCreate</span>(CLSID <span class="optional">, IID</span>)</pre> <h2 id="Parameters">매개변수</h2> <dl> <dt>CLSID</dt> <dd><p>CLSID 또는 인간이-읽을 수 있는 COM 객체의 Prog ID.</p></dd> <dt>IID</dt> <dd><p><span class="ver">[v1.0.96.00+]:</span> 객체가 지원하는 인터페이스의 식별자.</p></dd> </dl> <h2 id="Return_Value">반환 값</h2> <p>On failure, the function may throw an exception, exit the script or return an empty string, depending on the current <a href="ComObjError.htm">ComObjError()</a> setting and <a href="ComObjError.htm#factors">other factors</a>.</p> <p>IID가 지정되면, 인터페이스 포인터가 반환됩니다. 스크립트는 포인터 작업이 끝나면 전형적으로 <a href="ObjAddRef.htm">ObjRelease()</a>를 호출합니다.</p> <p>그렇지 않으면, 스크립트가 사용할 수 있는 포장 객체가 반환됩니다. <a href="../Objects.htm#Usage_Objects">객체 구문</a>을 참조하십시오.</p> <h2 id="Related">관련 항목</h2> <a href="ComObjGet.htm">ComObjGet()</a>, <a href="ComObjActive.htm">ComObjActive()</a>, <a href="ComObjConnect.htm">ComObjConnect()</a>, <a href="ComObjArray.htm">ComObjArray()</a>, <a href="ComObjError.htm">ComObjError()</a>, <a href="ComObjQuery.htm">ComObjQuery()</a>, <a href="http://msdn.microsoft.com/ko-kr/library/dcw63t7z.aspx">CreateObject (MSDN)</a> <h2 id="Examples">예제</h2> <p>계속해서 증가하는 리스트의 예는 다음 포럼의 토픽을 참조하십시오: <a href="https://www.autohotkey.com/forum/topic61509.html">https://www.autohotkey.com/forum/topic61509.html</a>.</p> <div class="ex" id="ExIE"> <p><a class="ex_number" href="#ExIE"></a> Launches an instance of Internet Explorer, makes it visible and navigates to a website.</p> <pre>ie := ComObjCreate("InternetExplorer.Application") ie.Visible := true <em>; 이것은 IE7에서 제대로 작동하지 않는다고 알려져 있습니다.</em> ie.Navigate("https://www.autohotkey.com/") </pre> </div> </body> </html>