本帖最后由 tubaba 于 2016-4-18 09:56 编辑
如何才能正确提取au3脚本中的变量呢?包括此变量的赋值.想了快一个月了,还是没想出来.所以没办法才来发贴求助.Global $aKeyWord = StringSplit($KeyWordStr, ',', 2)
Global $aFuncs[1][1], $aALLFuncs[1][1]
Global Const $tagNMSELCHANGE = $tagNMHDR & _
";struct;word BegYear;word BegMonth;word BegDOW;word BegDay;word BegHour;word BegMinute;word BegSecond;word BegMSeconds;endstruct;" & _
"struct;word EndYear;word EndMonth;word EndDOW;word EndDay;word EndHour;word EndMinute;word EndSecond;word EndMSeconds;endstruct"
Global Const $FILE_SHARE_DELETE = 0x00000004
Global Const $FILE_SHARE_READWRITE = BitOR($FILE_SHARE_READ, $FILE_SHARE_WRITE)
Global Const $FILE_SHARE_ANY = BitOR($FILE_SHARE_READ, $FILE_SHARE_WRITE, $FILE_SHARE_DELETE)
比如上面的代码,想依次提取每个变量的值.
$aKeyWord = StringSplit($KeyWordStr, ',', 2)
$aFuncs[1][1]
$aALLFuncs[1][1]
$tagNMSELCHANGE = $tagNMHDR & _
";struct;word BegYear;word BegMonth;word BegDOW;word BegDay;word BegHour;word BegMinute;word BegSecond;word BegMSeconds;endstruct;" & _
"struct;word EndYear;word EndMonth;word EndDOW;word EndDay;word EndHour;word EndMinute;word EndSecond;word EndMSeconds;endstruct"
$FILE_SHARE_ANY = BitOR($FILE_SHARE_READ, $FILE_SHARE_WRITE, $FILE_SHARE_DELETE)
应该使用什么正则比较好呢 |