Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sendkeys will change the status of Numlock

Hi,

I am using SENDKEYS to help to enter data into Peachtree (an
accounting program). I have set the sequence of the data entry exactly
the same as if the data was entered by me using the keyboard. So the
result in Peachtree is the same.

The different is that when EXCEL using sendkeys to send the keystroke,
the NUMLOCK status will on and off and on and off. So after the
current data are all passed to Peachtree and go back to EXCEL, I have
to look at the number lock status and turn it on if it is off, before
I can use the kkeypad to enter another data. No all the time will off.
So I have to check it every time after the VBA has run.

I have tried this in other program (IE / NOTEPAD / ACDSee) and have
the same problem. Any suggestions on anything I have done wrong?

Thanks.

---
Please remove NOSPAM- in the email address when replying by email.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Sendkeys will change the status of Numlock

Take a look here,
http://support.microsoft.com/default...b;en-us;179987

If that doesn't help then you might want to completely do away
with Sendkeys and use pure APIs to do the job. In most cases you
can use functions like EnumWindows & EnumChildWindows to drill down
to a particular textbox within an app and then use SendMessage to
write text to it. It's a lot trickier than Sendkeys but a lot more
robust too.
I'm sure the folks over at microsoft.public.vb.winapi would be glad to help.


Regards,
Vic Eldridge


Kenneth Lam wrote in message . ..
Hi,

I am using SENDKEYS to help to enter data into Peachtree (an
accounting program). I have set the sequence of the data entry exactly
the same as if the data was entered by me using the keyboard. So the
result in Peachtree is the same.

The different is that when EXCEL using sendkeys to send the keystroke,
the NUMLOCK status will on and off and on and off. So after the
current data are all passed to Peachtree and go back to EXCEL, I have
to look at the number lock status and turn it on if it is off, before
I can use the kkeypad to enter another data. No all the time will off.
So I have to check it every time after the VBA has run.

I have tried this in other program (IE / NOTEPAD / ACDSee) and have
the same problem. Any suggestions on anything I have done wrong?

Thanks.

---
Please remove NOSPAM- in the email address when replying by email.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Sendkeys will change the status of Numlock

Here's a post by Tom Ogilvy of a Jim Rech post:

http://groups.google.com/groups?&thr...%40tkmsftngp02

Maybe you can dump the SendKeys totally.

Kenneth Lam wrote:

Hi,

I am using SENDKEYS to help to enter data into Peachtree (an
accounting program). I have set the sequence of the data entry exactly
the same as if the data was entered by me using the keyboard. So the
result in Peachtree is the same.

The different is that when EXCEL using sendkeys to send the keystroke,
the NUMLOCK status will on and off and on and off. So after the
current data are all passed to Peachtree and go back to EXCEL, I have
to look at the number lock status and turn it on if it is off, before
I can use the kkeypad to enter another data. No all the time will off.
So I have to check it every time after the VBA has run.

I have tried this in other program (IE / NOTEPAD / ACDSee) and have
the same problem. Any suggestions on anything I have done wrong?

Thanks.

---
Please remove NOSPAM- in the email address when replying by email.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Sendkeys will change the status of Numlock

It worked ok for me in xl2002 and win98.



Kenneth Lam wrote:

On Wed, 02 Jun 2004 21:29:26 -0500, Dave Peterson
wrote:

Thanks very much.

I have just tried this but it doesn't work in my Excel 2000. Maybe it
is for Excel 5 only.

Best Regards.

Here's a post by Tom Ogilvy of a Jim Rech post:

http://groups.google.com/groups?&thr...%40tkmsftngp02

Maybe you can dump the SendKeys totally.

Kenneth Lam wrote:

Hi,

I am using SENDKEYS to help to enter data into Peachtree (an
accounting program). I have set the sequence of the data entry exactly
the same as if the data was entered by me using the keyboard. So the
result in Peachtree is the same.

The different is that when EXCEL using sendkeys to send the keystroke,
the NUMLOCK status will on and off and on and off. So after the
current data are all passed to Peachtree and go back to EXCEL, I have
to look at the number lock status and turn it on if it is off, before
I can use the kkeypad to enter another data. No all the time will off.
So I have to check it every time after the VBA has run.

I have tried this in other program (IE / NOTEPAD / ACDSee) and have
the same problem. Any suggestions on anything I have done wrong?

Thanks.

---
Please remove NOSPAM- in the email address when replying by email.


---
Please remove NOSPAM- in the email address when replying by email.


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Numlock Nakia Allen Excel Discussion (Misc queries) 1 May 29th 06 06:22 AM
How do I get the numlock + key to display a plus instead of a v? Mike Setting up and Configuration of Excel 0 August 4th 05 11:11 PM
SENDKEYS change the "Number Lock" status Kenneth Lam Excel Programming 1 May 23rd 04 12:37 PM
worksheet won't change visible status majikman[_9_] Excel Programming 0 May 11th 04 05:24 AM
Sendkeys and NumLock Key Joseph[_16_] Excel Programming 0 February 1st 04 11:15 AM


All times are GMT +1. The time now is 09:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"