代码拉取完成,页面将自动刷新
同步操作将从 linxinhong/QuickZ 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
SendMode Input
SetWorkingDir %A_ScriptDir%
SetKeyDelay, -1
SetControlDelay,-1
DetectHiddenWindows On
CoordMode, Mouse, Screen
quickz.Init()
quickz.OnWMCopyData()
quickz.LoadPlugins()
quickz.InitPlugins()
menuz.config({cliptimeout: 400
,onGetWin: ""
,onGetClip: "myGetClip"})
menuz.SetFilter("tt", "texttype")
menuz.SetCommand("sendtext", "sendtext")
menuz.SetCommand("sendenter", "sendenter")
menuz.SetCommand("copynamenoext", "copynamenoext")
menuz.settag("test", "tagtest")
menuz.settag("box", "tagbox")
menuz.setdynamic("firstmenu", objBindMethod(menuz, "firstmenu"))
; gesturez.add(9, ObjBindMethod(menuz, "Active"))
; gesturez.add("c", "calc", "Notepad")
; gesturez.add("n", "notepad")
; gesturez.add("u", "down")
return
tagtest(env, tag) {
msgbox % tag ; {test: some}
msgbox % env.file.name
}
tagbox(env, tag) {
if (InStr(tag, "folder")) {
FileSelectFolder, folderPath, , , 选择文件夹
return folderPath
}
if (InStr(tag, "file")) {
FileSelectFile, filePath, , , 选择文件
if (not StrLen(filePath)) {
env.break()
}
return filePath
}
}
sendtext(env, item) {
WinActivate, % "ahk_id " env.winHwnd
SendRaw % menuz.ReplaceTag(item.param)
env.break()
}
sendenter(env, item) {
WinActivate, % "ahk_id " env.winHwnd
Send {enter}
}
copynamenoext(env, item) {
clipboard := env.file.namenoext
}
myGetClip(env, event) {
if (event == "GetClip") {
if (env.winExe == "gvim.exe") {
clipBackup := ClipboardAll
Clipboard := ""
SendRaw "+y
ClipWait, % env.config.ClipTimeOut, 1
env.isWin := ErrorLevel
clipData := Clipboard
env.isText := true
env.text := clipData
env.isGetClip := true
}
}
}
filtertest(env, filter) {
msgbox filter> %filter%
return true
}
exectest(env, item) {
msgbox exec
}
TextType(env, filter) {
textTypeName := ""
textRegexList := {url: "(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"}
for textType, TypeRegex in textRegexList
{
if (RegExMatch(env.text, TypeRegex)) {
textTypeName := textType
break
}
}
return env.TestRule(filter, textTypeName)
}
return
; gui, add, edit, w200 h20 , %tomatch%
; gui, add, edit, w200 h20 ,%equation%
; gui, add, button, default gRegex,正则式
; gui, show
; regex:
; GuiControlGet, match, , edit1
; GuiControlGet, string, , edit2
; result := RegExMatch(string, match, m)
; msgbox % result "`n" m
return
!x::reload
!q::menuz.Active()
RButton::
gesturez.Recognize()
return
#include lib\class_vimd.ahk
#include lib\class_menuz.ahk
#include lib\class_gesturez.ahk
#include lib\class_tesseract.ahk
#include lib\class_quickz.ahk
#include lib\class_json.ahk
#include lib\class_easyini.ahk
#include lib\pum.ahk
#include lib\pum_api.ahk
#include lib\struct.ahk
#include lib\sizeof.ahk
#include lib\yaml.ahk
#include lib\Path_API.ahk
#include *i user\include.ahk
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。