rudyannnn / rudyannnn.github.io

MIT License
1 stars 0 forks source link

wiki/capslock-to-esc/ #5

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Capslock To Esc - 철원사람 rudyannnn

https://rudyannnn.github.io/wiki/capslock-to-esc/

rudyannnn commented 2 years ago

;CapsLock::ESC ;ScrollLock::CapsLock

widthhh=2560 highttt=160

s:: ;;백장열기

sleep 300
loop, 50
{
sleep 50
send {tab}
send ^{enter}
}
return

::tlwkrskdhkfk:: edit ;;시작나와라 winwait 메시지 winclose 메시지 sleep 1000 winmaximize 시작 return

CapsLock & F3:: Run D:\ahk\AhkVimLike\src\AhkVimLike.ahk PrintScreen & F3:: Run D:\ahk\AhkVimLike\src\AhkVimLike.ahk

::vpnskdhkfk:: sleep 300 send {LWin} sleep 1000 if(IME_CHECK("A")) Send, {VK15} ;영문이라면 한영전환 키를 입력해준다. send vpn{space}설정 sleep 1000 send {enter} winwaitActive 설정 sleep 3000 click, 610, 259 sleep 1000 click, 681, 334 return

;;;4 & 1:: click, 526, 824 ;;;4 & 2:: click, 835, 574 ;;;4 & 3:: click, 1143, 824 4 & 2:: send +{tab 7}{enter}{tab 7} return 4 & 1:: send +{tab 9}{enter}{tab 9} return 4::4

^!t:: ;좌표읽어라 MouseGetPos, Mouse_X, Mouse_Y,,, PixelGetColor, color, %Mouse_X%, %Mouse_Y% return

::whkvyskdhkfk:: ;좌표나와라 send, click, %Mouse_X%, %Mouse_Y%{enter} send, PixelGetColor, color, %Mouse_X%, %Mouse_Y%{enter} send, if(color=".%color%."){"{enter} return

::wpahrskdhkfk:: ;제목나와라 WinGetTitle, clipboard, A MsgBox, %clipboard% return

t::

clipboard=OCS Task
Send, ^v
return

v:: run, C:\Program Files\AutoHotkey\WindowSpy.ahk

!m::
{ Run, Notepad.exe WinWaitActive, ahk_class Notepad WinSet, AlwaysOnTop, On, ahk_class Notepad return }

n::

{
    WinGetActiveTitle, Title
    WinSet, AlwaysOnTop, On, %Title%
    return
}

!#n::
{ WinGetActiveTitle, Title WinSet, AlwaysOnTop, Off, %Title% return }

!s:: ;;;;; Painter에 화면 캡쳐 항상위

Run, C:\WINDOWS\system32\mspaint.exe
Sleep, 500
Send, {CtrlDown}v{CtrlUp}
WinSet, AlwaysOnTop, On, 제목 없음 - 그림판
return

SetTimer, timechange, 100 return

timechange: user_hour = 22 ;시각 keyin user_min = 0 ;분 keyin user_sec = 0 ;초 keyin ;SoundBeep / /

if A_Hour = %user_hour% { if A_Min = %user_min% {
if A_Sec = %user_sec% { MouseClick, left, 570, 444 Sleep, 50 send, {Enter} } } } return

::qhrqnx:: StringLen, Length_str, clipboard sleep, 50 index_strLen = %Length_str% sleep, 50 loop { if index_strLen = 0 break StringMid, outputChar, clipboard, Length_str-index_strLen+1, 1 send,{%outputChar%} index_strLen-=1 } sleep, 200 return

::gustl:: textt := SubStr(A_Now, 3, 10) send :%textt% return

$Esc:: send {ESC} if(IME_CHECK("A")) Send, {VK15} ;영문이라면 한영전환 키를 입력해준다. return

$Capslock:: send {Capslock} if(IME_CHECK("A")) Send, {VK15} ;영문이라면 한영전환 키를 입력해준다. return

/ IME check / IME_CHECK(WinTitle) { WinGet,hWnd,ID,%WinTitle% Return Send_ImeControl(ImmGetDefaultIMEWnd(hWnd),0x005,"") } Send_ImeControl(DefaultIMEWnd, wParam, lParam) { DetectSave := A_DetectHiddenWindows DetectHiddenWindows,ON SendMessage 0x283, wParam,lParam,,ahk_id %DefaultIMEWnd% if (DetectSave <> A_DetectHiddenWindows) DetectHiddenWindows,%DetectSave% return ErrorLevel } ImmGetDefaultIMEWnd(hWnd) { return DllCall("imm32\ImmGetDefaultIMEWnd", Uint,hWnd, Uint) }

::tlwkraozmfhektl:: reload return

^!r::reload ^!x::exitapp

rudyannnn commented 2 years ago

SetCapsLockState, alwaysoff Capslock:: Send {LControl Down} KeyWait, CapsLock Send {LControl Up} if ( A_PriorKey = "CapsLock" ) { Send {Esc} if(IME_CHECK("A")) Send, {VK15} ;영문이라면 한영전환 키를 입력해준다.

} return

::RR:: reload return

/ IME check / IME_CHECK(WinTitle) { WinGet,hWnd,ID,%WinTitle% Return Send_ImeControl(ImmGetDefaultIMEWnd(hWnd),0x005,"") } Send_ImeControl(DefaultIMEWnd, wParam, lParam) { DetectSave := A_DetectHiddenWindows DetectHiddenWindows,ON SendMessage 0x283, wParam,lParam,,ahk_id %DefaultIMEWnd% if (DetectSave <> A_DetectHiddenWindows) DetectHiddenWindows,%DetectSave% return ErrorLevel } ImmGetDefaultIMEWnd(hWnd) { return DllCall("imm32\ImmGetDefaultIMEWnd", Uint,hWnd, Uint) }

rudyannnn commented 2 years ago

https://mail-bigfile.hiworks.biz/service/download/2d47ac0b4e463efaef0723cd75b919d2cb21c58e1086b4ca2189407f1cfde2b9

rudyannnn commented 2 years ago

s:: ;;백장열기

sleep 300 loop, 50 { sleep 50 send {tab} send ^{enter} } return

^f5:: ;; 국문책 읽기 sleep 300 send +o sleep 100 send https://lens.google.com/search?p={enter}

mousemove 1662, 33 PixelGetColor, color, 1662, 33 while !(color="0x242120") PixelGetColor, color, 1662, 33 click, 1662, 33

PixelGetColor, color, 1451, 172 ;;검색하려면 while !(color="0xFACBAE") PixelGetColor, color, 1451, 172 click, 1451, 172

send ^v sleep 1000

PixelGetColor, color, 842, 940 while (color="0xFFFFFFFF") PixelGetColor, color, 842, 940

PixelGetColor, color, 825, 984 while !(color="0x242120") PixelGetColor, color, 825, 984

sleep 1500

mousemove 492, 963 PixelGetColor, color, 492, 963 while (color="0xFFFFFFFF") PixelGetColor, color, 492, 963 click, 492, 963

mousemove 1368, 687 PixelGetColor, color, 1368, 687 while !(color="0xCA661B") PixelGetColor, color, 1368, 687 click 1368, 687

sleep 1000 send !p sleep 1000 send x

return ^f6:: ;; 영문 책읽기 sleep 300 send +o sleep 100 send https://lens.google.com/search?p={enter}

mousemove 1662, 33 PixelGetColor, color, 1662, 33 while !(color="0x242120") PixelGetColor, color, 1662, 33 click, 1662, 33

PixelGetColor, color, 1451, 172 ;;검색하려면 while !(color="0xFACBAE") PixelGetColor, color, 1451, 172 click, 1451, 172

send ^v sleep 1000

PixelGetColor, color, 842, 940 while (color="0xFFFFFFFF") PixelGetColor, color, 842, 940

PixelGetColor, color, 825, 984 while !(color="0x242120") PixelGetColor, color, 825, 984

sleep 1500

mousemove 492, 963 PixelGetColor, color, 492, 963 while (color="0xFFFFFFFF") PixelGetColor, color, 492, 963 click, 492, 963

mousemove 1368, 687 PixelGetColor, color, 1368, 687 while !(color="0xCA661B") PixelGetColor, color, 1368, 687 click 1368, 687

sleep 1000 send !p

mousemove, 1280, 172 PixelGetColor, color, 1280, 172 while !(color="0xEE8D51") PixelGetColor, color, 1280, 172 click, 1280, 172

return

rudyannn commented 1 year ago

https://youtu.be/XwR1SVppp2k?si=nQvHpH9LPPXX-5Hq