473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Solution for : Access97 SendKeys command disables Numlock....

Every time I used the Sendkeys command in my application the "Numlock"
turned off and I couldn't use the keypad to hit numbers......

The old code was:
Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}"
End Sub

So.....I decided to do the following:

Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}", True 'keystrokes must be processed before
control is
'returned to the procedure.

SendKeys Chr$(144) 'Turn the "NUmlock" ON again
End Sub

I know that I have to avoid the Sendkeys statement but if there is no
other way.....this solution should help....

George.......
Nov 13 '05 #1
1 9500
See also

http://www.mvps.org/access/bugs/bugs0004.htm

--
Terry Kreft
MVP Microsoft Access
"George" <gk***@softhome.net> wrote in message
news:81**************************@posting.google.c om...
Every time I used the Sendkeys command in my application the "Numlock"
turned off and I couldn't use the keypad to hit numbers......

The old code was:
Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}"
End Sub

So.....I decided to do the following:

Private Sub Command1_Click()
SendKeys "{DOWN}"
SendKeys "^{END}"
SendKeys "{TAB}", True 'keystrokes must be processed before
control is
'returned to the procedure.

SendKeys Chr$(144) 'Turn the "NUmlock" ON again
End Sub

I know that I have to avoid the Sendkeys statement but if there is no
other way.....this solution should help....

George.......

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mr. Bungle | last post by:
I would like to send email automatically via a command button. I have accomplished this just fine through the following code: (Outlook should already be open for reliable results) Private Sub...
2
by: RBohannon | last post by:
I need to create a report in MS Word populated with data from A2K. I have been asked to create the report in Word so that parts of it can be edited as necessary later. The data in the report are...
2
by: Phil Galey | last post by:
I have an application written in VB.NET, running on Windows 2000 SP 3. It uses a process object and AppActivate, followed by SendKeys commands, to control a running QuarkXPress application. On...
10
by: lgbjr | last post by:
Hi All, In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and whether the input mode is set to Insert or Overwrite (Insert Key). I just added a status bar to my app, and I...
0
by: Neil | last post by:
Can anyone tell me if there's a way to fillin a web form using SendKeys? I have written a program that uses Com Interop to create an instance of IE, and navigate to the correct webpage. Then I...
0
by: Mac via DotNetMonster.com | last post by:
Hi all, I am attempting to send keystrokes to a telnet application I have opened from my DotNet application. But am having a issue. In my VB.Net app I firstly open the telnet app using the...
0
by: dtshedd | last post by:
I have a database with hundreds of embedded photos (Microsoft Photo 3.0) Many are larger than 1 MB. I tried Stephen Lebans macro but it did not work probably for the aforementioned reasons Now...
5
by: Joe S | last post by:
I have been searching all over for how to use SendKeys to send Keys.RControlKey. I've tried all manner of byte conversions and just can't get it to work. Pity there is no {RCONTROL} defined...
3
by: Z.K. | last post by:
I am trying to detect if the Numlock is pressed. I can do it okay with the CapsLock or the ScrLk, but not with NumLock. The code for all three checks is exactly the same, but for some reason...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.