Dec-27-2018, 04:28 PM
ubuntu 16.04 LTS 64 bit
python 3.5.2
firefox 64.0 64 bit
Hi,
I am learning python3 with https://automatetheboringstuff.com/chapter18. I want to open a browser window of a certain size or set an opened browser window to a certain size.
My question is about Hotkey Combinations
The following program (open command screen via shortcut ctrl+alt+t) is working fine:
import pyautogui
pyautogui.hotkey('ctrl','alt','t')
but not this program (change position of window to top left via ctrl+alt+7) although there is only '7' instead of 't':
import pyautogui
pyautogui.hotkey('ctrl','alt','7')
Placing a focus
pyautogui.click(100,100);pyautogui.hotkey('ctrl','alt','7')
does not help.
Further:
Opening a window with
import webbrowser
webbrowser.open('https://www.google.com')
the size of the window seems to depend on the last window-closing.
What's incorrect? How are you placing a browser window?
I have installed pyautogui via pip3 according to
https://pyautogui.readthedocs.io/en/late...board.html
Thanks for any hint!
python 3.5.2
firefox 64.0 64 bit
Hi,
I am learning python3 with https://automatetheboringstuff.com/chapter18. I want to open a browser window of a certain size or set an opened browser window to a certain size.
My question is about Hotkey Combinations
The following program (open command screen via shortcut ctrl+alt+t) is working fine:
import pyautogui
pyautogui.hotkey('ctrl','alt','t')
but not this program (change position of window to top left via ctrl+alt+7) although there is only '7' instead of 't':
import pyautogui
pyautogui.hotkey('ctrl','alt','7')
Placing a focus
pyautogui.click(100,100);pyautogui.hotkey('ctrl','alt','7')
does not help.
Further:
Opening a window with
import webbrowser
webbrowser.open('https://www.google.com')
the size of the window seems to depend on the last window-closing.
What's incorrect? How are you placing a browser window?
I have installed pyautogui via pip3 according to
https://pyautogui.readthedocs.io/en/late...board.html
Thanks for any hint!