Python-UIAutomation-for-Windows icon indicating copy to clipboard operation
Python-UIAutomation-for-Windows copied to clipboard

How to fast click to ComboBoxControl witchout mouse moving

Open NeilRiver opened this issue 4 years ago • 2 comments

Hello, i have ComboBox image he has 2 item [IMAP,POP3], how i can fast and without mouse moving select one of item ?

my code

ThunderBirdWindow = auto.WindowControl(searchDepth=3, ClassName='MozillaDialogClass')
*****
ThunderBirdWindow.ComboBoxControl(foundIndex=1).Select("POP3")

NeilRiver avatar Jan 14 '21 20:01 NeilRiver

@NeilRiver

ThunderBirdWindow = auto.WindowControl(searchDepth=3, ClassName='MozillaDialogClass')


ProtocolComboBox = ThunderBirdWindow.ComboBoxControl(foundIndex=1) POP3 = ProtocolComboBox.ListItemControl(Name="POP3", searchDepth=1) POP3.GetSelectionItemPattern().Select()

demoxana avatar Jan 15 '21 19:01 demoxana

the latest supports Select('test', simulateMove=False)

yinkaisheng avatar Apr 19 '21 02:04 yinkaisheng