Class DialogAuto
Info
Class monitors for a dialog and sends a predefined key sequence to handle the dialog.
Class
- class odevgui_win.dialog_auto.DialogAuto[source]
Dialog Automation
- static monitor_dialog(send_key: str) None[source]
- static monitor_dialog(send_key: str, title_info: DialogTitle) None
- static monitor_dialog(send_key: SendKeyInfo) None
- static monitor_dialog(send_key: SendKeyInfo, title_info: DialogTitle) None
Monitors for a dialog and press the button via its short cut keys such as
alt+y.- Parameters:
send_key (str | SendKeyInfo) – The key for the alt shortcut such as
yornorctitle_info (DialogTitle, Optional) – Dialog Title info
- Return type:
None
Note
If
send_keyis a string then it is sent as withALTsend_key=cresults onALT+cbeing sent to dialog.If
send_keyisSendKeyInfothen its values is sent to dialog verbatim.