You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xdotool key Alt+Tab on Ubuntu, not switch app window? To use as alternative to pyautogui asweigart/pyautogui#93
xdotoolkeyAlt+Tab
or
importsubprocessimporttime# Give some time to switch to the desired windowtime.sleep(2)
# Use xdotool to simulate Alt+Tabsubprocess.run(['xdotool', 'key', 'Alt+Tab'])
nor does the following work
importsubprocessimporttimeif__name__=='__main__':
# pyautogui.keyDown('alt')# Use xdotool to simulate Alt+Tabsubprocess.run(['xdotool', 'keydown', 'alt', 'key', 'Tab'])
time.sleep(1) # You might need to adjust the sleep durationsubprocess.run(['xdotool', 'keyup', 'alt'])
The text was updated successfully, but these errors were encountered:
xdotool key Alt+Tab on Ubuntu, not switch app window? To use as alternative to pyautogui asweigart/pyautogui#93
or
nor does the following work
The text was updated successfully, but these errors were encountered: