+ Reply to Thread
Results 1 to 8 of 8

Sendkeys + and - on NUMPAD (Plus and Minus)

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    13

    Sendkeys + and - on NUMPAD (Plus and Minus)

    Hello,

    I have been trying to use the SendKeys command to send the + and - sign on the NumPad to another application, but I cannot find the script to add these commands. I have been working off the MSDN website, and it is not listed on there. Not easy to find on google either.

    Thanks,
    Mike

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    Did not work. I am using sendkey to a AS400 application, it says to use the Field+ or Field- key, I dont know if that is relevent

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    No idea. Those are the correct codes though, assuming numlock is on.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    Hello mgnickel ,

    I am not an AS400 programmer but the word Field+ would seem to indicate movement within the database and not a physical key. Perhaps the Numpad + and - keys act as short cut keys to move up or down a field in the database. You would have to check your application's documentation.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Registered User
    Join Date
    10-12-2011
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    Since I am not having luck with this, perhaps I should try a PostMessage API using vbKeyAdd or vbKeySubtract?

    Have any of you used this before? I need help understanding the declarations

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    Hello mgnickel ,

    I think you are diving in too deep with the API. The biggest issue with the API would be getting the window handle of where to send to the information, which is no a trivial matter. The API is not for beginners or most intermediate programmers. There are many details you have to keep track of and the same API call may function a little differently on a different OS. If you get caught unaware then the application will probable crash or even crash the system.

  8. #8
    Registered User
    Join Date
    04-18-2012
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Sendkeys + and - on NUMPAD (Plus and Minus)

    tell me your Application Title ( Exm: Session A - [20 x 80])

    i faced this problems. finally i got it. let me Know this

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1