Here is how I'm trying to call it:
while SUCCESS
pause 15
transmit "getswsessionstatus 1^M"
WaitList(30, "DownloadInProgress", "DownloadCompleted", $NULLSTR)
if WaitListStat == 1
SUCCESS
elseif WaitListStat == 2
FAILURE
elseif WaitListStat == 3
FAILURE
elseif WaitListStat == 0
FAILURE
endif
endwhile
I'm new to aspect programming and very rusty with C so any help would be appreciated.