부모글 보이기/감추기 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 정성태 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 ... NoWriterDateCnt.TitleFile(s) 14005정성태8/21/20254156오류 유형: 982. sudo: unable to load /usr/libexec/sudo/sudoers.so: libssl.so.3: cannot open shared object file: No such file or directory14004정성태8/21/20254818오류 유형: 981. dotnet 실행 시 No usable version of the libssl was found14003정성태8/21/20255119닷넷: 2357. C# 14 - (9) 새로운 지시자 추가 (Ignored directives)14002정성태8/20/20255244오류 유형: 980. C# - appsettings.json 파일의 설정값이 적용 안 된다면?14001정성태8/19/202510024닷넷: 2356. .NET SDK 10 - 단일 소스 코드 파일을 빌드/실행하는 기능을 "dotnet" 명령어에 추가 [1]14000정성태8/18/20255521오류 유형: 979. ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory13999정성태8/15/20255101닷넷: 2355. C# 14 - (8) null 조건부 연산자 개선 - 대입문에도 사용 가능113998정성태8/14/20254631닷넷: 2354. C# 14 - (7) 확장 메서드에 정적 메서드와 속성 지원을 위한 전용 구문 추가113997정성태8/14/20255402Linux: 120. docker 컨테이너로 매핑된 볼륨에 컨테이너 측의 사용자 ID를 유지하면서 복사하는 방법13996정성태8/13/20254214오류 유형: 978. Unable to find the requested .Net Framework Data Provider.13995정성태8/13/20254506개발 환경 구성: 754. Visual C++ - 리눅스 빌드를 위한 Ubuntu 18 docker 컨테이너 설정13994정성태8/12/20254112오류 유형: 977. SQL Server - User, group, or role '...' already exists in the current database. (Microsoft SQL Server, Error: 15023)13993정성태8/11/20255184오류 유형: 976. Microsoft.ML.OnnxRuntimeGenAI 패키지 사용 시 "cublasLt64_12.dll" which is missing. (Error 126: "The specified module could not be found.") 오류13992정성태8/11/20254850닷넷: 2353. C# - Foundry Local을 이용한 gpt-oss-20b 모델 사용113991정성태8/9/20254699오류 유형: 975. winget - Foundry Local 패키지 업데이트가 안 되는 문제13990정성태8/8/20253942Windows: 283. Time zone 설정이 없는 Windows Server 202513989정성태8/8/20255242닷넷: 2352. C# - Windows S-mode 환경인지 체크하는 방법113988정성태8/8/20254919오류 유형: 974. 비주얼 스튜디오 업데이트 시 잠김 파일 경고 - Visual Studio Standard Collector Service 150 (VSStandardCollectorService150)13987정성태8/7/20254414닷넷: 2351. C# 14 - (6) event와 생성자에도 partial 메서드 적용113986정성태8/6/20253749닷넷: 2350. C# 14 - (5) 람다 매개 변수에 접근자가 있는 경우에도 타입 생략 가능113985정성태8/6/20254719오류 유형: 973. "wsl --install" 명령어 수행 시 "The server name or address could not be resolved"13984정성태8/6/20254341Windows: 282. 윈도우 운영체제에 추가된 ssh 서버(Win32-OpenSSH)13983정성태8/4/20253933오류 유형: 972. Microsoft.Data.SqlClient 6.1.0 버전부터 .NET 8 이상만 지원13982정성태8/2/20254623개발 환경 구성: 753. CentOS 7 컨테이너 내에서 openssh 서버 호스팅13981정성태8/1/20253912오류 유형: 971. CentOS 7에서 yum 사용 시 "Could not resolve host: mirrorlist.centos.org; Unknown error"13980정성태7/31/20254133Linux: 119. eBPF - BPF_PROG_TYPE_CGROUP_SOCK 유형에서 정상 동작하지 않는 BPF_CORE_READ (2) 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 ...