找回密码
 加入
搜索
查看: 3130|回复: 4

[系统综合] 引用Date.au3错误(已解决)

[复制链接]
发表于 2013-11-7 16:34:21 | 显示全部楼层 |阅读模式
本帖最后由 solox 于 2013-11-12 14:50 编辑

脚本里面需要用到日期转换,脚本如下:
#include <Date.au3>
Local $Y, $M, $D
Local $sDayValue = _DateToDayValue(@YEAR,@MON,@MDAY)
Local $sDate = _DayValueToDate($sDayValue+1,$Y,$M,$D)
Local $sNewDate = $Y & $M & $D
编译运行出错:
D:\autoit3\Include\StructureConstants.au3 (1687) : ==> ?????.:
Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ? "" : ";" & $tagRECT & ";uint uChevronState")
Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ^ ERROR
发表于 2013-11-7 21:30:14 | 显示全部楼层
看着没错,不放心复制了运行也没错,你这些错误是那里来的?
测试环境:盗版WinXP+3.3.6.1
发表于 2013-11-7 21:38:37 | 显示全部楼层
回复 1# solox
回复 2# lpxx
这两个月,不时有朋友碰到此错误,还有一个,就是“三元运算"的错误。
按A大的说法是汉化的解释器还没更新吧。
解决这些问题,只更换自己使用的AU3版本。

还要注意不要使用SVN更新了,更新后就。。。
 楼主| 发表于 2013-11-7 22:09:04 | 显示全部楼层
回复  solox
回复  lpxx
这两个月,不时有朋友碰到此错误,还有一个,就是“三元运算"的错误。
按A大的 ...
user3000 发表于 2013-11-7 21:38



    正解,网上查了下,就是三元运算错误
发表于 2013-11-8 15:35:59 | 显示全部楼层
你的代码我这里运行正常,你的应该是你的AU3版本的事
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 17:27 , Processed in 0.082169 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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