Re: Editor
- Posted by ryanj Dec 26, 2014
- 4451 views
dcuny said...
Anything in the config file strike you as odd here?
x_pos=4294935296 y_pos=4294935296 x_size=160 y_size=38You might want to add some sanity checks in.
- David
I don't if this is helpful, but i use this to get the display size:
xGetSystemMetrics = link_c_func(user32, "GetSystemMetrics", {C_INT}, C_INT) constant SM_CXSCREEN = 0, SM_CYSCREEN = 1 public function getPrimaryDisplaySize() --get size of primary display atom cx, cy cx = c_func( xGetSystemMetrics, { SM_CXSCREEN } ) cy = c_func( xGetSystemMetrics, { SM_CYSCREEN } ) return {cx, cy} end function