Mouse Info - Hover Location

Started by JTaylor, July 14, 2018, 12:40:09 PM

Previous topic - Next topic


I know there are ways to translate coordinates from various types to Dialog Units but wondering if any of the current functions return Dialog Units for a control location when hovering over Dialog Controls?  Not seeing it but thought maybe I was missing something.   

If I am not missing something I think it would be useful if this was an option in WinBatch.   That is under MouseInfo() having an option where it would give me the mouse coordinates in Dialog Units so I can make a straight-forward comparison to the results from option 17 in DialogControlGet().

...and just thought of something else...if it had an option to return the Control Name that would be useful at times I think. 

Again, if this is already possible please point me in the right direction.  Thanks.



Perhaps try Using some arithmetic on the output of the MouseCoords function.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade


Yes.  That is an option but was suggesting, assuming it wasn't available, the other as enhancements as it would, obviously, simplify some things. 

I opted for looping through the control variables and extracting the control type and name and then getting and comparing the button text with that from MouseInfo().   This seemed easier than finding the coordinates of the controls and converting that into something that would be comparable to the coordinates retrieved from MouseInfo().