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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attachmate Extra ver 6.6

Status
Not open for further replies.

tazhelp

Programmer
May 6, 2003
1
US
I am investigating the use of Attachmate Extra and would like to know how to send functions keys using sendkeys.. I have tried @E which passes an <enter> however, I have been unsuccessful in sending functions keys.
 
You should be able to use the code as shown below to send any set of keys ie mimic written text or as you mention send function keys PF1 to PF24. I've not found any short cuts like the @e for enter.


Sess0.Screen.Sendkeys(&quot;<PF1>&quot;)

Or an enter would look like

Sess0.Screen.Sendkeys(&quot;<enter>&quot;)




 
If you are using Extra! 6.6, you will have to use VBScript. That method uses a call to a Windows API to send keystrokes:

session.Screen.Sendkeys &quot;@c&quot;, ATM_KEYTYPE_HLLAPI

&quot;@c&quot; in the example is PF12. The functions keys PF1-PF9 are basically @ plus the numbers 1-9, and for PF10 and above you use the letters a-o.

This link contains a table of the codes for function keys, and other keys using the HLLAPI (scroll to the bottom of the page when you get there):

 
Hi tazhelp,
I have trouble with sending the .sendkeys("<Enter>"). Did you find out how to send this "Enter" key?
Other keys works like "BackSpace", "Home", .....
If you can send "Enter" please help
Thanks'
Pal.
 
Check the help files. There is a fairly large list of keystrokes there.

Additionally you can record a macro with the keystroke you're looking for and then you'll know.

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top