This would make an excellent plug-in feature anyone! or a built in function
Having trouble finding Y axis don't really know where to look .. MSDN says something about point(ers) and structures if anybody can find a BTM script way to find the "Y" axis could mean a useful way to Draw without writing any btm code. using something like %@len[%@clip[]]
DrawHline %y %x %@len[%@clip[]] 1 7 on 0
The following script is able to find X axis with mouse movements
cls
setlocal
*unset /q *
setdos /s0:0 /x-678
set xc=%@eval[%@winmetrics[0] \ %_columns]
do forever
set x=%@eval[%@unicode[%@winapi[user32.dll,GetCursorPos,BUFFER]] \ %xc]
set xx=%@unicode[%@winapi[user32.dll,GetCursorPos,BUFFER]]
set y=Unknown
if %_kbhit == 1 leave
screen %@eval[%_rows \ 3] 999 %@format[13,X_column=%X] %@format[13,X_Pixels=%xx]
screen %@eval[(%_rows \ 3) + 2] 999 %@format[13,Y_row=%y] %@format[13,Y_Pixels=%y]
enddo
endlocal
setdos /x0 /s100:10
Having trouble finding Y axis don't really know where to look .. MSDN says something about point(ers) and structures if anybody can find a BTM script way to find the "Y" axis could mean a useful way to Draw without writing any btm code. using something like %@len[%@clip[]]
DrawHline %y %x %@len[%@clip[]] 1 7 on 0
The following script is able to find X axis with mouse movements
cls
setlocal
*unset /q *
setdos /s0:0 /x-678
set xc=%@eval[%@winmetrics[0] \ %_columns]
do forever
set x=%@eval[%@unicode[%@winapi[user32.dll,GetCursorPos,BUFFER]] \ %xc]
set xx=%@unicode[%@winapi[user32.dll,GetCursorPos,BUFFER]]
set y=Unknown
if %_kbhit == 1 leave
screen %@eval[%_rows \ 3] 999 %@format[13,X_column=%X] %@format[13,X_Pixels=%xx]
screen %@eval[(%_rows \ 3) + 2] 999 %@format[13,Y_row=%y] %@format[13,Y_Pixels=%y]
enddo
endlocal
setdos /x0 /s100:10