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!

How do I "Page Down" using Sendkeys? 1

Status
Not open for further replies.

ctgrib

Programmer
Mar 11, 2004
1
US
I am using the SessionScreen.SendKeys method in my VBA code and have had no problems using "<ENTER>" and "<PF8>". However, when I tried to use "<PGDN>" it is sending the actual keystrokes instead of paging down. Does anyone know what the correct code is to Page Down? Thanks!
 
I presume you are talking about the Page Down button on the keyboard. I so you need to check what Key is assigned to it using Keyboard Function in extra; at a Guess it will be <PA2> (that is what it is in my settup) but it could be anything
 
Hi ctgrib,
Did you find out how to send the "Enter" key yet?
If you do, can you show me how? I can send any key but "Enter".

Session.Screen.SendKeys("<Enter>")

It works on other sessions, but this current session I am working on.

Thanks,
Pal.
 
Try this:

<RollUp> = PageDown

<RollDown> = PageUp

Hope this helps...
 
As an added note:

If your version of Attachmate has a macro recorder enabled, fire it up and create a dummy macro, and plug in all of the keystrokes that are in question. Stop the recorder, go into edit mode for the dummy macro, and view the SendKeys commands used. It has worked wonders for me, and will save you time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top