I need to verify the status of a checkbox. If it had not been checked, I need to check it. I have written the below code: if ControlCommand("", "", "[CLASS:WindowsForms10.window.b.app.0.3a9f0c_r16_ad1; INSTANCE:4]", "IsChecked", "") < 1 Then ControlClick("", "", "[CLASS:WindowsForms10.window.b.app.0.3a9f0c_r16_ad1; INSTANCE:4]") EndIf While running the script, "if" condition passes. But the checkbox is not selected (checked). How to make it to work?