Hi all.
I'm having an issue having a script that keeps returning the "ghost" value from the previous screen. The code is supposed to access a dividend announcement file and flip through the different accounts until it get to the very last account. There's 12 accounts in each flip, hence if we have 15 accounts, the script would have to flip (manual loop) twice (12 3). Now, I have the script stop on the 7th account of the fourth loop and read whatever is there. I know if to be blank, but the script keeps reading the value from the 3rd run of the loop:
Sub Main()
Dim EmptyString as String
Dim EmptyStringFinal as String
EMSendKey "<CLEAR>"
EMSendKey "DIVD"
EMSendKey "<ENTER>"
EMSendKey "AD"
EMSetCursor 23,62
EMSendKey "444663656"
EMSendKey "<ENTER>"
EMSetCursor 23,10
EMSendKey "PF"
EMSendKey "<ENTER>"
EMSendKey "<PF1>"
EMSendKey "<PF1>"
EMSendKey "<PF1>"
EMSendKey "<PF1>"
EMReadScreen EmptyString, 12, 12, 7
EmptyStringFinal=Trim(EmptyString)
msgbox EmptyStringFinal
End Sub
Can you help?
#Rumba




