I been playing around with a bunch of things, trying to auto-position my program, and have a relative width / height no matter what your resolution.
Rem Project: httppost
Rem Created: Monday, August 23, 2010
Rem ***** Main Source File *****
sync on
set window on
set window title "MyMobster"
load dll "user32.dll",1
Sw=call dll(1,"GetSystemMetrics",0)
Sh=call dll(1,"GetSystemMetrics",1)
Rem Set the width and height for the program
Tw#=Sw / 2
Th#=Sh / 2
Rem Auto position the program to be relative the what is above and have it centered.
Pw#=Tw# / 2
Ph#=Th# / 2
delete dll 1
Rem Sets program width / height
set display mode Tw#,Th#,32,1
sync rate 60
Rem Set position.
set window position Pw#, Ph#
do
loop
end
Finally looks good.
Yes it is noob, but keeps my motivation high
"The eternal mystery of the world is its comprehensibility."
-Albert Einstein
Join this vent for Dark Programming - lead.typefrag.com:16020