{"id":19577540,"url":"https://github.com/yingdev/wgestures2-bugs","last_synced_at":"2025-10-30T05:19:11.423Z","repository":{"id":41107796,"uuid":"322505564","full_name":"yingDev/WGestures2-bugs","owner":"yingDev","description":"WGestures 2 意见反馈","archived":false,"fork":false,"pushed_at":"2021-10-22T15:02:16.000Z","size":61963,"stargazers_count":38,"open_issues_count":295,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-29T10:26:19.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yingDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-18T06:09:49.000Z","updated_at":"2025-07-01T13:00:05.000Z","dependencies_parsed_at":"2022-07-12T18:17:24.045Z","dependency_job_id":null,"html_url":"https://github.com/yingDev/WGestures2-bugs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yingDev/WGestures2-bugs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingDev%2FWGestures2-bugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingDev%2FWGestures2-bugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingDev%2FWGestures2-bugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingDev%2FWGestures2-bugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingDev","download_url":"https://codeload.github.com/yingDev/WGestures2-bugs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingDev%2FWGestures2-bugs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281748750,"owners_count":26554835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T07:07:00.925Z","updated_at":"2025-10-30T05:19:11.392Z","avatar_url":"https://github.com/yingDev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 问题反馈 🐛\n欢迎 [创建 Issue](https://github.com/yingDev/WGestures2-mac-bugs/issues/new) \u003cbr\u003e\n非 Github 用户? 发送邮件至 [me@yingdev.com](mailto:me@yingdev.com) \u003cbr\u003e 或 微博[@Nozama](https://weibo.com/u/2361952611)\n我会尽量提供帮助和解决问题. \n\n\n# 常用功能实现参考\n### 复制文件为路径\nWG2 按键序列可以模拟右键点击, 结合延迟时间, 可以容易地实现操作自动化\n1. 录入一个不包含轨迹的手势, 比如 `◑A`  (鼠标右键+键盘A)\n1. 选择 \"按键序列\", 编辑代码 `+{MOUSE_RIGHT}{SLEEP 50}aa{ENTER}`. (注意： 两次 a 是因为我的电脑上有 Rar，第二次才会选中 “复制为路径” 菜单项, 根据你的实际情况做出调整）\n\n### 打开文件/程序/网址\nWG2 支持 Cmd 脚本 和 Lua 脚本, 都可以用于打开文件/程序等:\n* Cmd 脚本实现\n```bat\nexplorer \"https://yingdev.com\" \nREM 或者打开文件 \"C:\\Windows\\notepad.exe\"\n```\n* Lua 脚本实现\n```lua\nfunction wgAction(pos,wid,pid,exe,title,mode)\n  WG.Open(\"https://yingdev.com\")\n  --或者打开文件 WG.Open(\"C:\\\\Windows\\\\notepad.exe\")\nend\n```\n\n### 使用自定义的 浏览器和搜索引擎 搜索内容\n使用 Lua 脚本:\n```lua\nfunction wgAction(pos,wid,pid,exe,title,mode)\n  WG.SendKeys('^c')\n  WG.Sleep(100)\n  local txt = WG.GetClipboardText()\n \n  -- 浏览器\n  local chrome = \"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\"\n  local edge = \"C:\\\\Program Files (x86)\\\\Microsoft\\\\Edge\\\\Application\\\\msedge.exe\"\n  local firefox = \"C:\\\\Program Files\\\\Mozilla Firefox\\\\firefox.exe\"\n  \n  -- 搜索引擎\n  local baidu = 'https://baidu.com/s?wd='\n  local google = 'https://google.com/search?q='\n  local bing = 'https://bing.com/search?q='\n  \n  -- 替换下方的变量来使用其它组合\n  WG.Run(edge, bing..txt)\nend\n```\n\n### 调整显示器亮度\nWG2 提供了 Lua 接口 `WG.SetBrightness(pos, percent_or_delta, isDelta)`。 注意：并非所有显示其都支持通过软件控制亮度。\n* `pos` 点坐标，用于确定 “包含该点的那个显示器”，对于 WG2 而言，基本上就是手势起点坐标\n* `percent_or_delta` 是一个数字。如果 `isDelta` 为 true （默认），则表示为亮度增量%，比如 +10 或 -10。反之为 0~100的亮度%.\n在 Lua 脚本示例中, 你可以找到以下代码:\n```lua\n--这段代码使用鼠标手势起点 pos 来决定控制哪个显示器, 然后使亮度增加 5 个百分比。 如果成功，在屏幕上显示调整后的亮度值。\nfunction wgAction(pos,wid,pid,exe,title,mode)\n  local result = WG.SetBrightness(pos, 5) --or -5\n  if(result \u003e= 0) then\n    WG.ShowToast('☀'..result..'%', 1000);\n  end\nend\n```\n\n\u003cbr\u003e\u003cbr\u003e\n[YingDev.com](https://www.yingdev.com/projects/wgestures2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingdev%2Fwgestures2-bugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyingdev%2Fwgestures2-bugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingdev%2Fwgestures2-bugs/lists"}