Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send keys as keys, not a string?

Status
Not open for further replies.

Chotor

Technical User
Oct 2, 2008
20
0
0
NO
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.

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?
 
Got it.
It's <NewLine>.
Should have checked better... :p
Sorry for the trouble.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top