부모글 보이기/감추기 AD BLOCK 해제 요청 이 글에는 광고가 많이 들어가 있지 않습니다. adblock을 해제하셔도 글을 읽는데 그다지 부담이 없으니 해제를 부탁드립니다. (시리즈 글이 2개 있습니다.) .NET Framework: 496. 마우스 커서가 놓인 지점의 문자열 얻는 방법 ; https://www.sysnet.pe.kr/2/0/1861 닷넷: 2366. C# - UIAutomationClient를 이용해 시스템 트레이의 아이콘을 열거하는 방법 ; https://www.sysnet.pe.kr/2/0/14018 마우스 커서가 놓인 지점의 문자열 얻는 방법 예전에 잠깐 소개한 적이 있는, The managed way to retrieve text under the cursor (mouse pointer) ; https://www.sysnet.pe.kr/2/2/186 The managed way to retrieve text under the cursor (mouse pointer) ; https://devblogs.microsoft.com/oldnewthing/20130408-00/?p=4733 위의 글에 공개된 코드는 마우스 커서 밑에 있는 텍스트 내용을 구하는데, 이번에는 '단어(Word)' 단위로 가져오는 것도 소개하는 글이 떴습니다. Reading the word under the cursor via UI Automation ; https://devblogs.microsoft.com/oldnewthing/20150216-00/?p=44673 그런데, 직접 해보면 아시겠지만 그다지 인식율이 좋지 않습니다. 실제로 "Reading the word under the cursor via UI Automation" 글의 전제 조건에 해당하는 TextPattern 클래스를 제공하는 응용 프로그램은 많지 않습니다. 몇 가지 테스트를 해 보니 메모장(notepad.exe), 마이크로소프트 오피스의 워드/아웃룩에서는 인식이 잘 되었습니다. 또한 WinForm 응용 프로그램을 만들때 기본 제공되는 "TextBox" 에디트 컨트롤에서도 인식이 됩니다. 하지만, 그 외 일반적으로 많이 사용하는 어도비 PDF 리더, 마이크로소프트 오피스의 파워포인트/원노트, 인터넷 익스플로러, 크롬 브라우저, Visual Studio 등에서는 인식이 안 되었습니다. TextPattern 클래스를 구현한 응용 프로그램이 별로 없다는 이야기겠지요. ^^ 어쨌든 그래도 UI Automation의 활용 사례 중 하나로 알아두는 것도! 첨부한 코드는 "Reading the word under the cursor via UI Automation" 글의 예제를 그대로 만들어 본 것입니다. [이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.] [다음 글] .NET Framework: 497. .NET Garbage Collection에 대한 정리[이전 글] .NET Framework: 495. CorElementType의 요소 값 설명 [최초 등록일: 2/18/2015] [최종 수정일: 10/2/2025] 이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다. by SeongTae Jeong, mailto:techsharer at outlook.com 비밀번호 댓글 작성자 2020-11-11 09시40분 Auto Translate Mouse At Text Cursor; https://chentiangemalc.wordpress.com/2020/11/10/auto-translate-mouse-at-text-cursor/; https://github.com/chentiangemalc/AutoTran 정성태 ... 166 167 168 169 [170] 171 172 173 174 175 176 177 178 179 180 ... NoWriterDateCnt.TitleFile(s) 908정성태8/17/201030629개발 환경 구성: 82. Windows Virtual PC의 네트워크 유형 (3)907정성태8/14/201027920개발 환경 구성: 81. Windows Virtual PC의 네트워크 유형 (2)906정성태8/13/201035386개발 환경 구성: 80. Windows Virtual PC의 네트워크 유형 (1)905정성태8/8/201039954Team Foundation Server: 39. 배치 파일로 팀 빌드 구성 [2]1904정성태8/8/201041716오류 유형: 101. SignTool Error: No certificates were found that met all the given criteria. [2]903정성태8/6/201038624Team Foundation Server: 38. TFS 소스 코드 관리 기능 (4) - Branch902정성태8/5/201031346Team Foundation Server: 37. TFS 2010의 소스 서버 수작업 구성901정성태8/4/201030570Team Foundation Server: 36. TFS 소스 코드 관리 기능 (3) - Label900정성태8/3/201033546Team Foundation Server: 35. TFS 소스 코드 관리 기능 (2) - Shelveset899정성태8/2/201035104Team Foundation Server: 34. TFS 소스 코드 관리 기능 (1) - Changeset898정성태7/31/201035089.NET Framework: 182. WCF의 InactivityTimeout [1]1897정성태7/26/201135807.NET Framework: 181. AssemblyVersion, AssemblyFileVersion, AssemblyInformationalVersion [4]896정성태7/25/201042593.NET Framework: 180. C# Singleton 인스턴스 생성 [2]895정성태7/25/201026944VS.NET IDE: 68. Visual Studio 2010 - .NET 1.1 원격 디버깅894정성태7/25/201034589오류 유형: 100. Could not find the Database Engine startup handle. [1]893정성태7/25/201033097오류 유형: 99. .NET 4.0 설치된 윈도우 7에서 SQL Server 2008 R2 설치 오류892정성태7/9/201034093오류 유형: 98. 영문 윈도우에 한글 SQL Server 2008 R2 설치할 때 오류 [4]891정성태7/8/201031027오류 유형: 97. MsiGetProductInfo failed to retrieve ProductVersion for package with Product Code = '{...}'. Error code: 1605. [2]889정성태7/5/201032977.NET Framework: 179. Dictionary.Get(A) 대신 Dictionary.Get(A.GetHashCode())를 사용해서는 안 되는 이유 [1]888정성태6/30/201030531오류 유형: 96. Hyper-V 연결 오류 - A connection will not be made because credentials may not be sent to the remote computer887정성태6/23/201040343개발 환경 구성: 79. Hyper-V의 가상 머신에서 소리 재생 방법 [2]886정성태6/23/201028511제니퍼 .NET: 14. ASMX, WCF 호출 모니터링 및 누수 확인885정성태6/20/201030426개발 환경 구성: 78. COM+ 서버에서 COM+ 서버를 호출하는 방법884정성태6/20/201033122제니퍼 .NET: 13. COM+ 서버 모니터링 [2]883정성태6/18/201034722개발 환경 구성: 77. Appinit_Dlls로 구현한 환경 변수 설정 DLL [5]1882정성태6/17/201037852개발 환경 구성: 76. JKS(Java Key Store)에 저장된 인증서를 ActiveX 코드 서명에 사용하는 방법 [1] ... 166 167 168 169 [170] 171 172 173 174 175 176 177 178 179 180 ...