How to Change Screen Resolution ?
9 25172
How to Change Screen Resolution ?
The maximum screen resolution depends on your hardware.
A program may be run in DOS mode. That may be what you are looking for.
Please tell us more about your system and what you are trying to do.
Thanks for joining.
Win/Mac/Linux Change Display Screen Resolution Settings = 800x600
to change the resolution of your desktop click:
Start->Control Panel->Display->Settings (tab)
then change the resolution there
Win/Mac/Linux Change Display Screen Resolution Settings = 800x600
This was moved from the Python forum because it looked like a window question.
I'll move it back if you are trying to control the screen resolution from python. But you must be clear about what you are trying to do and what you have done so far in this regard.
I am sorry..i couldn't explain.
My English is not good..
How to change the desktop resolution via python?
Ex: -
import os
-
sistem=os.name
-
if sistem=="nt"
-
#Change screen resolution for windows
-
ChangeResolution = 800x600
-
elif sistem=="posix":
-
#Change screen resolution for unix-linux
-
ChangeResolution = 800x600
-
....
-
....
-
else:
-
#Change screen resolution for mac
-
ChangeResolution = 800x600
-
vs..
Thanks..
I am sorry..i couldn't explain.
My English is not good..
How to change the desktop resolution via python?
Ex: -
import os
-
sistem=os.name
-
if sistem=="nt"
-
#Change screen resolution for windows
-
ChangeResolution = 800x600
-
elif sistem=="posix":
-
#Change screen resolution for unix-linux
-
ChangeResolution = 800x600
-
....
-
....
-
else:
-
#Change screen resolution for mac
-
ChangeResolution = 800x600
-
vs..
Thanks..
On Windows:
Do a google search for "Programmatically change display resolution".
Get that package working from the command line.
Then Python will be able to: - os.system("chscrres 800 600")
Although, I don't think is't a good idea for a program to change the screen resolution.
:(
ok.
Google>> http://mail.python.org/pipermail/tut...er/051106.html
Ex: -
import os, sys
-
-
import win32api
-
import win32con
-
import pywintypes
-
-
display_modes = {}
-
n = 0
-
while True:
-
try:
-
devmode = win32api.EnumDisplaySettings (None, n)
-
except pywintypes.error:
-
break
-
else:
-
key = (
-
devmode.BitsPerPel,
-
devmode.PelsWidth,
-
devmode.PelsHeight,
-
devmode.DisplayFrequency
-
)
-
display_modes[key] = devmode
-
n += 1
-
-
mode_required = (32, 1600, 1280, 70)
-
devmode = display_modes[mode_required]
-
win32api.ChangeDisplaySettings (devmode, 0)
-
-
#
-
# ... time passes
-
#
-
-
mode_required = (32, 1280, 1024, 70)
-
devmode = display_modes[mode_required]
-
win32api.ChangeDisplaySettings (devmode, 0)
-
Error:
"exceptions.keyError:(32, 1600, 1280, 70)"
:(
ok.
Google>> http://mail.python.org/pipermail/tut...er/051106.html
Ex: -
import os, sys
-
-
import win32api
-
import win32con
-
import pywintypes
-
-
display_modes = {}
-
n = 0
-
while True:
-
try:
-
devmode = win32api.EnumDisplaySettings (None, n)
-
except pywintypes.error:
-
break
-
else:
-
key = (
-
devmode.BitsPerPel,
-
devmode.PelsWidth,
-
devmode.PelsHeight,
-
devmode.DisplayFrequency
-
)
-
display_modes[key] = devmode
-
n += 1
-
-
mode_required = (32, 1600, 1280, 70)
-
devmode = display_modes[mode_required]
-
win32api.ChangeDisplaySettings (devmode, 0)
-
-
#
-
# ... time passes
-
#
-
-
mode_required = (32, 1280, 1024, 70)
-
devmode = display_modes[mode_required]
-
win32api.ChangeDisplaySettings (devmode, 0)
-
Error:
"exceptions.keyError:(32, 1600, 1280, 70)"
-
n = 0
-
while True:
-
try:
-
devmode = win32api.EnumDisplaySettings (None, n)
-
except pywintypes.error:
-
break
-
else:
-
key = (
-
devmode.BitsPerPel,
-
devmode.PelsWidth,
-
devmode.PelsHeight,
-
devmode.DisplayFrequency
-
)
-
display_modes[key] = devmode
-
n += 1
You now have a dictionary [display_modes], keyed on the
height, width and depth needed.
You'll want to print the dictionary to see what modes that your system is actually capable of: - for item in display_modes.items():
-
print item
How to Change Screen Resolution ?
It seems there is a small amount of ambiguity in what you are try to accomplish. Perhaps you could be more thorough in explaining what you want to do (not just change screen resolution, try insteas change screen resolution for a game, change default desktop resolution for....etc)
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Erik Bethke |
last post by:
Hello All,
I am trying to clean up some polish bugs with the Shanghai game I am
working on and I am currently stuck on trying to get the right event
for detecting when the user has changed the...
|
by: pjac |
last post by:
I need some help with some VB language that will change the screen
resolution on a monitor when a MS-Access 2000 database is opened from
1024 x 768 to 800 x 600.
Any help with this effort would be...
|
by: lauren quantrell |
last post by:
Is there a way to force a change in a user's screen resolution using
VBA code without having any input from the user?
Example: User John Backwards has his screen set to 800 x 600 pixels.
Backwards...
|
by: Bertrand1978 |
last post by:
Hi All.
I am using VC++/Visual Studio 6.0. I can get the current screen resolution
with GetSystemMetrics(), but how do you change the screen resolution ? I
guess I couldn't find a...
|
by: Darian |
last post by:
I am wondering how (if it is possible of course) I can change a users
screen resolution to a certain size when running my application and
then change it back when they exit my application.
For...
|
by: Bill Nguyen |
last post by:
My VB.Net app requires a minimum monitor resolution of 1024 x 768.
How to get user's screen resolution and set it to the minimum at runtime?
Thanks
Bill
|
by: Maxi |
last post by:
I have a 30X16 cells table in my html page. Table height and width are
set to 100%. I have set size of every cell inside the table to 24
pixel.
When I open the html page in maximize state in...
|
by: sab007 |
last post by:
my website is best viewed, and specially designed for 1024 X 786 and higher,
when shown on 800 X 600 it look horrible, now is it possible when the viewer
enters my site, his/her resolution will be...
|
by: barakat ameen |
last post by:
my flash movie settings 1024*768 how i can play it when the pc screen is 800*600 using falsh mx ??
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |