I am using the following code to activate windows via the taskbar:
def activateTaskbarWindow(index): # this starts counting at 1
index=int(index) # ensure integer not string
# there are exactly twice as many windows for some reason
bc=[taskbar.RunningApplications.GetButtonRect(i) for i in
r = bc[2*(index-1)+1] # get rectangle of desired window
# activate foreground window with a click
As you can see, I'm using the mouse to click on the taskbar with the
Is there an alternative method that does not use the mouse?
Thanks in advance.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.