GRose
Registered User.
- Local time
- Today, 01:23
- Joined
- Mar 4, 2004
- Messages
- 21
I am using Access 97 and a windows based program. I want to automate some input in to the program using sendkeys which works fine until it comes to a certain part. You have to press NUM LOCK to toogle a mode (like shift), then END (to display a menu) and then UP twice (to get the the option needed). Trouble is, it displays 188 (1 is end and up is 8 on the num part of the keyboard. Is there any other way of sending NUMLOCK, END and UP?
The code I am using is:
Private Sub Command0_Click()
DoEvents
AppActivate "KEA! 420 - FINANCE"
SendKeys "{ENTER}", True
SendKeys 2 & "{ENTER}", True
SendKeys 8 & "{ENTER}", True
SendKeys "{NUMLOCK}", True
SendKeys "{END}", True
SendKeys "{UP 2}", True
End Sub
Ta.
The code I am using is:
Private Sub Command0_Click()
DoEvents
AppActivate "KEA! 420 - FINANCE"
SendKeys "{ENTER}", True
SendKeys 2 & "{ENTER}", True
SendKeys 8 & "{ENTER}", True
SendKeys "{NUMLOCK}", True
SendKeys "{END}", True
SendKeys "{UP 2}", True
End Sub
Ta.