Hello everyone, I'm using rumba 7.5.1 (yes it's old but I cannot change it) and I do not understand well the difference betweet EMSendKey and EMSendKeyFast. I understand that one is "fast" and the other not, but if I check the function description I do not found any difference. The help do not say anything. Someone know what does relly mean that "fast"?
I tryed swapping the two function but I do not saw any difference or maybe the swap in my script has no impact.
Thanks.
#Vba#EMSendKey#Macro#Rumba#ScriptI assume we are talking about 3270 or 5250 terminal emulation here and not VT.
When you use EMSendKey to send Aid Keys (an aid key being one which is triggers something being sent to the host e.g. PF1, PF2, Enter), then your script will wait for the OIA to return to a ready state before continuing.
If you use EMSendKeyFast to send Aid Keys to the host then the script will not wait for the terminal to be in a ready state before continuing,
Ideally you should only use EMSendKeyFast to put strings onto the terminal screen. You should not use it to send Aid keys as it may cause your script to get out of sync with the host screens, and you might end up writing to the incorrect screens, or scraping data from an incorrect screen.
Running the following at a TSO ready prompt (outside of ISPF), clearly demonstrates the difference.
Sub Main
EMSendKey "a<Enter>"
EMSendKey "b<Enter>"
EMSendKeyFast "c<Enter>"
EMSendKeyFast "d<Enter>"
End Sub