His coding style is horrible ^^
Code: Select all
Window_getPosEx(hWindow, ByRef X = "", ByRef Y = "", ByRef Width = "", ByRef Height = "", ByRef Offset_X = "", ByRef Offset_Y = "") {
; ...
return &RECTPlus
}
Code: Select all
Window_move(wndId, x, y, width, height) {
if !(wndId) ????????? Window_getPosEx(wndId, wndX, wndY, wndW, wndH) ; <- this makes no sense
&& (Abs(wndX - x) < 2)
&& (Abs(wndY - y) < 2)
&& (Abs(wndW - width) < 2)
&& (Abs(wndH - height) < 2)
return 0
}
Code: Select all
if !(wndId)
?? Window_getPosEx(wndId, wndX, wndY, wndW, wndH) ; <- should be ! (not addr)
&& (Abs(wndX - x) < 2)
&& (Abs(wndY - y) < 2)
&& (Abs(wndW - width) < 2)
&& (Abs(wndH - height) < 2)
or better this way:
Code: Select all
Window_getPosEx(wndId, wndX, wndY, wndW, wndH)
if !(wndId)
&& (Abs(wndX - x) < 2)
&& (Abs(wndY - y) < 2)
&& (Abs(wndW - width) < 2)
&& (Abs(wndH - height) < 2)