Again, I don't know exactly what gLeftRightMargin is doing, so I left that part commented out. This part works for me:local hMonitor = acGetMonitorFromPoint(gsx, gsy)
local rt = acGetMonitorRight(hMonitor, 1)
local lt = acGetMonitorLeft(hMonitor, 1)
if gsy < 250 then
acMessageBox("gsy: "..gsy.." rt/2: "..(rt/2).." gex: "..gex)
if gsx < (rt / 2) then
acMessageBox("gsx < (rt / 2) = true")
--if gex > (rt - gLeftRightMargin) then
-- acMessageBox("it works")
--else
-- nothing here
--end
end
else
--nothing here
end