Reputation: 0 Apprentice
- New Members
- Active Posts:
- 6 (0.01 per day)
- 16-November 11
- Profile Views:
- Last Active:
- Dec 13 2011 09:08 PM
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
17 Nov 2011 - 03:30
Posts I've Made
Posted 18 Nov 2011you don't need an application to run in the background to do that. those games effectively just have an if statement that says "if key is down then do X" where x is the action such is that character moving forward, you don't need to do anything with the mouse for that.
maybe you think that because the mouse can be used to do things that the keys simply tell the mouse what to do and the mouse dose it all seamlessly, not the case. more likely there is a function that dose some action; this function can be called if an event using the moues or the keyboard is used.
No no no. I'm not using it for a game, I'm really not using it for anything except knowledge. I only got the idea while playing a game.
Posted 17 Nov 2011@WinAPI suggestion: I'm definitely going to look into that!
@GetASyncState suggestion: That sounds really close to what I need, if not perfect! I'm definitely going to play around with it and see if I can get it figured out!
@Negative comment: You're actually close! I'm not using this "for" a game, rather I got the idea to try this while playing a game. I was wondering how on a PC game they set keys to do certain activities, and decided I wanted to recreate it on a different, smaller, level. So for educational purposes, I only want to make my mouse click somewhere when I hit a key
I'll post my progress later!
Posted 16 Nov 2011Okay I thought of a better way to put this. Basically, I just want to be able to make it so that pressing certain keys on the keyboard, chosen by the user, will cause a left mouse click at certain coordinates of the screen, also chosen by the user.
Posted 16 Nov 2011well you can use GetCursorPos and SetCursorPos to find the mouse position and set it. you could use low level hooks to do the key thing but i'm not going to show you that as that would be a key logger.
have you bought a C++ book yet? this really isn't the best place to start.
Oh, now I see where this program could also have similar traits as a key logger. I read in to information from your post and as soon as I started reading this page: http://msdn.microsof...0(v=vs.85).aspx , I understand where you're coming from. My intentions aren't those of evil though! D:
Posted 16 Nov 2011Okay, well first I want to assure you I'm definitely not trying to make a keylogger. Like I said, I only want it to remember mouse clicks. I haven't purchased any books, but I've been digging pretty deeply into an online guide I found, which is setup like a book: http://www.learncpp.com/. It seems pretty helpful in my opinion. Thank you for mentioning GetCursorPos and SetCursorPos, I'm definitely going to look into those and try to get something working
- Member Title:
- New D.I.C Head
- 19 years old
- May 13, 1994
- Roseville, Michigan
- Computers, music, competitive swimming, learning new languages (communicative and programming), and world cultures.
- Full Name:
- Tyler Holmes
- Years Programming:
- Programming Languages:
- HTML, Visual Basic, C++ (Still learning!)