´api声明
public declare function findwindow lib "user32" alias "findwindowa" (byval lpclassname as string, byval lpwindowname as string) as long public declare function setwindowpos lib "user32" (byval hwnd as long, byval hwndinsertafter as long, byval x as long, byval y as long, byval cx as long, byval cy as long, byval wflags as long) as long private declare function screentoclient lib "user32" (byval hwnd as long, lppoint as pointapi) as long private declare sub mouse_event lib "user32" (byval dwflags as long, byval dx as long, byval dy as long, byval cbuttons as long, byval dwextrainfo as long) private declare function releasedc lib "user32" (byval hwnd as long, byval hdc as long) as long private declare function getcursorpos lib "user32" (lppoint as pointapi) as long private declare function setcursorpos lib "user32" (byval x as long, byval y as long) as long private declare function getpixel lib "gdi32" (byval hdc as long, byval x as long, byval y as long) as long private declare function getwindowrect lib "user32" (byval hwnd as long, lprect as rect) as long private declare function getdc lib "user32" (byval hwnd as long) as long´api类型定义
private type pointapi x as long y as long end type private type rect left as long top as long right as long bottom as long end type´方块类型定义
public enum box_type ox = 0 dog = 1 panda = 2 chicken = 3 cat = 4 frog = 5 monkey = 6 end enum´自定义方块数据类型x,y位方块坐标,type为方块类型.
´在easy对对碰1.5版中还加如了一些其他属性,例如是否带道具属性. public type box x as integer y as integer type as box_type end type ´api常量 ´鼠标事件常量 private const mouseeventf_leftdown = &h2 private const mouseeventf_leftup = &h4 private const mouseeventf_move = &h1 private const mouseeventf_absolute = &h8000 public const hwnd_topmost = -1 ... 下一页