View previous topic :: View next topic |
Author |
Message |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 9:16 pm Post subject: Does anyone have GetCursorPos source or file? |
|
|
Source would be better, but just a file is cool. I've looked up tuts but without an actual source I can't really learn. I'm more of a hands-on learner, so it's much easier when I have source in front of my face.
I need it for learning purposes and I'm making a U/A for USB/Vista
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Wed Mar 04, 2009 9:36 pm Post subject: |
|
|
Are you serious? MSDN, use it.
|
|
Back to top |
|
 |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 9:42 pm Post subject: |
|
|
I have no clue wtf it is saying. I see one code and it is:
Code: | BOOL GetCursorPos(
LPPOINT lpPoint
); |
Which if I put in VS, does nothing but give me a shit load of errors.
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Mar 04, 2009 9:44 pm Post subject: |
|
|
Cyrusmages wrote: | I have no clue wtf it is saying. I see one code and it is:
Code: | BOOL GetCursorPos(
LPPOINT lpPoint
); |
Which if I put in VS, does nothing but give me a shit load of errors. |
learn to code before you go and try to make hacks. You have no idea the basic syntax of w/e language you are using (assumed c++)
_________________
|
|
Back to top |
|
 |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 9:45 pm Post subject: |
|
|
I'm trying to learn and not trying to make a hack anyways... All I want is a simple getcursor pos to make an iMax script >_<
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Mar 04, 2009 9:46 pm Post subject: |
|
|
Cyrusmages wrote: | I'm trying to learn and not trying to make a hack anyways... All I want is a simple getcursor pos to make an iMax script >_< |
Do you want me to make you a program that will get the onscreen positions?
_________________
|
|
Back to top |
|
 |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 9:48 pm Post subject: |
|
|
If you would, that would be awesome and I would love you (no homo), that's what I'm trying to do anyways. I thought that was what GetCursorPos was?
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Wed Mar 04, 2009 10:01 pm Post subject: |
|
|
He's planning on using a scripting language. Who knows what syntax it uses... aka read the fucking files included with the script engine.
_________________
|
|
Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Wed Mar 04, 2009 10:01 pm Post subject: |
|
|
Cyrusmages wrote: | If you would, that would be awesome and I would love you (no homo), that's what I'm trying to do anyways. I thought that was what GetCursorPos was? |
Blankrider is right, learn the language before you try to do anything.
http://www.cplusplus.com/doc/tutorial/
Here is what you are looking for, just so this topic can die:
Code: | #include <windows.h>
#include <stdio.h>
#pragma comment(lib, "USER32")
int main(void)
{
POINT pCoord;
for(;;) {
GetCursorPos(&pCoord);
printf("x: %d - y: %d\n", pCoord.x, pCoord.y);
Sleep(1000);
}
} |
Can't get any simpler than that.
|
|
Back to top |
|
 |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 10:19 pm Post subject: |
|
|
I put it in the C++ thing on Visual Studio like this
Code: | // Curs.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#pragma comment(lib, "USER32")
int main(void)
{
POINT pCoord;
for(;;) {
GetCursorPos(&pCoord);
printf("x: %d - y: %d\n", pCoord.x, pCoord.y);
Sleep(1000);
}
}
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
|
And it won't lemme debug, it says it's unable to start.
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
|
Back to top |
|
 |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 10:38 pm Post subject: |
|
|
And neither of those attachments work, god damn, I'm not a fucking moron at forums, I used to search function -.- I'm just a fucking moron at coding anything but HTML
EDIT: Nevermind, I redownloaded iMax 4.8 on someones request and there is a script there that gives me mouse pos. I had deleted the file before, lol
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Mar 04, 2009 11:22 pm Post subject: |
|
|
Cyrusmages wrote: | I put it in the C++ thing on Visual Studio like this
Code: | // Curs.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#pragma comment(lib, "USER32")
int main(void)
{
POINT pCoord;
for(;;) {
GetCursorPos(&pCoord);
printf("x: %d - y: %d\n", pCoord.x, pCoord.y);
Sleep(1000);
}
}
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
|
And it won't lemme debug, it says it's unable to start. |
this is why you should learn the language. You have 2 entry functions here (main and _tmain) . Also whats with the random user32.dll. The complier automatically links to user32, kernel32, and gdi32.
_________________
|
|
Back to top |
|
 |
Cyrusmages Grandmaster Cheater Supreme
Reputation: 0
Joined: 22 Feb 2009 Posts: 1358
|
Posted: Wed Mar 04, 2009 11:36 pm Post subject: |
|
|
Or I could just use the script that works in iMax and find out my method of U/A doesn't work because On-Screen keyboard is homo.
I don't see why someone would tell someone else to spend weeks/months to learn a language and make one fucking code that someone offered to make like it was nothing.
EDIT: and btw, the code I put was the one that the other guy gave me, I just double clicked the form to get to the source and put it where it looked like it fit in.
_________________
If you have a mic, add me and tell me that you're from CEF or I won't add you (probably) |
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Mar 04, 2009 11:44 pm Post subject: |
|
|
Cyrusmages wrote: | Or I could just use the script that works in iMax and find out my method of U/A doesn't work because On-Screen keyboard is homo.
I don't see why someone would tell someone else to spend weeks/months to learn a language and make one fucking code that someone offered to make like it was nothing.
EDIT: and btw, the code I put was the one that the other guy gave me, I just double clicked the form to get to the source and put it where it looked like it fit in. |
We are trying to help you, you arrogant prick. Also, you don't put it where it fits in, you have 2 mains and wandered why it threw an error; you have no idea what the code is doing. You made it sound like you wanted to actually do something in c++. Couldn't you just dl a program to give you onscreen mouse cords. It seems pretty stupid.
_________________
|
|
Back to top |
|
 |
|