mob
proc
getscreenresolution()
var/width
var/height
var/totalsize
winset(usr,"default","is-maximized=true")
var/max = winget(usr,"default","is-maximized")
if(max)
totalsize = winget(usr,"default","size")
width = copytext(totalsize,1,findtext(totalsize,"x"))
height = copytext(totalsize,findtext(totalsize,"x")+1,lentext(totalsize)+1)
return "your screen res is [width]x[height]"
Problem description:
Basically I made this to get the screen resolution of a persons computer. It works by maximising the default window and then getting its size which should return the proper size of the persons screen. But for me it only returns the original size of the window which is 640x480 basically which is not my screen resolution.
http://www.byond.com/developer/Leur/ ScreenResolutionRetrieval