AutoHotKey

ahk toggle

나도초딩 2022. 12. 4.

토글 Win+n 

# : 윈도우키

#if : 조건 만족시, 아래 실행

#n:: 
  If  (NSet = 1 ) 
  { 
    NSet = 0
  } 
  else 
  {  
    NSet = 1
  }
return

#if NSet = 1 ;
{
	u::4
	i::5
	o::6
	j::1
	k::2
	l::3
	m::0
}

 

껐다 켰다

#If GetKeyState("Scrolllock","T") ; Hotkeys below this can only be activated if ScrollLock is On

~~~~~~~

Loop
{
if not GetKeyState("Scrolllock", "T") ; Note that we have to keep this because the #If statement doesn't control the hotkey once it's been activated
break
}
return
#if ; this resets the condition so that all hotkeys below this directive can be activated

누르고


SetCapsLockState, AlwaysOff

#If GetKeyState("CapsLock", "P")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#If

*CapsLock::
KeyWait, CapsLock
IF A_ThisHotkey = *CapsLock
  Send, {Esc}
Return

 

'AutoHotKey' 카테고리의 다른 글

오토핫키 스크립트  (0) 2022.12.07

댓글