sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47255
Re: [Question #669559]: Change Display resolution in Script
Question #669559 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669559
Status: Answered => Open
yop is still having a problem:
Thanks for your reply,
i try whith "Screen.showMonitors()" . (in this exemple, i launch the IDE SIkuli in 1920x1080)
The message is already (after ""xrandr -s 1600x900", "xrandr -s 1280x800") :
monitor configuration [ 1 Screen(s)] ***
*** Primary is Screen 0
Screen 0: S(0)[0,0 1920x1080]
*** end monitor configuration ***
--> OK whit your description whith IDE Sikuli
i try with "Screen.resetMonitors()" and it does not work too (yet i believed ! :-)
The message is already (after ""xrandr -s 1600x900", "xrandr -s 1280x800") :
*** BE AWARE: experimental - might not work ***
[error] Re-evaluation of the monitor setup has been requested
[error] ... Current Region/Screen objects might not be valid any longer
[error] ... Use existing Region/Screen objects only if you know what you are doing!
*** new monitor configuration [ 1 Screen(s)] ***
*** Primary is Screen 0
Screen 0: S(0)[0,0 1920x1080]
[error] *** end new monitor configuration ***
***
--> Everytime it says "1920x1080"
My Script is :
def Res1600x900():
App.open('gnome-terminal')
wait(0.5)
paste('xrandr -s 1600x900')
wait(0.5)
type(Key.ENTER)
wait(1)
App.close('gnome-terminal-server')
wait(1)
Screen.resetMonitors()
wait(1)
--> I try a Workaround whith the commande line and it for that i've open the :
https://answers.launchpad.net/sikuli/+question/669554
:-)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.