Mouse position: Difference between revisions

Line 1,461:
set y [expr {[winfo pointery .] - [winfo rooty $curWindow]}]
tk_messageBox -message "the mouse is at ($x,$y) in window $curWindow"</lang>
 
screen coordinates
<lang tcl>puts "monitor/display coordinate x = [winfo pointerx .]"</lang>
 
=={{header|Visual Basic}}==
Anonymous user