Click here to Skip to main content
12,825,683 members (34,910 online)
Click here to Skip to main content
Add your own
alternative version

Stats

2M views
14.3K downloads
157 bookmarked
Posted 22 Apr 2004

SendKeys in C++

, 14 Jun 2004
Rate this:
Please Sign up or sign in to vote.
A C++ port and enhancement of C#'s / VB's SendKeys function.
 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Elias Bachaalany
Web Developer
United States United States
Elias (aka lallousx86, @0xeb) has always been interested in the making of things and their inner workings.

His computer interests include system programming, reverse engineering, writing libraries, tutorials and articles.

In his free time, and apart from researching, his favorite reading topics include: dreams, metaphysics, philosophy, psychology and any other human/mystical science.

Former employee of Hex-Rays (the creators of IDA Pro), was responsible about many debugger plugins, IDAPython project ownership and what not.

Elias currently works at Microsoft as a software security engineer.

More articles and blog posts can be found here:

- http://lallousx86.wordpress.com/
- http://0xeb.wordpress.com/
- http://www.hexblog.com/?author=3

You may also be interested in...

Comments and Discussions

 
QuestionThis is awesome, thanks! Pin
Member 1271875717-Dec-16 13:47
memberMember 1271875717-Dec-16 13:47 
QuestionAny way to get result after submit ? Pin
Member 1116586713-Jul-15 23:03
memberMember 1116586713-Jul-15 23:03 
QuestionSend key when screen is locked on Windows 7 Pin
Member 1147900725-Feb-15 3:05
memberMember 1147900725-Feb-15 3:05 
AnswerRe: Send key when screen is locked on Windows 7 Pin
Elias Bachaalany13-Mar-15 12:12
memberElias Bachaalany13-Mar-15 12:12 
QuestionSend key when screen is locked Windows 7 Pin
Member 1147900725-Feb-15 2:57
memberMember 1147900725-Feb-15 2:57 
QuestionWorking with a Win32 Console Application Pin
Christoph.Jansen@erdonet.de10-Dec-14 2:27
groupChristoph.Jansen@erdonet.de10-Dec-14 2:27 
AnswerRe: Working with a Win32 Console Application Pin
Elias Bachaalany10-Dec-14 13:59
memberElias Bachaalany10-Dec-14 13:59 
Questionlove it Pin
DarkShadowsX58-Dec-14 21:20
memberDarkShadowsX58-Dec-14 21:20 
AnswerRe: love it Pin
Elias Bachaalany10-Dec-14 21:48
memberElias Bachaalany10-Dec-14 21:48 
BugModified binary search method StringToVKey()... Pin
Greg Hellem12-Sep-14 7:15
memberGreg Hellem12-Sep-14 7:15 
GeneralRe: Modified binary search method StringToVKey()... Pin
Elias Bachaalany11-Oct-14 13:18
memberElias Bachaalany11-Oct-14 13:18 
QuestionSelecting a Checkbox Pin
Toby Haddon28-Jun-14 11:54
memberToby Haddon28-Jun-14 11:54 
Questiondoesnt work with windows 8 and visual studio 13 Pin
Member 1070395727-Mar-14 4:52
memberMember 1070395727-Mar-14 4:52 
QuestionUpgrade? Pin
omzig28-Feb-14 6:35
memberomzig28-Feb-14 6:35 
QuestionIs there a way to do this while keeping windows minimized? Pin
Member 103019681-Oct-13 18:30
memberMember 103019681-Oct-13 18:30 
AnswerRe: Is there a way to do this while keeping windows minimized? Pin
Elias Bachaalany1-Oct-13 19:33
memberElias Bachaalany1-Oct-13 19:33 
As far as I know you have to use another mechanism. I could be outdated / wrong of course.

Try investigating sending window messages WM_KEYDOWN or WM_KEYUP, etc....
AnswerRe: Is there a way to do this while keeping windows minimized? Pin
Hữu Tú Nguyễn7-May-14 23:32
memberHữu Tú Nguyễn7-May-14 23:32 
Question#include "SendKeys.h" is getting compilation error Pin
Nodik_08002-Jul-13 1:20
memberNodik_08002-Jul-13 1:20 
QuestionI need to know how to open and debug the code in VS2010 Pin
Ahmedn14-Dec-11 4:46
memberAhmedn14-Dec-11 4:46 
GeneralIs there any way to use this code with Qt? (error: cannot convert 'const char*' to 'const TCHAR*' ) Pin
ghtofighi24-May-11 20:46
memberghtofighi24-May-11 20:46 
GeneralBugs in CSendKeys::AppActivate(LPCTSTR WindowTitle, LPCTSTR WindowClass) Pin
gregko314618-May-11 5:48
membergregko314618-May-11 5:48 
Questionsend ?%$# key event Pin
Member 76917713-Mar-11 0:25
memberMember 76917713-Mar-11 0:25 
AnswerRe: send ?%$# key event Pin
Elias Bachaalany3-Mar-11 1:04
memberElias Bachaalany3-Mar-11 1:04 
GeneralError [modified] Pin
Zyx863-Dec-10 0:09
memberZyx863-Dec-10 0:09 
GeneralCannot send ^a to Firefox Pin
kmpham20-Jul-10 18:00
memberkmpham20-Jul-10 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170308.1 | Last Updated 15 Jun 2004
Article Copyright 2004 by Elias Bachaalany
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid