how can i achieve free / float / roaming cursor, just like the ide shipped with fasm. (can move up, down, right, and left)
there is a way in my mind, but im not sure if its good enough:
loop:
SetConsoleCursorPosition (output handle, coord)
GetAsyncKeyState (left arrow)
if pressed, decrease x coord and jump to loop
GetAsyncKeyState (up arrow)
if pressed, decrease y coord and jump to loop
GetAsyncKeyState (right arrow)
if pressed, increase x coord and jump to loop
GetAsyncKeyState (down arrow)
if pressed, increase y coord and jump to loop
if there is a WINAPI have the same functionality then please let me know about it.
also if you know api's the Gets the current Cursor position please let me know.
thanks.
_________________ Asm For Wise Humans
|