|
'$Include "sqautil.sbh"
Sub Main
Dim Result As Integer
Dim dp_id as long
Dim dp_result as long
Dim strName as string
Dim strPassword as string
'Initially Recorded: 2008-4-14 16:00:44
'Script Name: tt_test
Window SetContext, "Caption=Program Manager", ""
ListView DblClick, "Text=FolderView;\;ItemText=SecureCRT 5.1", "Coords=28,34"
Window SetContext, "Caption=连接", ""
TreeView ScrollLineUp, "Text=Tree1", ""
TreeView ScrollLineUp, "Text=Tree1", ""
TreeView Click, "Text=Tree1;\;ItemText=会话->hy", ""
PushButton Click, "Text=连接(C)"
Window SetContext, "Caption=hy - SecureCRT", ""
' dp_id = SQADatapoolOpen ("dp", FALSE, SQA_DP_Random, FALSE)
dp_Result = SQADatapoolFetch (dp_id)
while dp_Result <> sqaDpEOF
dp_Result = SQADatapoolValue (dp_id, "name", strName)
dp_Result = SQADatapoolValue (dp_id, "password", strPassWord)
dp_Result = SQADatapoolFetch (dp_id)
InputKeys strName&"{ENTER}"&strPassWord&"{ENTER}"
End Sub
-------------------------------------------
可以先忽略我写的什么,写的对不对
我疑惑的地方是
我编译会报下面的错
tt_test.rec(31) Error: Variable SQADatapoolFetch undefined // 我已经在开头引用了那个数据池的头文件了噢??
tt_test.rec(32) Warning: No DIM statement for Variable 'sqaDpEOF'
tt_test.rec(33) Error: Variable SQADatapoolValue undefined // 我已经在开头引用了那个数据池的头文件了噢??
tt_test.rec(34) Error: Variable SQADatapoolValue undefined // 我已经在开头引用了那个数据池的头文件了噢??
tt_test.rec(35) Error: Variable SQADatapoolFetch undefined // 我已经在开头引用了那个数据池的头文件了噢??
tt_test.rec(36) Error: Variable 'strName' type conflict
tt_test.rec(44) Error: Illegal statement
tt_test.rec(45) Error: Unexpected end of file
注明:那个头文件我没有在相应目录下找到,于是在那个目录下建了头文件 内容是空的
问题:
1、我引用了头文件为什么还报这样的错呢?
2、那个头文件是我自己建的空文件,是否有问题?因为我不知道那个头文件应该长成什么样。
请帮帮忙 解答下 :) 不胜感激 |
|