Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

ScreenResolution (Freeware)

It's not always easy to obtain the screen size in your custom script or batch files. But with this ScreenResolution Java class, you can now obtain the screen resolution of you computer that is running any operating system. You can use it on the command-line to determine the screen resolution at any time. Or use it in your custom shell scripts or batch files to automate tasks.

ScreenResolution is written in Java, so it will run on any Java-supported operating system. ScreenResolution takes advantage of the CI Class Package 5.4 or newer. You will have to download the package (from this web site) and install it if you don't have it already.

ScreenResolution is distributed as Freeware. Please see the "Freeware License Agreement" elsewhere on this site.

Usage

java ScreenResolution

Example

$ java ScreenResolution
1024x600

$ java ScreenResolution
1600x1200

Attached File: ScreenResolution.class (2 KB)

Chieh Cheng
Sun, 12 Apr 2009 17:00:15 +0000

Example of Using ScreenResolution in Your Bash Script

  screenResolution=`java ScreenResolution`
screenWidth=`echo "${screenResolution}" | cut -d"x" -f1`
screenHeight=`echo "${screenResolution}" | cut -d"x" -f2`

Chieh Cheng
Mon, 13 Apr 2009 02:11:06 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 7 + 0?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

52 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.