凯发k8ag旗舰厅真人平台
  • 新浪微博:
按键精灵电脑版
立即下载

软件版本:2014.06
软件大小:22.9m
更新时间:03-18

按键精灵安卓版
立即下载

软件版本:3.7.1
软件大小:46.2m
更新时间:03-10

按键精灵ios版
立即下载

软件版本:1.7.9
软件大小:29.2m
更新时间:03-06

软件版本:3.7.7
软件大小:262m
更新时间:08-06

登录 后使用快捷导航
没有帐号? 注册

登录 注册
返回列表 1 / 66
发新话题

【插件】神梦填表插件 smweb.dll,【ie】【谷歌】【网页】【元素】{v1.0.0.0}[2019.4.26] -凯发k8ag旗舰厅真人平台

1#
神梦填表插件com版出来了!

支持 ie、谷歌浏览器

支持跨域夸框架穿透填表

【元素智能定位】

【上传文件】

【处理弹窗】

【滑动验证码】

【执行js】




插件预览







演示例子






插件例子
  1. '【神梦填表插件 smweb.dll 演示按键例子】
  2. '作者:神梦无痕
  3. 'qq:1042207232
  4. 'q群:624655641

  5. '插件版本号
  6. traceprint "插件版本号:" & plugin.smweb.ver()


  7. traceprint("**********************【神梦填表插件 smweb.dll 演示按键例子】**********************")
  8. //生成插件帮助文档
  9. traceprint(plugin.smweb.about())

  10. //初始化插件
  11. call plugin.smweb.init()


  12. 绑定句柄数组 = array("ie.exe", "chrome.exe")
  13. for iw = 0 to ubound(绑定句柄数组)
  14.     //绑定浏览器
  15.     tips("正在绑定浏览器:" & 绑定句柄数组(iw)) : traceprint(运行状态)
  16.     if plugin.smweb.bind(绑定句柄数组(iw)) = false then
  17.         msgbox "出错,绑定浏览器失败!"
  18.         exitscript
  19.     end if
  20.     
  21.     
  22.     tips("打开 smweb 测试页面") : traceprint(运行状态)
  23.     call plugin.smweb.tabgo("http://127.0.0.1:8008/smweb.html")
  24.     call plugin.smweb.tabisready(30) '判断网页是否加载完毕
  25.     delay(2000)
  26.     
  27.     
  28.     '网页截图
  29.     tips("【网页截图】:截取区域 0, 0, 400, 200 范围图像保存到文件 c:\1.png") : traceprint(运行状态)
  30.     call plugin.smweb.tabsnapshot(0, 0, 400, 200, "c:\1.png")
  31.     delay(2000)
  32.     
  33.     
  34.     '【预处理弹窗】:提前为弹出窗口做准备(点击确定按钮)
  35.     call plugin.smweb.tabgo("#tabpredialog"):delay(1000)
  36.     tips("【预处理弹窗】:提前为弹出窗口做准备(三个连续弹窗,需要点击三个按钮:true=确定;false=取消)") : traceprint(运行状态)
  37.     call plugin.smweb.tabpredialog("神梦无痕", "true|false|true")
  38.     '点击按钮,弹出窗口
  39.     tips("点击【无返回弹窗】") : traceprint(运行状态)
  40.     call plugin.smweb.htmlclick("#mypredialog_alert")
  41.     tips("点击【有返回值弹窗】") : traceprint(运行状态)
  42.     call plugin.smweb.htmlclick("//*[@id='mypredialog_confirm']")
  43.     tips("点击【可输入内容弹窗】") : traceprint(运行状态)
  44.     call plugin.smweb.htmlclick("id:mypredialog_prompt")
  45.     '获取弹窗内容
  46.     tips("【获取弹窗内容】:" & plugin.smweb.tabgetdialog()) : traceprint(运行状态)
  47.     delay (2000)
  48.     
  49.     
  50.     '元素点击
  51.     call plugin.smweb.tabgo("#htmlclick"):delay(1000)
  52.     tips("【点击元素】:" & plugin.smweb.htmlclick("id:myclick")) : traceprint(运行状态)
  53.     delay(1000)
  54.     
  55.     
  56.     '输入文本内容
  57.     call plugin.smweb.tabgo("#htmlinput"):delay(1000)
  58.     tips("【输入框】:神梦无痕") : traceprint(运行状态)
  59.     call plugin.smweb.htmlinput("神梦无痕", "#myinput")
  60.     delay(1000)
  61.     
  62.     
  63.     '勾选单/复选框
  64.     call plugin.smweb.tabgo("#htmlcheck"):delay(1000)
  65.     tips("【单选框】:勾选") : traceprint(运行状态)
  66.     call plugin.smweb.htmlcheck(true, "[id='myradio']")
  67.     tips("【复选框】:勾选") : traceprint(运行状态)
  68.     call plugin.smweb.htmlcheck(true, "//*[@id='mycheck']")
  69.     delay(1000)
  70.     
  71.     
  72.     '设置下拉框
  73.     call plugin.smweb.tabgo("#htmlselect"):delay(1000)
  74.     tips("【下拉框】:香蕉") : traceprint(运行状态)
  75.     call plugin.smweb.htmlselect("香蕉", "id:myselect")
  76.     delay(1000)
  77.     
  78.     
  79.     '设置元素信息
  80.     call plugin.smweb.tabgo("#htmlset"):delay(1000)
  81.     tips("【设置信息】:value") : traceprint(运行状态)
  82.     call plugin.smweb.htmlset("value", "【作者】:神梦无痕", "id:myset")
  83.     delay(1000)
  84.     tips("【设置信息】:name") : traceprint(运行状态)
  85.     call plugin.smweb.htmlset("name", "qq_1042207232", "id:myset")
  86.     delay(1000)
  87.     
  88.     
  89.     '获取元素信息
  90.     tips("【获取信息】:value") : traceprint(运行状态)
  91.     tips ("      :" & plugin.smweb.htmlget("value", "id:myset")) : traceprint (运行状态)
  92.     delay(1000)
  93.     tips("【获取信息】:outerhtml") : traceprint(运行状态)
  94.     tips("      :" & plugin.smweb.htmlget("outerhtml", "id:myset")) : traceprint(运行状态)
  95.     delay(1000)
  96.     
  97.     
  98.     '滚动到指定元素
  99.     call plugin.smweb.tabgo("#htmlscroll"):delay(2000)
  100.     tips("【滚动定位】:" & plugin.smweb.htmlscroll("name:htmlhover")) : traceprint(运行状态)
  101.     delay(2000)
  102.     
  103.     
  104.     '鼠标在元素上悬停
  105.     tips("【元素悬停】:" & plugin.smweb.htmlhover("#myhover")) : traceprint(运行状态)
  106.     delay(1000)
  107.     
  108.     
  109.     '滑动验证码
  110.     call plugin.smweb.tabgo("#htmlswipe"):delay(1000)
  111.     tips("【滑动验证】:" & plugin.smweb.htmlswipe(128, 420, 400, 420, "#swipe_btn")) : traceprint(运行状态)
  112.     delay(1000)
  113.     
  114.     
  115.     
  116.     '执行元素事件
  117.     call plugin.smweb.tabgo("#htmlevent"):delay(1000)
  118.     tips("【执行事件】:鼠标左键按下") : traceprint(运行状态)
  119.     call plugin.smweb.htmlevent("mousedown", "#myevent")
  120.     tips("【执行事件】:输入框改变") : traceprint(运行状态)
  121.     call plugin.smweb.htmlevent("change", "#myevent")
  122.     delay(1000)
  123.     
  124.     
  125.     '上传图片文件
  126.     call plugin.smweb.tabgo("#htmlinputfile") : delay(1000)
  127.     tips("【图片路径】:c:\1.png") : traceprint(运行状态)
  128.     call plugin.smweb.htmlinputfile("c:\1.png", "id:myinputfile")
  129.     delay(1000)
  130.     
  131.     
  132.     '添加/还原元素边框
  133.     call plugin.smweb.tabgo("#htmlborder") : delay(1000)
  134.     tips("【添加边框】:" & plugin.smweb.htmlborder(true, "//*[@id='myborder']")) : traceprint(运行状态)
  135.     delay(1000)
  136.     tips("【还原边框】:" & plugin.smweb.htmlborder(false, "//*[@id='myborder']")) : traceprint(运行状态)
  137.     delay(1000)
  138.     
  139.     
  140.     '启用/禁用元素
  141.     call plugin.smweb.tabgo("#htmlenabled") : delay(1000)
  142.     tips("【禁用元素】:" & plugin.smweb.htmlenabled(false, "#myenabled")) : traceprint(运行状态)
  143.     delay(1000)
  144.     tips("【启用元素】:" & plugin.smweb.htmlenabled(true, "#myenabled")) : traceprint(运行状态)
  145.     delay(1000)
  146.     
  147.     
  148.     '显示/隐藏元素
  149.     call plugin.smweb.tabgo("#htmlvisible") : delay(1000)
  150.     tips("【隐藏元素】:" & plugin.smweb.htmlvisible(false, "id:myvisible")) : traceprint(运行状态)
  151.     delay(1000)
  152.     tips("【显示元素】:" & plugin.smweb.htmlvisible(true, "id:myvisible")) : traceprint(运行状态)
  153.     delay(1000)
  154.     
  155.     
  156.     '判断元素是否启用
  157.     call plugin.smweb.tabgo("#htmlisenabled") : delay(1000)
  158.     tips("【是否启用】:" & plugin.smweb.htmlisenabled("[id='myisenabled']")) : traceprint(运行状态)
  159.     delay(1000)
  160.     
  161.     
  162.     '判断元素是否显示
  163.     call plugin.smweb.tabgo("#htmlisvisible") : delay(1000)
  164.     tips("【是否显示】:" & plugin.smweb.htmlisvisible("[id='myisvisible']")) : traceprint(运行状态)
  165.     delay(1000)
  166.     
  167.     
  168.     '保存验证码图片
  169.     call plugin.smweb.tabgo("#htmlimage") : delay (1000)
  170.     tips ("【保存验证码】:c:\yzm.jpg") : traceprint (运行状态)
  171.     call plugin.smweb.htmlimage("c:\yzm.jpg", "id:myimage")
  172.     delay (1000)
  173.     
  174.     
  175.     '获取元素坐标
  176.     call plugin.smweb.tabgo("#htmloffset") : delay (1000)
  177.     tips ("【元素坐标】:" & plugin.smweb.htmloffset("id:myoffset")) : traceprint (运行状态)
  178.     delay (1000)
  179.     
  180.     
  181.     '获取 css 选择器
  182.     call plugin.smweb.tabgo("#htmlreadcss") : delay(1000)
  183.     tips("【css 选择器】:" & plugin.smweb.htmlreadcss("body > table:nth-child(71) > tbody > tr:nth-child(6) > td > input")) : traceprint(运行状态)
  184.     delay(1000)
  185.     
  186.     
  187.     '获取 xpath 选择器
  188.     call plugin.smweb.tabgo("#htmlreadxpath") : delay(1000)
  189.     tips("【xpath选择器】:" & plugin.smweb.htmlreadxpath("/html/body/table[72]/tbody/tr[6]/td/input")) : traceprint(运行状态)
  190.     delay(1000)
  191.     
  192.     
  193.     '获取 wqm 选择器
  194.     call plugin.smweb.tabgo("#htmlreadwqm") : delay(1000)
  195.     tips("【wqm 选择器】:" & plugin.smweb.htmlreadwqm("tag:input&index:29")) : traceprint(运行状态)
  196.     delay(1000)
  197.     
  198.     
  199.     '设置表格内容
  200.     call plugin.smweb.tabgo("#mytable") : delay(1000)
  201.     tips("【设置1行一列】:神梦无痕") : traceprint(运行状态)
  202.     call plugin.smweb.htmltable(0, 1, 1, "神梦无痕", "#mytable")
  203.     delay(1000)
  204.     tips("【设置2行一列】:小雪") : traceprint(运行状态)
  205.     call plugin.smweb.htmltable(0, 2, 1, "小雪", "//*[@id='mytable']")
  206.     delay(1000)
  207.     tips("【设置3行二列】:女") : traceprint(运行状态)
  208.     call plugin.smweb.htmltable(0, 3, 2, "女", "id:mytable")
  209.     delay(1000)
  210.     
  211.     
  212.     '获取表格内容
  213.     call plugin.smweb.tabgo("#mytable") : delay(1000)
  214.     tips ("【获取1行一列】:" & plugin.smweb.htmlgettable(0, 1, 1, "#mytable")) : traceprint (运行状态)
  215.     delay(1000)
  216.     tips ("【获取2行一列】:" & plugin.smweb.htmlgettable(0, 2, 1, "//*[@id='mytable']")) : traceprint (运行状态)
  217.     delay(1000)
  218.     tips("【获取3行二列】:" & plugin.smweb.htmlgettable(0, 3, 2, "id:mytable")) : traceprint(运行状态)
  219.     delay(1000)
  220.     
  221.     
  222.     '获取列表内容
  223.     call plugin.smweb.tabgo("#htmlgetlist") : delay(1000)
  224.     tips ("【获取索引 0 内容】:" & plugin.smweb.htmlgetlist(0, "#mygetlist")) : traceprint (运行状态)
  225.     delay(1000)
  226.     tips ("【获取索引 1 内容】:" & plugin.smweb.htmlgetlist(1, "//*[@id='mygetlist']")) : traceprint (运行状态)
  227.     delay(1000)
  228.     tips("【获取索引 2 内容】:" & plugin.smweb.htmlgetlist(2, "id:mygetlist")) : traceprint(运行状态)
  229.     delay (1000)
  230.     
  231.     
  232.     '退出浏览器
  233.     call plugin.smweb.tabgo("#quit") : delay(1000)
  234.     tips("正在退出浏览器!") : traceprint(运行状态)
  235.     call plugin.smweb.quit()
  236.     delay (1000)
  237. next
  238. msgbox "脚本执行完毕!"

  239. sub tips(提示)
  240.     运行状态 = 提示
  241.     call plugin.msg.tips(提示)
  242. end sub
复制代码



插件下载
qq 群号:
百度网盘:
提取码(回复可见):
***** 该内容需您才可浏览 *****

点评

神梦科技  【神梦教程】填表实战 - 按键精灵讨论自动签到[源码] http://bbs.anjian.com/showtopic-698053-1.aspx  发表于 2022/3/4 23:03:51

最后编辑神梦科技 最后编辑于 2022-03-12 17:52:54
本主题由 超级版主 瑞祥幽冥狼 于 2023/5/30 14:19:56 执行 审核帖子 操作
2#
看看

3#

4#
第一次使用沈梦插件

5#
非常好啊

6#
很好,正需要

7#
学习

8#
学习。。。。。。。。。。。。。。。。

9#
12312

10#
这么妞 13

11#
谢谢

12#

学习

学习

13#
66666666666666666

14#

15#
该用户帖子内容已被屏蔽

16#
该用户帖子内容已被屏蔽

17#
感谢,太感动了~

18#

非常好,终于找到网页插件

非常好,终于找到网页插件

19#
66666666666666666666666

20#
看起来比之前的厉害多了!!!

返回列表 1 / 66
发新话题
网站地图