Its almost exam time :( and my teacher would like us to learn how to create a delay in our programs without using the Sleep function in the windows.h library. He said that we might do somthing like...
Type: Posts; User: Bag a Bones
Its almost exam time :( and my teacher would like us to learn how to create a delay in our programs without using the Sleep function in the windows.h library. He said that we might do somthing like...
Ok, sorry I was whining, Im just a little stressed and tired because there are a lot of projects due lately and exams are starting...
BTW thanks what3v3r
Bubba, I actualy had a program that...
Why does everyone love google so much? Google never helps me that much when im looking for stuff like this. The most it ever helped me was to find this site. I did just look there, but I guess ill...
Im working on a program called mouse odometer, which will find how much you move your mouse (like in meters or kilometers or whatever) and its going to find how many pixels your mouse moves and then...
Try reinstalling it. My Visual Studios was messed up on the first installation so i just reinstalled it and it worked perfectly. You could have just not used propper syntax though... lol
Im already using GetAsyncKeyState. How do I know when the numpad keys?
At this point im going to put up my code, so everyone can see what im doing. You don't have to take it and edit it and spit...
Ok, now LuckY's program works, but it returns the same values as the number keys (the ones above the letters). I need to know how to tell when and what numpad keys are pressed. Im kind of in a rush,...
LuckY, thanks, your diagnosis is quite correct. I thought that every key had an ASCII value. Thanks for setting me straight.
twomers, kbhit checks the keyboard buffer to see if a key has recently...
Ok, iv decided to change it from the arrow keys to the numpad, just like the Windows Version of MouseKeys. I can't seem to find the ascii values for the numpad though. Does anyone know what they are?
I was just using 10 pixels as an example. Thanks for the help.
So if i wanted to move the cursor 10 pixels up it would be:
int x,y;
POINT XY;
GetCursorPos( &XY );
y = Y + 10;
SetCursorPos(x,y);
Thanks very much! I now have the keyboard part done. Now I need a function to find out where the mousecursor currently is. I think its GetCursorPosition, but I dont know how to use it properly. If...
Im working on a final project for grade 11 and I need to know how to use ASCII. I've looked for tutorials and other information, but its too complicated for me. Basicaly what I need to do is have an...
Wow. That was way simpler than I thought it would be! Thanks very much! Now I need to do the whole joystick part...WooHoo... :( Any resources you might suggest for that?
BTW: how do you make it...
Im doing a term project in grade 11 computer and information science. My project has a joystick that will controll the mouse. Unfortunatly, im fairly new to C++, and I don't how to move the mouse......