GetCursor WinAPI (User32)
Attention! 👉Starting November 2024, BlitzCoder.org will now be BlitzBasic.org.
Tweet blitz3d windows code-archives miscellaneous
A small B3D snippet to get the cursor position via WinAPI user32.dll, needs user32.dll decls
Author: turtle1776
lpPoint = createbank(8);big enough to handle two integers
result = api_GetCursorPos%(lpPoint)
if result = 1 ;if it worked
x = peekint(lpPoint,0)
y = peekint(lpPoint,4)
end if
freebank lpPoint
Reply To Topic (minimum 10 characters)
Please log in to reply