I build up a string to send to Extra later.
The string has 4 elements, each of which is either "N" or "<Ctrl+M>" (the ENTER key).
Example: "NN<Ctrl+M>N" or "NNN<Ctrl+M>" or "<Ctrl+M>NNN" or "NNNN" etc...
The problem is that <Ctrl+M> is recieved by Extra as the string <Ctrl+M>, and not the ENTER key.
How can I send the key and not the string?
The string has 4 elements, each of which is either "N" or "<Ctrl+M>" (the ENTER key).
Example: "NN<Ctrl+M>N" or "NNN<Ctrl+M>" or "<Ctrl+M>NNN" or "NNNN" etc...
The problem is that <Ctrl+M> is recieved by Extra as the string <Ctrl+M>, and not the ENTER key.
Code:
vstring$="NNN<Ctrl+M>" 'Example
Sess0.Screen.Sendkeys("<NewLine>")
Sess0.Screen.Sendkeys(vstring$) '<== This is the problem
Sess0.Screen.Sendkeys("<Enter>")
How can I send the key and not the string?