coolguy323
11 years ago

0

Need help on c++..areas of keyboard input especially, sendinput, getasynckeystate and some for keyboard hooks as well..
please help

10replies
5voices
232views

0

Please more specific, please?

jayssj11
11 years ago

2

if u want to learn c++ go to http://www.learncpp.com/

coolguy323
11 years ago

0

i do know basics of c++, what i am unable to understand is how to use keyboard input..i’ve been to msdn and it wasn’t of much help..need help on keyboard hooks and how to create dlls and link them to c++ code..
anything that helps get keyboard input and saves to a file and it would be more helpful if i could know how to send email attachments from c++..

coolguy323
11 years ago

0

and simulating keystrokes like Shift + any other key..

coolguy323
10 years ago

0

freewind, i am looking to write code that can get keystrokes simultaneously such that i can get all keys..anything to do with keyboard hooks and the like..

coolguy323
10 years ago

0

code
if( (key == ‘shift) && (key == '2’) )
{
output(‘@’);
}

that’s the pseudo code, i’d like to have something like that in c++..i know of the ascii codes but i am still unable to get those kinda combinations..hope that elaborates my question. thank you

SFisher
10 years ago

0

While I believe that ‘those with not-so-legit intentions’ must code for themselves and obviously I’m not going to write anything (bad or good, but especially bad) for you, I suggest that you read the documentation for the terms you just used. Maybe you want to look into GetKeyState() as well.
Again I recommend you to do it yourself and not bind anyone to whatever you have in mind.
Remember:
[quote=HackThis!!]This site does not encourage or condone any illegal activity, or attempts to hack into any network where they do not have authority to do so.[/quote]

Good luck.

coolguy323
10 years ago

0

i have already tried GetAsyncKeyState..it isn’t working for me..
thanks though, it didn’t sound stupid..

Elhitch
10 years ago

0

I might have not understood you properly, but here’s a function to get the key pressed.
```#include

include <conio.h>

using namespace std;

int main() {
char c = getch();
// Use the variable c for whatever you need. If you need to compare it with special keys, use ASCII values.
return 0;
}```

Tell me if that’s what you was looking for.

coolguy323
10 years ago

0

i am trying to use winapi and not getch()..

that was helpful though, thank you..

if you have any info on winapi and keyboard hooks, please do let me know

You must be logged in to reply to this discussion. Login
1 of 11

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss