- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
민서네집
[Autohotkey] 한영키 확인, 로그 파일에 기록 본문
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;[출처] http://v1.autohotkey.co.kr/cgi/board.php?bo_table=qna&wr_id=39765
; 영어(0) 한글(1)
; Send {vk15sc138} 한/영키
;Msgbox % 한영확인()
한영확인()
{
IfEqual, hWnd,, WinGet, hWnd, ID, A
DefaultIMEWnd := DllCall( "imm32\ImmGetDefaultIMEWnd", "UInt", hWnd)
DetectSaved = %A_DetectHiddenWindows%
DetectHiddenWindows, On
SendMessage, 0x283, 5, 0,, ahk_id %DefaultIMEWnd%
IfNotEqual, A_DetectHiddenWindows, %DetectSaved%, DetectHiddenWindows, %DetectSaved%
Return ErrorLevel
}
;로그 출력
; https://autohotkey.com/docs/Functions.htm
LogFileName = C:\logs\autohotkey.log
LogToFile(TextToLog)
{
global LogFileName ; This global variable was previously given a value somewhere outside this function.
FormatTime, now,,yyyy-MM-dd HH:mm:ss
FileAppend, [%now%] %TextToLog%`n, %LogFileName%
}
CheckIME()
{
ime = % 한영확인()
IfEqual, ime, 1, Send {vk15sc138}
}
CheckIME()
Send, English
'Autohotkey' 카테고리의 다른 글
[오토핫키]블락인풋 , blockinput (0) | 2018.11.20 |
---|---|
관리자권한의 시작프로그램 실행시키기 (0) | 2018.04.12 |
[AutoHotKey] AutoIt 프로그램 (0) | 2017.11.12 |
[Autohotkey] windows 32 message 캡쳐링 하는 툴 (0) | 2017.11.12 |
[AutoHotKey] 한글 입력하기 (0) | 2017.11.09 |