找回密码
 加入
搜索
查看: 1874|回复: 2

[AU3基础] 用户自定义函数超过一次要怎么办?

[复制链接]
发表于 2010-4-15 04:55:21 | 显示全部楼层 |阅读模式
我在写一个选择菜单,这个菜单的结构是这样的:

主程序.au3
#include <a.AU3>
#include <b.AU3>
#include <c.AU3>

a.au3
#include-once
#include <test.AU3>

b.au3
#include-once
#include <user.AU3>

c.au3
#include-once
#include <test.AU3>

说明:test.AU3这个函数我不想让它在主程序里调用,我只想让它在被选择时才会调用,最好调用完就注销这个函数,我加了#include-once,可是还是说被重复包含,导致调用失败!
发表于 2010-4-15 12:20:12 | 显示全部楼层
autoit好像没有函数重载
你要在test.AU3里面加#include-once
 楼主| 发表于 2010-4-19 17:34:30 | 显示全部楼层
有加的,可是还是不好用!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-20 20:23 , Processed in 0.078859 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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