Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. sending a string as keyboard keystrokes wrongly

sending a string as keyboard keystrokes wrongly

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    awah
    wrote on last edited by
    #1

    sending a string as keyboard keystrokes wrongly as u can see from my following code, KeyBoadText() is a function that accepts a string and then type the string out as if it was typed using the keyboard. but now i am having problem when my typetext = "abc" instead of typing "abc", it types "123". how can i solve this? [CODE] void CStocksmsDlg::KeyBoardText(CString typetext) { int text_len = typetext.GetLength(); for(int i =0; i[/CODE]

    N 1 Reply Last reply
    0
    • A awah

      sending a string as keyboard keystrokes wrongly as u can see from my following code, KeyBoadText() is a function that accepts a string and then type the string out as if it was typed using the keyboard. but now i am having problem when my typetext = "abc" instead of typing "abc", it types "123". how can i solve this? [CODE] void CStocksmsDlg::KeyBoardText(CString typetext) { int text_len = typetext.GetLength(); for(int i =0; i[/CODE]

      N Offline
      N Offline
      nitin3
      wrote on last edited by
      #2

      u r sending keys "abc" of ascii 97,98,99 which stands for VK_NUMPAD1,VK_NUMPAD2,.. If u want print 'abc' then turn off capslock and send "ABC" see "winuser.h"

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups