Foro de elhacker.net

Programación => .NET (C#, VB.NET, ASP) => Mensaje iniciado por: Eleкtro en 8 Febrero 2016, 19:23 pm



Título: [SOURCE] Mouse Point Viewer
Publicado por: Eleкtro en 8 Febrero 2016, 19:23 pm
(http://i.imgur.com/gNucZ10.jpg)
Mouse Point Viewer


La finalidad de esta aplicación es mostrar las coordenadas relativas a la ventana actual en donde esté situado el puntero del ratón, tan simple como eso.

Esta aplicación la he desarrollado como favor personal a un compañero del foro, esto quiere decir que no me he esforzado tanto como en un trabajo o un proyecto personal ...más de lo necesario para que funcione quiero decir, y el código fuente está sin documentar, pero apenas son 150 lineas de código en su totalidad, y los pocos p/invokes que he utilizado se pueden buscar en la web de MSDN quien no entienda su funcionalidad.

Añadí una opción para ignorar las ventanas hijas, pienso que será de utilidad ya que posiblemente quien utilice esta herramienta querrá saber las coordenadas relativas a la ventana padre que hospeda "X" control, y no a la ventana del control.

EDITO: Ahora que lo pienso, no lo he testeado con los controles de ventanas MDI, pero si hay algún problema con eso me avisan y lo soluciono.



Demostración

(http://i.imgur.com/rnlElfY.gif)



Descarga

Desde GitHub pueden descargar el executable o todo el código fuente.

(http://i.imgur.com/FgHt8jb.png) (https://github.com/ElektroStudios/Mouse-Point-Viewer/releases/latest)

Saludos!


Título: Re: [SOURCE] Mouse Point Viewer
Publicado por: .:UND3R:. en 9 Marzo 2016, 04:37 am
Funcionó a la perfección muchísimas gracias Elektro  ;-) eres un crack, saludos y gracias nuevamente


Título: Re: [SOURCE] Mouse Point Viewer
Publicado por: Eleкtro en 9 Marzo 2016, 06:22 am
Me alegro de que te haya servido :)

saludos!


Título: Re: [SOURCE] Mouse Point Viewer
Publicado por: meaf75 en 21 Abril 2017, 04:33 am
No funciona bien (Y) en un JApplet


Título: Re: [SOURCE] Mouse Point Viewer
Publicado por: Eleкtro en 22 Septiembre 2017, 17:35 pm
No funciona bien (Y) en un JApplet

Lo siento por la tardanza, y te agradezco que notifiques de fallos en la detección, pero el programa fue algo que desarrollé en poco rato y tan solo para ayudar al compañero .:UNDER:. en un apuro, por ese motivo no voy a publicar más releases e intentar mejorar la detección de ventanas ( es un tema más complejo de lo que parece: https://blogs.msdn.microsoft.com/oldnewthing/20101230-00/?p=11873 (https://blogs.msdn.microsoft.com/oldnewthing/20101230-00/?p=11873) ).



Los chicos de Softpedia.com me han comunicado que han hecho una review del programa y han añadido un enlace de descarga adicional en su servidor. Me he quedado bastante impresionado al ver lo bien que han logrado hacer una review detallada de un programa cuya funcionalidad es bastante simple xD, y bueno, me apetece compartirlo con vosotros y así tendreís una mejor idea de lo que hace mi programa:

Citar
View the relative and screen coordinates of the mouse pointer at all times, and learn each window's process ID and handle, with this small, open-source utility

Mouse Point Viewer is a small, open-source application that displays the current coordinates of the mouse pointer, both within the selected window and on the entire display. Additionally, it can show you each window’s process ID, handle and caption.
Nothing to install – just download the program and run it

This is clearly a very simple application, and the good news is that it is remarkably easy to deploy. Once you have downloaded the program, you can launch it instantly from any location, which means you can use it on any PC without leaving anything behind.

The application stores no data locally, but this also means your configurations are not saved. Thankfully, though, there are only two settings available, so this shouldn’t be an issue.
View the mouse cursor’s location at all times

It isn’t too difficult to figure out what this application does – once launched, the mouse pointer’s coordinates are displayed in the main window, and this information is updated at a user-defined interval.

However, the utility displays other useful info as well, namely the selected window’s process ID, handle and caption. If you wish, you can also have the application ignore child windows.

You will notice that two sets of coordinates are displayed. The relative coordinates are only in relation to the highlighted window, while the screen coordinates, as you can probably guess, are in relation to the entire screen.
Very simple utility for users who need to track the mouse pointer’s location

All in all, Mouse Point Viewer is a lightweight program that shows you the coordinates of the mouse pointer on the screen and within the current window at all times. It is straightforward, and it does not even need to be installed before use.

If, for some reason, you need to keep track of the mouse pointer’s coordinates, this program can certainly get the job done.

  • http://www.softpedia.com/get/System/System-Miscellaneous/Mouse-Point-Viewer.shtml

Saludos.