天天看点

autohotkey脚本-支持常用操作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
           

继续阅读