11-21-2022, 02:45 AM
Try this:
Code: (Select All)
dim as long w, h, iii
print "Starting..."
DO: LOOP UNTIL _SCREENEXISTS
for iii = 1 to 10
w = _DesktopWidth: h = _DesktopHeight
if w > 0 then exit for
_delay 0.5
next
if not(w > 0) then print "Sorry it didn't work!" : end
hd2 = h / 2