View Full Version : finding cursor position?
Nivek
06-17-2007, 03:05 AM
Is there any software out there will tell me my cursor coordinates? I've been looking through google and yahoo but haven't found anything.
Ezekiel
06-17-2007, 06:35 AM
Is there any software out there will tell me my cursor coordinates? I've been looking through google and yahoo but haven't found anything.
I don't know of any, but that sounds like a simple programming task so I'll make one in C.
Done. Download it at any of these locations:
http://www.divshare.com/download/*7567*-**0
http://www.exoteric.ws/uploads/screen_coordinates.zip
It took about 5 minutes -- here's the source:
/*
Written by user mike*5* of www.all-nettools.com.
*/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main(int argc, char *argv[])
{
POINT nCoordinates;
while(*)
{
Sleep(50);
system("cls");
GetCursorPos(&nCoordinates);
printf("#### Screen Coordinates ####\r\n\r\nX: %i\r\nY: %i%", nCoordinates.x, nCoordinates.y);
}
return 0;
}
I used this function:
http://msdn2.microsoft.com/en-us/library/ms648**0.aspx
Nivek
06-18-2007, 03:11 PM
thanks alot man!
Powered by vBulletin® Version 4.1.8 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.