부모글 보이기/감추기 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 정성태 ... 61 62 63 64 65 66 67 68 69 70 71 72 73 [74] 75 ... NoWriterDateCnt.TitleFile(s) 12201정성태3/18/202024698오류 유형: 611. git-credential-manager.exe: Using credentials for username "Personal Access Token". [1]12200정성태3/18/202025049VS.NET IDE: 145. NuGet + Github 라이브러리 디버깅 관련 옵션 3가지 - "Enable Just My Code" / "Enable Source Link support" / "Suppress JIT optimization on module load (Managed only)"12199정성태3/17/202023063오류 유형: 610. C# - CodeDomProvider 사용 시 Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path '...\f2_6uod0.tmp'.12198정성태3/17/202026186오류 유형: 609. SQL 서버 접속 시 "Cannot open user default database. Login failed."12197정성태3/17/202025775VS.NET IDE: 144. .NET Core 콘솔 응용 프로그램을 배포(publish) 시 docker image 자동 생성 - 두 번째 이야기 [1]12196정성태3/17/202022444오류 유형: 608. The ServicedComponent being invoked is not correctly configured (Use regsvcs to re-register).12195정성태3/16/202024491.NET Framework: 902. C# - 프로세스의 모든 핸들을 열람 - 세 번째 이야기12194정성태3/16/202028230오류 유형: 607. PostgreSQL - Npgsql.NpgsqlException: sorry, too many clients already12193정성태3/16/202025484개발 환경 구성: 485. docker - SAP Adaptive Server Enterprise 컨테이너 실행 [1]12192정성태3/14/202025937개발 환경 구성: 484. docker - Sybase Anywhere 16 컨테이너 실행12191정성태3/14/202027739개발 환경 구성: 483. docker - OracleXE 컨테이너 실행 [1]12190정성태3/14/202021486오류 유형: 606. Docker Desktop 업그레이드 시 "The process cannot access the file 'C:\Program Files\Docker\Docker\resources\dockerd.exe' because it is being used by another process."12189정성태3/13/202027059개발 환경 구성: 482. Facebook OAuth 처리 시 상태 정보 전달 방법과 "유효한 OAuth 리디렉션 URI" 설정 규칙12188정성태3/13/202035617Windows: 169. 부팅 시점에 실행되는 chkdsk 결과를 확인하는 방법12187정성태3/12/202022441오류 유형: 605. NtpClient was unable to set a manual peer to use as a time source because of duplicate error on '...'.12186정성태3/12/202023311오류 유형: 604. The SysVol Permissions for one or more GPOs on this domain controller and not in sync with the permissions for the GPOs on the Baseline domain controller.12185정성태3/11/202024781오류 유형: 603. The browser service was unable to retrieve a list of servers from the browser master...12184정성태3/11/202027399오류 유형: 602. Automatic certificate enrollment for local system failed (0x800706ba) The RPC server is unavailable. [3]12183정성태3/11/202023487오류 유형: 601. Warning: DsGetDcName returned information for \\[...], when we were trying to reach [...].12182정성태3/11/202025401.NET Framework: 901. C# Windows Forms - Vista/7 이후의 Progress Bar 업데이트가 느린 문제112181정성태3/11/202025734기타: 76. 재현 가능한 최소한의 예제 프로젝트란? - 두 번째 예제112180정성태3/10/202022007오류 유형: 600. "Docker Desktop for Windows" - EXPOSE 포트가 LISTENING 되지 않는 문제12179정성태3/10/202032656개발 환경 구성: 481. docker - PostgreSQL 컨테이너 실행12178정성태3/10/202026591개발 환경 구성: 480. Linux 운영체제의 docker를 위한 tcp 바인딩 추가 [1]12177정성태3/9/202025531개발 환경 구성: 479. docker - MySQL 컨테이너 실행12176정성태3/9/202025489개발 환경 구성: 478. 파일의 (sha256 등의) 해시 값(checksum) 확인하는 방법 ... 61 62 63 64 65 66 67 68 69 70 71 72 73 [74] 75 ...