Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - mousesetrowcol() move the mouse cursor to the specified position http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mousesetrowcol()    Move the mouse cursor to the specified position
------------------------------------------------------------------------------
 Declaration
   mouse.hdr

 Syntax
   proc mousesetrowcol extern
   param value uint uNewRow, ;
         value uint uNewCol

 Arguments
   uNewRow is a screen row.
   uNewCol is a screen column.

 Return
   None.

 Description
   This procedure positions the mouse cursor to the specified screen row and
   column.

 Example
   #define EXAMPLE_MOUSE
   #include example.hdr

   proc Test_mousesetrowcol
   if mouseavail()
      // start mouse in screen corner rather than in the middle of the screen
      detectmaxrowcol()
      mousedefarea( 0, 0, __max_row, __max_col )
      mousesetrowcol( __max_row, __max_col )
      mouseon()
      mousebuttwpress( MB_LEFT )
      mouseoff()
   else
      ? "Mouse is not available"
   endif
   endproc

   proc main
   Test_mousesetrowcol()
   endproc

See Also: mousedefarea() mousesetcol() mousesetrow()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson