Advertisement
axutongxue

一键聚合提问ChatGPT

May 16th, 2024 (edited)
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. @echo off
  2.  
  3. REM ################################################################
  4.  
  5. REM 2024年7月5日更新,采用全新流程思路实现CMD+KeymousGo来完成整套自动化打开网页提问流程,更新前后使用方法保持一致
  6.  
  7. REM 新增辅助脚本停止软件,如果想要脚本在执行时可以手动中止,可以下载下方程序,放到和脚本同一目录,然后去掉下方「REM Start 监听.exe 」代码开头的REM
  8.  
  9. REM 监听软件下载地址: https://url67.ctfile.com/f/14869667-1317307570-e7417e?p=kyon (访问密码: kyon)
  10.  
  11. REM 减少文件写入、删除操作,提高代码执行效率
  12.  
  13. REM 针对于Kimi、腾讯元宝这类打开比较慢的GPT,全网独家思路,仅依靠键盘自动化操作来判断页面是否完完整加载,再进而执行后续操作
  14.  
  15. REM 如果仍然需要旧版代码,可以在这这里下载:https://url67.ctfile.com/f/14869667-1317494035-da5782?p=kyon (访问密码: kyon)
  16.  
  17. REM 如果你想对每个网站对进行网站加载检测,再执行自动化操作,可以下载这个版本的脚本文件:https://url67.ctfile.com/f/14869667-1319932070-c905be?p=kyon (访问密码: kyon)
  18.  
  19. REM ################################################################
  20.  
  21. if "%~1"=="" (
  22. echo 未输入内容,将提问剪贴板
  23. ) else (
  24. echo %~1| clip
  25. )
  26.  
  27. REM start 监听.exe
  28.  
  29. for /f "delims=" %%i in ('powershell -Command "Get-Clipboard"') do set "clipboardContent=%%i"
  30.  
  31. echo %clipboardContent%|clip
  32.  
  33. REM keymousGo全选复制脚本
  34. if not exist "C:\copy.txt" (
  35. 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"
  36. )
  37.  
  38. REM keymousGo点击全选复制脚本
  39. if not exist "C:\clickcopy.txt" (
  40. 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"
  41. )
  42.  
  43. REM ———————————————————————————————
  44. REM 百度文心一言
  45.  
  46. explorer.exe "https://yiyan.baidu.com/?q=%clipboardContent%"
  47.  
  48. REM ———————————————————————————————
  49. REM 阿里通义千问
  50.  
  51. 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"
  52. explorer.exe "https://qianwen.aliyun.com/"
  53. KeymouseGo.exe "C:\script.txt"
  54.  
  55. REM ———————————————————————————————
  56. REM 智谱清言
  57.  
  58. 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"
  59. explorer.exe "https://www.chatglm.cn/main/alltoolsdetail"
  60. KeymouseGo.exe "C:\script.txt"
  61.  
  62. REM ———————————————————————————————
  63. REM 抖音豆包
  64.  
  65. 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"
  66. explorer.exe "https://www.doubao.com/chat/"
  67. KeymouseGo.exe "C:\script.txt"
  68.  
  69. REM ———————————————————————————————
  70. REM 讯飞星火
  71.  
  72. 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"
  73. explorer.exe "https://xinghuo.xfyun.cn/desk"
  74. KeymouseGo.exe "C:\script.txt"
  75.  
  76. REM ———————————————————————————————
  77. REM 月之暗面-KIMICHAT
  78.  
  79. explorer.exe "https://kimi.moonshot.cn/"
  80.  
  81. REM 根据网页内容字判断网页是否完整加载(如果后期网页有变化自行修改下方文字)
  82. set searchString=快来解锁下这些用法
  83. set clipCheck=false
  84.  
  85. REM 整个代码中的checkClipboard序号都不能重复
  86. :checkClipboard1
  87.  
  88. if "%clipCheck%"=="true" (
  89. echo %clipboardContent%|clip
  90.  
  91. 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"
  92.  
  93. KeymouseGo.exe "C:\script.txt"
  94.  
  95. ) else (
  96.  
  97. KeymouseGo.exe "C:\clickcopy.txt"
  98. for /f "delims=" %%i in ('powershell -nologo -command "$cb = Get-Clipboard; $search = '%searchString%'; if($cb -match $search) { 'true' } else { 'false' }"') do (set "clipCheck=%%i")
  99.  
  100. REM 循环执行checkClipboard1(要与上面对应)
  101. goto checkClipboard1
  102.  
  103. )
  104.  
  105. REM ———————————————————————————————
  106. REM 腾讯混元
  107.  
  108. explorer.exe "https://yuanbao.tencent.com/chat/"
  109.  
  110. REM 根据网页内容字判断网页是否完整加载(如果后期网页有变化自行修改下方文字)
  111. set searchString=腾讯元宝隐私政策
  112. set clipCheck=false
  113.  
  114. REM 整个代码中的checkClipboard序号都不能重复
  115. :checkClipboard2
  116.  
  117. if "%clipCheck%"=="true" (
  118.  
  119. echo %clipboardContent%|clip
  120.  
  121. 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"
  122. KeymouseGo.exe "C:\script.txt"
  123.  
  124. ) else (
  125.  
  126. KeymouseGo.exe "C:\copy.txt"
  127. for /f "delims=" %%i in ('powershell -nologo -command "$cb = Get-Clipboard; $search = '%searchString%'; if($cb -match $search) { 'true' } else { 'false' }"') do (set "clipCheck=%%i")
  128.  
  129. REM 循环执行checkClipboard2(要与上面对应)
  130. goto checkClipboard2
  131.  
  132. )
  133. taskkill /im 监听.exe /f
  134.  
Tags: bat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement