按键精灵定义数组和遍历数组
// 定义一个数组
myArray = Array("a", "b", "c", "d", "e", "f", "g")
// 遍历arr数组
For Each value In myArray
TracePrint value
Next
如果数组的值中含有双引号,使用 Chr(34) 代替
// 定义值含有双引号的数组
// 0: The word "intoxicated" comes from the same root as the word "detoxify".
// 1: "Happy" is an antonym of "sad".
myArray = Array("The word Chr(34)intoxicatedChr(34) comes from the same root as the word Chr(34)detoxifyChr(34).", "Chr(34)HappyChr(34) is an antonym of Chr(34)sadChr(34).")
按键精灵的数组不能存储大量数组,如果有大量数组,将数据放在 Excel 或 文本文档 中读取
原文链接:https://blog.csdn.net/xunpic/article/details/111058029