autohotkey腳本-支持常用操作

autohotkey腳本-支持常用操作

;Capslock用作修飾鍵
#inputlevel,2
$CapsLock::F20
#inputlevel,1
;單按Capslock切換大小寫狀態
F20::
capstate :=GetKeyState("capslock","T")
if capstate=0
{
SetCapsLockState,On
}
else
{
SetCapsLockState,off
}
return

;;移動光標
  ;;光標左移
  $!j::
  Send {Left}
  return

  ;;光標右移
  $!l::
  Send {Right}
  return

  ;;光標上移
  $!i::
  Send {Up}
  return

  ;;光標下移
  $!k::
  Send {Down}
  return

  ;;光標移動到行首home
  F20 & j::
  Send {Home}
  return

  ;;光標移動到行末end
  F20 & l::
  Send {End}
  return

  ;;向左選擇行
  F20 & u::
  Send +{Home}
  return

  ;;向右選擇行
  F20 & o::
  Send +{End}
  return

  ;;向左選擇一格
  !u::
  Send +{Left}
  return

  ;;向右選擇一格
  !o::
  Send +{Right}
  return

 ;;複製
  !1::
  Send ^c
  return

 ;;粘貼
  !2::
  Send ^v
  return

 ;;保存
  !`::
  Send ^s
  return

 ;;最大化eclipse編碼窗口
  !m::
  Send ^m
  return

 ;;eclipse自動補全
  !q::
  Send !/
  return

 ;;最小化窗口(失敗)
  ;;!9::
  ;;Send ! & Space
  ;;return

 ;;鼠標第四按鈕
  XButton1::
  Send +{Home}
  return

;;發送sql
  !9::
  Send select * from ;
  return

;;發送sql
  !0::
  Send commit; ;
  return

;;手打粘貼
  ;;!8::
  ;;Send %clipboard% ;
  ;;return

;;發送`符號
  ^`::
  Send ``;
  return

;;Ctrl+F
  !3::
  Send ^f
  return

;;ctrl
  NumpadSub::^
  return

;;關閉顯示器
#o::
Sleep 1500
SendMessage, 0x112, 0xF170, 2,, Program Manager
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章