PDA

View Full Version : screen resolution



BILLIS
08-17-2003, 06:33 AM
Hey to everybody!
it is the second time I ask sth in the forum, and I am still a newbey. I want to make a project for the univercity, that analyse the screen resolution and suggest the proper one. As long as I have difficulty in understanding complex scripts, I cant think of it... could you help me somehow? I didnt find a similar ask in the forum.

tnx for advance
billis

eric_darling
08-17-2003, 01:30 PM
Here are a few threads that deal with the issue:

http://www.indigorose.com/ubbthreads/showflat.php?Cat=&Board=_project_help&Number=21001 &page=&view=&sb=&o=&vc=1

http://www.indigorose.com/ubbthreads/showflat.php?Cat=&Board=_project_help&Number=20262 &page=&view=&sb=&o=&vc=1

http://www.indigorose.com/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=20191&page=&vi ew=&sb=&o=&vc=1

http://www.indigorose.com/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=18559&page=&vi ew=&sb=&o=&vc=1

Suffice it to say that this particular question comes up all the time. /ubbthreads/images/icons/smile.gif

BILLIS
08-17-2003, 02:31 PM
tnx for your reply!

the artilcles you suggest cannt help since I dont know to utilize the actions GETINFORMATION(HORIZONTAL RESOLUTION/ VERTICAL RESOLUTION).

after putting these two actions, I want to make a TRUE/FALSE condition, if the rezolution is 600x800 or not, and pop a dialogue box suggesting user changing his resolution.

My ingnorance about scripting make it hard to connect these actions. I made the script below, that dont work (what a surprise!). It may be a kiddy script but it s all I can do.

%resolution% = System.GetInformation("Horizontal Resolution")
%resolution% = System.GetInformation("Vertical Resolution")
IF(%resolution% = 600x800)
END IF
ELSE
%Result% = Dialog.MessageBox ("Title","change your screen resolution to 600x800")
END IF


The result is a big fat yellow stinking nothing!!! Any heeeelp pleaseeeee??????????????????

eric_darling
08-17-2003, 03:52 PM
First of all, you need to name the variables two different things. The way you did it, the variable %resolution% gets overwritten with just Vertical Resolution.

So, set a script up like this:

%vres% = System.GetInformation("Vertical Resolution")
%hres% = System.GetInformation("Horizontal Resolution")

IF %vres% + %hres% != 1400
%Result% = Dialog.MessageBox ("Title","change your screen resolution to 800x600")
END IF
------------------------------------

I usually build two separate projects, one at 1024x768 and one at 800x600. I build a third project that is only 1x1 pixels, and in its Project OnInitialize action list I incorporate similar script to the above functions telling it to File.Execute the appropriate project. Your method will only tell the user he/she should change their monitor resolution themselves. An autolaunching project that sniffs a user's monitor resolution and directs the appropriate sized project to run is probably a much more smooth method.

BILLIS
08-18-2003, 03:28 AM
tnx
I am going to work it, and I let you know if it s ok!

BILLIS
08-18-2003, 07:39 AM
powerful!

it works smooth!
tnx