| View previous topic :: View next topic |
| Author |
Message |
Hokurai Advanced Cheater
Reputation: 0
Joined: 18 Sep 2008 Posts: 95
|
Posted: Sun Nov 16, 2008 8:27 pm Post subject: I need a way to view the mouse position. |
|
|
| I'm trying to make a bot for a game to click on certain places on the game so I need a program or something that will let me view the position of the mouse. Also, I wasn't sure where to put this thread so sorry if this is the wrong place.
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Sun Nov 16, 2008 8:28 pm Post subject: |
|
|
GetCursorPos();
_________________
|
|
| Back to top |
|
 |
Hokurai Advanced Cheater
Reputation: 0
Joined: 18 Sep 2008 Posts: 95
|
Posted: Mon Nov 17, 2008 12:04 am Post subject: |
|
|
| And how would I use that? xD I'm making the bot using AutoHotkey. o.o
|
|
| Back to top |
|
 |
sloppy Expert Cheater
Reputation: 0
Joined: 17 Aug 2008 Posts: 123
|
|
| Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Mon Nov 17, 2008 3:30 am Post subject: |
|
|
You would find it easier to understand Autoit.
Also, remember to check the help files, it saves you looking stupid
|
|
| Back to top |
|
 |
Hokurai Advanced Cheater
Reputation: 0
Joined: 18 Sep 2008 Posts: 95
|
Posted: Mon Nov 17, 2008 2:45 pm Post subject: |
|
|
| I forgot about the help files. o.o
|
|
| Back to top |
|
 |
blackmorpheus Expert Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 159
|
Posted: Mon Nov 17, 2008 4:50 pm Post subject: |
|
|
in C++ u can use:
| Code: |
POINT pos;
GetCursorPos(&pos);
int Xcoord = pos.x;
int Ycoord = pos.y;
and you can do whatever u want with X and Y..
Also if u want to get the real coordinates,
HWND hWnd = FindWindow(NULL, T"name of window");
ScreenToClient(hWnd, &pos); |
|
|
| Back to top |
|
 |
Hokurai Advanced Cheater
Reputation: 0
Joined: 18 Sep 2008 Posts: 95
|
Posted: Mon Nov 17, 2008 8:00 pm Post subject: |
|
|
I just realized that autohotkey has a thing built in called window spy that says the mouse position and window name the mouse is over.
|
|
| Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Tue Nov 18, 2008 3:48 am Post subject: |
|
|
yes it does, so does Autoit, Window Info Tool
Does alot more than that tho, can also tell you the window name, object handle, pixel color etc.
All works by using the same functions included in both programs GetPixel, GetMousePos, WinGetHandle.
|
|
| Back to top |
|
 |
|