找回密码
 加入
搜索
查看: 1843|回复: 1

[系统综合] 请问如何将C代码转换成AU3代码?

[复制链接]
发表于 2011-1-22 00:13:16 | 显示全部楼层 |阅读模式
如题,以下这段代码,如果转换,谢谢。
private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
//禁用目标window的confirm、alert等对话框。
IHTMLWindow2 win = (IHTMLWindow2)webBrowser1.Document.Window.DomWindow;
string s = "window.alert = null;\r\nwindow.confirm = null;\r\nwindow.open = null;\r\nwindow.showModalDialog = null;";
win.execScript(s, "javascript");
}
发表于 2011-1-22 01:31:27 | 显示全部楼层
太多的C功能是au3没有的,根本不可能自动转换,如遇到指针!
只能人肉,就是人肉,也不一定能够用au3完全做C的代码。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 14:30 , Processed in 0.092356 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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