simulate enter button with c language
pls help me

You may have to specify Linux, BeOS, Apple OS, DOS or another OS. Also what dev system on what OS since this will likely tap into the OS.

Finally this may be called malware by some antivirus suites so be sure this is not something you'll use widely.

Now for Windows, AutoIT makes this a trivial task. Read one example at https://www.autoitscript.com/forum/topic/78383-press-enter-key/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.