ll_libload user, "user32.dll"
ll_getproc ClientToScreen, "ClientToScreen", user
#module
#undef mouse
#deffunc mouse int, int
mref x, 0 : mref y, 1
mref bmscr, 67
i = x, y
if i.0 >= 0 & (i.1 >= 0) {
prm = bmscr.13
ll_getptr i : ll_ret prm.1
ll_callfunc prm, 2, ClientToScreen@
}
mouse@hsp i.0, i.1
return
#global
box = 50, 50, winx - 50, winy - 50
px = box.0, box.2, box.2, box.0
py = box.1, box.1, box.3, box.3
sdim p, 5, 4
p = "左上", "右上", "右下", "左下"
color 200, 200, 100 : boxf
color , , 200 : boxf box.0, box.1, box.2, box.3
repeat 4
mes p.cnt
mouse px.cnt, py.cnt
wait 200
loop
stop
|