[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
本帖最后由 pcl_test 于 2016-8-7 20:50 编辑

http://www.bathome.net/redirect. ... 7540&ptid=40921
  1. WSH.echo CreateObject("WScript.Shell").Exec("mshta.exe ""about:<hta:application showintaskbar=no />" &_
  2.         "<title>提示</title><script>window.resizeTo(500, 150);" & _
  3.         "function f(a){document.getElementById('info').innerText=a.value;" & _
  4.         "new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(a.value.replace(/\D+/, ''));" & _
  5.         "setTimeout(function(){window.close()}, 1000)}</script>" & _
  6.         "<body style='text-align:center'><div><font style='color:#FF0000;'>点击其中一个按钮试试</font><br>" & _
  7.         "<input type='button' value='按钮1' onclick='f(this)'>&nbsp;&nbsp;" & _
  8.         "<input type='button' value='按钮2' onclick='f(this)'>&nbsp;&nbsp;" & _
  9.         "<input type='button' value='按钮3' onclick='f(this)'>&nbsp;&nbsp;" & _
  10.         "<input type='button' value='按钮4' onclick='f(this)'>&nbsp;&nbsp;" & _
  11.         "<input type='button' value='按钮5' onclick='f(this)'>&nbsp;&nbsp;" & _
  12.         "<input type='button' value='按钮6' onclick='f(this)'>&nbsp;&nbsp;" & _
  13.         "<input type='button' value='按钮7' onclick='f(this)'></div><br><div id='info'></div></body>""").StdOut.ReadAll
复制代码

TOP

返回列表