Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM ################################################################
- REM 2024年7月5日更新,采用全新流程思路实现CMD+KeymousGo来完成整套自动化打开网页提问流程,更新前后使用方法保持一致
- REM 新增辅助脚本停止软件,如果想要脚本在执行时可以手动中止,可以下载下方程序,放到和脚本同一目录,然后去掉下方「REM Start 监听.exe 」代码开头的REM
- REM 监听软件下载地址: https://url67.ctfile.com/f/14869667-1317307570-e7417e?p=kyon (访问密码: kyon)
- REM 减少文件写入、删除操作,提高代码执行效率
- REM 针对于Kimi、腾讯元宝这类打开比较慢的GPT,全网独家思路,仅依靠键盘自动化操作来判断页面是否完完整加载,再进而执行后续操作
- REM 如果仍然需要旧版代码,可以在这这里下载:https://url67.ctfile.com/f/14869667-1317494035-da5782?p=kyon (访问密码: kyon)
- REM 如果你想对每个网站对进行网站加载检测,再执行自动化操作,可以下载这个版本的脚本文件:https://url67.ctfile.com/f/14869667-1319932070-c905be?p=kyon (访问密码: kyon)
- REM ################################################################
- if "%~1"=="" (
- echo 未输入内容,将提问剪贴板
- ) else (
- echo %~1| clip
- )
- REM start 监听.exe
- for /f "delims=" %%i in ('powershell -Command "Get-Clipboard"') do set "clipboardContent=%%i"
- echo %clipboardContent%|clip
- REM keymousGo全选复制脚本
- if not exist "C:\copy.txt" (
- echo [[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[65,"A",0]],[100,"EK","key up",[65,"A",0]],[100,"EK","key up",[162,"Lcontrol",0]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[67,"C",0]],[100,"EK","key up",[67,"C",0]],[100,"EK","key up",[162,"Lcontrol",0]]] > "C:\copy.txt"
- )
- REM keymousGo点击全选复制脚本
- if not exist "C:\clickcopy.txt" (
- echo [[200,"EM","mouse left down",[1700,880]],[200,"EM","mouse left up",[-1,-1]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[65,"A",0]],[100,"EK","key up",[65,"A",0]],[100,"EK","key up",[162,"Lcontrol",0]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[67,"C",0]],[100,"EK","key up",[67,"C",0]],[100,"EK","key up",[162,"Lcontrol",0]]] > "C:\clickcopy.txt"
- )
- REM ———————————————————————————————
- REM 百度文心一言
- explorer.exe "https://yiyan.baidu.com/?q=%clipboardContent%"
- REM ———————————————————————————————
- REM 阿里通义千问
- echo [[500,"EM","mouse left down",[1000,930]],[100,"EM","mouse left up",[-1,-1]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[86,"V",0]],[100,"EK","key up",[86,"V",0]],[100,"EK","key up",[162,"Lcontrol",0]],[100,"EK","key down",[13,"Return",0]],[100,"EK","key up",[13,"Return",0]]] > "C:\script.txt"
- explorer.exe "https://qianwen.aliyun.com/"
- KeymouseGo.exe "C:\script.txt"
- REM ———————————————————————————————
- REM 智谱清言
- echo [[500,"EM","mouse left down",[1000,930]],[100,"EM","mouse left up",[-1,-1]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[86,"V",0]],[100,"EK","key up",[86,"V",0]],[100,"EK","key up",[162,"Lcontrol",0]],[100,"EK","key down",[13,"Return",0]],[100,"EK","key up",[13,"Return",0]]] > "C:\script.txt"
- explorer.exe "https://www.chatglm.cn/main/alltoolsdetail"
- KeymouseGo.exe "C:\script.txt"
- REM ———————————————————————————————
- REM 抖音豆包
- echo [[500,"EK","key down",[162,"Lcontrol",0]],[200,"EK","key down",[86,"V",0]],[100,"EK","key up",[86,"V",0]],[100,"EK","key up",[162,"Lcontrol",0]],[500,"EK","key down",[13,"Return",0]],[100,"EK","key up",[13,"Return",0]]] > "C:\script.txt"
- explorer.exe "https://www.doubao.com/chat/"
- KeymouseGo.exe "C:\script.txt"
- REM ———————————————————————————————
- REM 讯飞星火
- echo [[500,"EM","mouse left down",[1300,930]],[100,"EM","mouse left up",[-1,-1]],[100,"EK","key down",[162,"Lcontrol",0]],[200,"EK","key down",[86,"V",0]],[100,"EK","key up",[86,"V",0]],[100,"EK","key up",[162,"Lcontrol",0]],[100,"EM","mouse left down",[-1,-1]],[100,"EM","mouse left up",[-1,-1]]] > "C:\script.txt"
- explorer.exe "https://xinghuo.xfyun.cn/desk"
- KeymouseGo.exe "C:\script.txt"
- REM ———————————————————————————————
- REM 月之暗面-KIMICHAT
- explorer.exe "https://kimi.moonshot.cn/"
- REM 根据网页内容字判断网页是否完整加载(如果后期网页有变化自行修改下方文字)
- set searchString=快来解锁下这些用法
- set clipCheck=false
- REM 整个代码中的checkClipboard序号都不能重复
- :checkClipboard1
- if "%clipCheck%"=="true" (
- echo %clipboardContent%|clip
- echo [[100,"EM","mouse left down",[1000,500]],[100,"EM","mouse left up",[-1,-1]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[86,"V",0]],[100,"EK","key up",[86,"V",0]],[100,"EK","key up",[162,"Lcontrol",0]],[100,"EK","key down",[13,"Return",0]],[100,"EK","key up",[13,"Return",0]]] > "C:\script.txt"
- KeymouseGo.exe "C:\script.txt"
- ) else (
- KeymouseGo.exe "C:\clickcopy.txt"
- for /f "delims=" %%i in ('powershell -nologo -command "$cb = Get-Clipboard; $search = '%searchString%'; if($cb -match $search) { 'true' } else { 'false' }"') do (set "clipCheck=%%i")
- REM 循环执行checkClipboard1(要与上面对应)
- goto checkClipboard1
- )
- REM ———————————————————————————————
- REM 腾讯混元
- explorer.exe "https://yuanbao.tencent.com/chat/"
- REM 根据网页内容字判断网页是否完整加载(如果后期网页有变化自行修改下方文字)
- set searchString=腾讯元宝隐私政策
- set clipCheck=false
- REM 整个代码中的checkClipboard序号都不能重复
- :checkClipboard2
- if "%clipCheck%"=="true" (
- echo %clipboardContent%|clip
- echo [[500,"EM","mouse left down",[630,960]],[300,"EM","mouse left up",[-1,-1]],[100,"EK","key down",[162,"Lcontrol",0]],[100,"EK","key down",[86,"V",0]],[100,"EK","key up",[86,"V",0]],[100,"EK","key up",[162,"Lcontrol",0]],[500,"EK","key down",[13,"Return",0]],[100,"EK","key up",[13,"Return",0]]] > "C:\script.txt"
- KeymouseGo.exe "C:\script.txt"
- ) else (
- KeymouseGo.exe "C:\copy.txt"
- for /f "delims=" %%i in ('powershell -nologo -command "$cb = Get-Clipboard; $search = '%searchString%'; if($cb -match $search) { 'true' } else { 'false' }"') do (set "clipCheck=%%i")
- REM 循环执行checkClipboard2(要与上面对应)
- goto checkClipboard2
- )
- taskkill /im 监听.exe /f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement