Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Does anyone have GetCursorPos source or file?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 9:16 pm    Post subject: Does anyone have GetCursorPos source or file? Reply with quote

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
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Wed Mar 04, 2009 9:36 pm    Post subject: Reply with quote

Are you serious? MSDN, use it.
Back to top
View user's profile Send private message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 9:42 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Mar 04, 2009 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Mar 04, 2009 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 9:48 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Wed Mar 04, 2009 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Wed Mar 04, 2009 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 10:19 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Wed Mar 04, 2009 10:33 pm    Post subject: Reply with quote

Goddamn
http://forum.cheatengine.org/viewtopic.php?t=307485 or http://forum.cheatengine.org/viewtopic.php?t=281386 if all you want to do is get mouse coords.

_________________
Back to top
View user's profile Send private message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 10:38 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Mar 04, 2009 11:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cyrusmages
Grandmaster Cheater Supreme
Reputation: 0

Joined: 22 Feb 2009
Posts: 1358

PostPosted: Wed Mar 04, 2009 11:36 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Mar 04, 2009 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites