Virtual Mouse/Keyboard

Jul 13, 2012 at 11:27pm
im starting to make a program to preforms the function of opening things, typeing, clicking ect...

for this i would like to use a virtual mouse and keyboard. My question is how do i acsess this in C++ ?? or does C++ even have this?? is it just the platforms like win32 or QT that have this??

thanks in advance
Last edited on Jul 14, 2012 at 12:45am
Jul 14, 2012 at 10:13am
O and i omost forgot Im also looking for pixle recongnishion if anyone wants to tell me what i use to get that...
Jul 14, 2012 at 1:01pm
The question you ask is quite multifaceted ,

1: Virtual mouse and keyboard
Very possible, very difficult. Yoh can make a simple set of emulators easilh, but it won't work with everything (games) you can make custom drivers- with some hair pulling and perhaps some inline asm

pixel recog in windows is fairly easy just msdn it.
Jul 16, 2012 at 11:13am
where do i go to learn how to make a drive can they ven be made in C++?? also any tutorials for msnd would be helpfull thanks
Jul 16, 2012 at 2:40pm
Writing drivers is not something for a beginner to do. You can very easily crash your PC, or if you're too aggressive you may destroy your OS. But if you want to start download this: http://msdn.microsoft.com/en-us/windows/hardware/gg454513/ and read these: http://msdn.microsoft.com/en-us/library/windows/hardware/ff557573
Jul 16, 2012 at 5:35pm
alright... im not new new to c++ so ima look into thx for the link. also the drivers are scripted in c++ right... not anouther language?
Jul 16, 2012 at 6:08pm
Read this beforeusing C++ to write drivers :)
http://msdn.microsoft.com/en-us/library/windows/hardware/gg487420.aspx
Jul 16, 2012 at 11:16pm
If i make a driver in C++ it will work for all operating systems right???
Jul 16, 2012 at 11:30pm
No, I wouldn't even assume it would work on all Window's OS's. Have you ever tried to download a driver and noticed that XP drivers are different than Win7 or WinVista? Win8 I believe is going to have slightly different drivers now. It really depends on how you design it, but you can't assume it'll work until you try it.
Jul 17, 2012 at 6:34pm
so could i creat the drive in anouther language then use it in a C++ program i create and if so what language would be best for all operateing systems??
Jul 17, 2012 at 6:39pm
No, there is no universal driver language.
Jul 17, 2012 at 8:49pm
mmm that sux...last question...if found no tutorials of creating drivers or examples is there any books out there or tutorials any of you know of "for C++ or C# drivers"
Jul 17, 2012 at 11:35pm
Again, this is not something for a beginner to do. But since you asked here you go: http://www.codeproject.com/Articles/9504/Driver-Development-Part-1-Introduction-to-Drivers
Jul 18, 2012 at 2:04am
Thanks :)
Topic archived. No new replies allowed.