Troulbe finding the screen # from App.focusedWindow?
Asked by
Sam
I'm simply trying to find the screen number that I am focused on.
PathChrome = "C:\Users\
firstWindow = App.focusedWindow()
firstwindow = str(firstWindow)
print firstWindow
#firstWindow = "R[-1600,0 1600x900]
screenNum = firstWindow[
print screenNum
I can print firstWindow just fine. I can even search it's text just fine when I put it in manually, but for whatever reason I can't seem to get the code to work.
Any insight is appreciated. Thank you
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Sam for more information if necessary.
To post a message you must log in.