Passing argument value dynamically
Hi,
I want to pass the height and width value of my current monitor screen to the opened terminal dynamically. How i can achieve thi? I've tried few syntax, seems it's not working.
Below is my snippet-
cmdPath = os.getenv(
SCREEN=Screen(0)
print(showMonit
r=SCREEN.getRect()
w=r.width
print(w)
h=r.height
print(h)
title = "My Command Line"
cmd = 'start "%s" %s'%(title, cmdPath)
os.popen(cmd);
wait(3)
type("mode con: cols=\"h\" lines=\"w\"")
type(Key.ENTER)
type("CD E:")
type(Key.ENTER)
type("CD E:\Pritam\
type(Key.ENTER)
wait(1)
type("test.bat")
type(Key.ENTER)
type("mode con: cols=\"h\" lines=\
Sikuli version- 2.0.3
Java- jdk 1.8
Regards,
Cris
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: