Athayr's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 6 (0.01 per day)
- Joined:
- 16-November 11
- Profile Views:
- 252
- Last Active:
Dec 13 2011 09:08 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Linux
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Dodge
- Dream Kudos:
- 0
Latest Visitors
-
hulla 
17 Nov 2011 - 03:30
Posts I've Made
-
In Topic: How to record the coordinates of a mouse click as a variable?
Posted 18 Nov 2011
ishkabible, on 18 November 2011 - 08:02 AM, said:you 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. -
In Topic: How to record the coordinates of a mouse click as a variable?
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! -
In Topic: How to record the coordinates of a mouse click as a variable?
Posted 16 Nov 2011
Okay 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. -
In Topic: How to record the coordinates of a mouse click as a variable?
Posted 16 Nov 2011
ishkabible, on 16 November 2011 - 08:20 PM, said:well 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:
-
In Topic: How to record the coordinates of a mouse click as a variable?
Posted 16 Nov 2011
Okay, 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
My Information
- Member Title:
- New D.I.C Head
- Age:
- 19 years old
- Birthday:
- May 13, 1994
- Gender:
-
- Location:
- Roseville, Michigan
- Interests:
- Computers, music, competitive swimming, learning new languages (communicative and programming), and world cultures.
- Full Name:
- Tyler Holmes
- Years Programming:
- 6
- Programming Languages:
- HTML, Visual Basic, C++ (Still learning!)
Contact Information
- E-mail:
- Click here to e-mail me
- AIM:
-
TyHolmes513
- MSN:
-
Athayr513@hotmail.com
- Yahoo:
-
CatoTheDK
- Skype:
-
CatoTheDK
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
hulla
17 Nov 2011 - 03:30