Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:08:53+00:00 2026-06-18T00:08:53+00:00

I am using a NFC reader to read the UID of a M1 card

  • 0

I am using a NFC reader to read the UID of a M1 card and I would like to insert this UID string to anywhere the cursor currently is.
e.g. in the url box, in notepad, (just like a “barcode” reader input device, but with NFC UID this time)

I have implemented the function for reading the UID, and now I would like to do my second part – to insert the UID to anywhere the cursor is.

I am using Visual C++, any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:08:54+00:00Added an answer on June 18, 2026 at 12:08 am

    If you want to simulate a keypress, you can add input events:

    INPUT inp;
    
    inp.ki.dwFlags = 0;
    inp.ki.wVk = 'A';
    inp.ki.wScan = 0;
    inp.ki.time = 0;
    inp.ki.dwExtraInfo = NULL;
    inp.type = INPUT_KEYBOARD;
    
    SendInput(1, (LPINPUT) &inp, sizeof(inp));
    
    inp.ki.dwFlags = KEYEVENTF_KEYUP;
    
    SendInput(1, (LPINPUT) &inp, sizeof(inp));
    

    That sends a key-down, followed by a key-up for the ‘A’ key. You can submit an array of those structures in a single call, I’ve omitted that for clarity. Note also that the key is not ascii, but a VK code. It just so happens that the alpha keys are represented by their upper-case value.

    Obviously if the user happens not to have the cursor somewhere that they want characters to be entered, bad/unexpected things may happen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to read an NFC tag's UID , tags don't have any
I want to read a card from Samsung Nexus phone but the android nfc
I am currently researching the possibility of card emulation on NFC enabled smartphones. Basicly,
Possible Duplicate: How to read RFID using iPhone SDK I am new to this
I would like to get started with developing NFC apps for android. I have
Currently I am using the following app to write data into a NFC tag,
There is small illustration of NFC Reader Hardware here Under this video as soon
Using string functions and a whole lot of if-else turns this into a real
I'm working on a NFC application which would be using NFC-V tags with ISO
I'm writing NFC based app that would scan a NFC tag with a Url.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.