메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

Autoit 한글키 영문키 인지 알고 싶을때

데브카페

Autoit 한글키 영문키 인지 계속 알려줌

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <winapi.au3>
#Include <misc.au3>

Global $rr

While 1
 sleep(10)
 ; Mouse position Tracker
    $mousexy = MouseGetPos()
    $x = $mousexy[0]
    $y = $mousexy[1]

 _Get_Hangul() ; 한영키 상태를 불러들임

    ToolTip($rr,$x+5 ,$y+10)  ; 툴팁으로 한영키 상태표시
WEnd


Func _Get_Hangul()
   $h = WinGetHandle (WinGetTitle("[ACTIVE]"))
   $r = DllCall("imm32.dll","uint","ImmGetDefaultIMEWnd","uint",$h)
   $rr = _SendMessage($r[0],0x283,0x005,0)
   If $rr = 1 Then
   $rr="H"
   ElseIf $rr = 0 Then
   $rr="E"
   EndIf
EndFunc

[출처] 오랜만에 뵙습니다 ^^ 마우스따라댕기는 한영키상태툴팁~!! (Autoit 강좌 | AutoitScript 강좌) | 작성자 살리에로

Comments