Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
auto-detecting screen resolution for optimal window size on non-Windows systems
#8
Doesnt desktop height and width get the same thing in Windows?

Code: (Select All)
' auto detect max screen size
Screen _NewImage(800, 600, 32) ' set a screen too large
_FullScreen , _Smooth ' go to fullscreen
_Delay 2 ' wait 2 second
height% = _ResizeHeight ' get max screen height
width% = _ResizeWidth ' get max screen width
_Dest 0
Cls
Print "screen resolution is "; width%; "x"; height%
Print " Desktop W, H:"; _DesktopWidth, _DesktopHeight
Sleep
System

Yes, yes it does in my win 10 anyway.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: auto-detecting screen resolution for optimal window size on non-Windows systems - by bplus - 11-10-2025, 02:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 387 12-24-2025, 09:36 PM
Last Post: paulel
  Font Size in Threads Dimster 5 356 12-12-2025, 04:49 PM
Last Post: Dimster
  is there any way to position the inputbox$ window? madscijr 21 1,613 11-06-2025, 09:54 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 214 10-26-2025, 06:58 PM
Last Post: madscijr
  Play wav file in the background without a window on the forground Rudy M 12 1,125 09-18-2025, 07:08 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)