I don't know what the issue is, but could you try using EMWaitCursor or EMWaitText instead? For instance, I use EMWaitCursor when waiting for some data to be sent and I know the location of the cursor afterwards. I also then use EMReadScreen to make sure I'm on the correct screen and/or the data was sent properly. Example: EMSendKey varData EMSendKey " Field_Plus " EMWaitCursor 15, 17, 13 EMReadScreen ScrnTxt,7, 24, 5 If ScrnTxt = "Invalid" Then GoTo InvalidItem Else GoTo Col2: End If Just a snip it of some code I use.
↧