I installed the latest pywinauto module from pip.
I do not know how to use the Check (), UnCheck (), GetCheckState () methods.
This is my very simple code example.
from pywinauto import application
app = application.Application()
app.start_(r'C:\Program Files\LAV Filters\x86\madVR\madHcCtrl.exe editLocalSettingsDontWait')
madvr = app.window_(title_re="madVR.*")
madvr.TreeView.GetItem(r'\rendering\smooth motion').Click()
madvr.TCheckBox.Check()
It works if I use the Click () method, but that is not what I want.
madvr.TCheckBox.Click()
If the check box is already checked, it cancels it.
Why can't I use the Check () method?
I tried using the Uncheck () and GetCheckState () methods, they did not work either.
source
share