侧键功能拓展

鼠标有两个侧键,有时候喜欢一只手放在桌子下面用电脑,此时这个鼠标就承载了所有的上网按键需求,两个侧键仅仅是映射一个功能就太不够用了,做了一个可以切换侧键功能的脚本,比如在看视频的时候换成m和n,看小说的时候换成翻页,在编辑器之类软件界里面变成home或者end,之类的,更多的需求可以自行探索

gui +E0x08000000 +AlwaysOnTop 
gui Destroy
gui font, s12, Verdana 
gui Add, Text,,侧键1
Gui add, DropDownList, v侧键1 g读入功能 x+5,copy|paste|PgUp|PgDn|cPgDn|cPgUp|up||down|Home|end|chome|cend|mpv大跳|mpv小跳|downenter|upenter|tc显示大小
gui Add, Text,xs,侧键2
Gui add, DropDownList, v侧键2 g读入功能 x+5, copy|paste|PgUp|PgDn|cPgDn|cPgUp|up|down||Home|end|chome|cend|mpv大跳|mpv小跳|downenter|upenter|tc显示大小
gui add,Button,greload,Reload
Gui Show,,侧键切换by hzn
return
Reload:
Reload
return

XButton1::
XButtonfunc(侧键1)
return
XButton2::
XButtonfunc(侧键2)
return



读入功能:
Gui submit, NoHide
return



XButtonfunc(which){
  switch which
  {
  case copy:
  copy()
  case paste:
  SendInput,^v
  case PgUp:
  SendInput,{PgUp}
  case PgDn:
  SendInput,{PgDn}
  case Up:
  SendInput,{up}
  case down:
  SendInput,{down}
  case Home:
  SendInput,{Home}
  case end:
  SendInput,{end}
  case chome:
  SendInput,^{Home}
  case cend:
  SendInput,^{end}
  case cPgUp:
  SendInput,^{PgUp}
  case cPgDn:
  SendInput,^{PgDn}
  case mpv大跳:
  SendInput,n
  case mpv小跳:
  SendInput,m
  case downenter:
  SendInput,{down}{Enter}
  case Upenter:
  SendInput,{up}{Enter}
  case tc显示大小:
  SendInput,!+{Enter}

  }

}

Copy(){
Clipboard:=""
Send,^c
ClipWait,1,1
return Clipboard
}

侧键功能拓展

给TA捐赠
共{{data.count}}人
人已捐赠
其他应用

简易脚本管理器

2022-7-27 11:29:00

其他

监控坚果云同步文件夹报警程序

2022-7-28 16:44:02

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
有新私信 私信列表
搜索