부모글 보이기/감추기 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 정성태 ... 106 107 108 109 110 111 112 113 114 115 116 117 118 119 [120] ... NoWriterDateCnt.TitleFile(s) 11039정성태9/9/201627322오류 유형: 355. Visual Studio 빌드 오류 - error CS0122: '__ComObject' is inaccessible due to its protection level11038정성태9/9/201631065VC++: 99. 서로 다른 프로세스에서 WM_DROPFILES 메시지를 전송하는 방법111037정성태9/8/201634358.NET Framework: 603. socket - shutdown 호출이 필요한 사례111036정성태8/29/201629523개발 환경 구성: 297. 소스 코드가 없는 닷넷 어셈블리를 디버깅할 때 지역 변숫값을 확인하는 방법11035정성태8/29/201625095오류 유형: 354. .NET Reflector - PDB 생성 화면에서 "Clear Store"를 하면 "Index and length must refer to a location within the string" 예외 발생11034정성태8/25/201629218개발 환경 구성: 296. .NET Core 프로젝트를 NuGet Gallery에 배포하는 방법 [2]11033정성태8/24/201627235오류 유형: 353. coreclr 빌드 시 error C3249: illegal statement or sub-expression for 'constexpr' function11032정성태8/23/201626290개발 환경 구성: 295. 최신의 Visual C++ 컴파일러 도구를 사용하는 방법 [1]11031정성태8/23/201622103오류 유형: 352. Error encountered while pushing to the remote repository: Response status code does not indicate success: 403 (Forbidden).11030정성태8/23/201626634VS.NET IDE: 111. Team Explorer - 추가한 Git Remote 저장소가 Branch에 보이지 않는 경우11029정성태8/18/201634291.NET Framework: 602. Process.Start의 cmd.exe에서 stdin만 redirect 하는 방법 [1]111028정성태8/15/201625687오류 유형: 351. Octave 설치 시 JRE 경로 문제11027정성태8/15/201628272.NET Framework: 601. ElementHost 컨트롤의 메모리 누수 현상11026정성태8/13/201629277Math: 19. 행렬 연산으로 본 해밍코드11025정성태8/12/201629622개발 환경 구성: 294. .NET Core 프로젝트에서 "Copy to Output Directory" 처리 [1]11024정성태8/12/201627464오류 유형: 350. "nProtect GameMon" 실행 중에는 Visual Studio 디버깅이 안됩니다! [1]11023정성태8/10/201629589개발 환경 구성: 293. Azure 구독 후 PaaS 서비스 만들어 보기11022정성태8/10/201629483개발 환경 구성: 292. Azure Cloud Service 배포시 사용자 정의 작업을 추가하는 방법11021정성태8/10/201627381오류 유형: 349. System.Runtime.Remoting.RemotingException - Type '..., ..., Version=..., Culture=neutral, PublicKeyToken=null' is not registered for activation [2]11020정성태8/10/201630677VC++: 98. 원본과 대상 버퍼가 같은 경우 memcpy, wmemcpy 주의점11019정성태8/10/201647242기타: 60. 도서: 시작하세요! C# 6.0 프로그래밍: 기본 문법부터 실전 예제까지 (2쇄 정오표)11018정성태8/9/201631189.NET Framework: 600. 단일 메서드 내에서의 할당으로 알아보는 자바와 닷넷의 GC 차이점 [1]11017정성태8/9/201632179웹: 33. HTTP 쿠키에 한글 값을 설정하는 방법11016정성태8/7/201629814개발 환경 구성: 291. Windows Server Containers 소개11015정성태8/7/201628478오류 유형: 348. Windows Server 2016 TP5에서 Windows Containers의 docker run 실행 시 encountered an error during Start failed in Win3211014정성태8/6/201628628오류 유형: 347. Hyper-V Virtual Machine Management service Account does not have permission to open attachment ... 106 107 108 109 110 111 112 113 114 115 116 117 118 119 [120] ...