找回密码
 加入
搜索
查看: 7608|回复: 13

[IE类操作] js调用autoit的方法

 火.. [复制链接]
发表于 2010-8-10 07:15:30 | 显示全部楼层 |阅读模式
在autoit中执行js方法很简单,但反过来呢,怎样在js中调用执行autoit的函数方法?
发表于 2010-8-10 08:10:35 | 显示全部楼层
很诡异的一个问题!
发表于 2010-8-10 13:18:28 | 显示全部楼层
不敢想的问题,你想了,真牛
发表于 2010-8-10 19:09:20 | 显示全部楼层
可以是可以 例子里有个可以回调的...

已经忘记是哪个了 以前用html写过au3的界面- -+
发表于 2010-8-10 21:26:10 | 显示全部楼层
autoit3 如何高用js
给个例子看看,学习一下
 楼主| 发表于 2010-8-11 05:00:05 | 显示全部楼层
回复 4# rolaka


    拜托努力想想啊 。。。。。。。。
加油。。。。。。。
给它想出来。
谢谢
发表于 2010-8-11 22:35:10 | 显示全部楼层
回复  rolaka


    拜托努力想想啊 。。。。。。。。
加油。。。。。。。
给它想出来。
谢谢
wwwwffff 发表于 2010-8-11 05:00
; *******************************************************
; Example 5 - Open a browser with the AutoIt homepage, insert an
;                                event script into the head of the document that prevents
;                                navigation when any link is clicked and log the URL of the
;               clicked link to the console
; *******************************************************
;
#include <IE.au3>

$oIE = _IECreate("http://www.autoitscript.com")
$oLinks = _IELinkGetCollection($oIE)
For $oLink in $oLinks
    $sLinkId = _IEPropertyGet($oLink, "uniqueid")
    _IEHeadInsertEventScript($oIE, $sLinkId, "onclick", "return false;")
    ObjEvent($oLink, "_Evt_")
Next

While 1
        Sleep(100)
WEnd

Func _Evt_onClick()
    Local $o_link = @COM_EventObj
        ConsoleWrite($o_link.href & @CRLF)
EndFunc
= = 就在帮助文档里
发表于 2010-8-12 00:47:17 | 显示全部楼层
第一次看见使用@COM_EventObj
学习了
发表于 2010-8-12 10:27:37 | 显示全部楼层
使用前要注册 AutoItX3.dll,详细请参见AutoItX.chm
<script language=javascript>
var au3=new ActiveXObject("AutoItX3.Control");
var txt=au3.ClipGet();//获取剪贴板内容
alert(txt);
</script>
 楼主| 发表于 2010-8-12 16:54:34 | 显示全部楼层
回复 7# rolaka


    谢谢了,试试看。
发表于 2010-8-12 17:13:00 | 显示全部楼层
使用前要注册 AutoItX3.dll,详细请参见AutoItX.chm
akmm88 发表于 2010-8-12 10:27


用obj的话...局限会很大...
 楼主| 发表于 2010-8-12 18:29:55 | 显示全部楼层
= = 就在帮助文档里
rolaka 发表于 2010-8-11 22:35



   可是如果html一刷新就不能用了哦。。。。。。
发表于 2010-8-12 19:36:47 | 显示全部楼层
可是如果html一刷新就不能用了哦。。。。。。
wwwwffff 发表于 2010-8-12 18:29


唔 在while里不停的的检查把
发表于 2010-8-30 21:13:10 | 显示全部楼层
牛人年年有,今年特别多
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-5 13:12 , Processed in 0.080460 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表