Article ID: 125464
Article Last Modified on 10/15/2003
void SetCursorPos(x,y)Here x and y are integers; x is the horizontal position and y is the vertical position. The function is void, so it does not return any value.
DECLARE integer SetCursorPos in WIN32API integer, integer =SetCursorPos(20,20) CLEAR DLLS
* Set library to FoxTools.FLL so we can call the Windows
* API function.
SET LIBRARY TO SYS(2004)+"foxtools.fll"
* Register the SetCursorPos with having two integer inputs
* and void return value.
setcurpos=REGFN("SetCursorPos","II","")
* Call the function and move the mouse to position 20,20.
callsetc=CALLFN(setcurpos,20,20)
* Release the FoxTools.FLL library.
SET LIBRARY TO
Additional query words: VFoxWin FoxWin
Keywords: kbcode KB125464