홈 · 개발 참고자료

개발 참고자료

[파우빌더] Move the mouse cursor

작성자
관리자
작성일
2016-10-16
조회
11207
분류
파워빌더
[structure definition for GetCursorPos function, str_point]
posx long
posy long

[local external function declaration]
FUNCTION boolean SetCursorPos(int cx, int cy) LIBRARY "User32.dll"
FUNCTION boolean GetCursorPos(ref str_point POINT) LIBRARY "User32.dll"

[clicked event of a button]
int i
str_point lstr_point

GetCursorPos(lstr_point)
FOR i = 0 TO 100
SetCursorPos(lstr_point.posx + i , lstr_point.posy + i)
NEXT