JailDoctor Posted October 15, 2010 Posted October 15, 2010 I want to click a checkbox in a window. The window has the following characteristics: expandcollapse popup>>>> Window <<<< Title: Find Patient Class: WindowsForms10.window.8.app.0.33c0d9d Position: 165, 39 Size: 918, 718 Style: 0x16CF0000 ExStyle: 0x00050100 Handle: 0x000305AE >>>> Control <<<< Class: WindowsForms10.window.8.app.0.33c0d9d Instance: 54 ClassnameNN: WindowsForms10.window.8.app.0.33c0d9d54 Name: xaCheckBox9 Advanced (Class): [NAME:xaCheckBox9] ID: 67026 Text: Position: 456, 123 Size: 261, 20 ControlClick Coords: 4, 5 Style: 0x56010000 ExStyle: 0x00000000 Handle: 0x000105D2 >>>> Mouse <<<< Position: 629, 197 Cursor ID: 2 Color: 0xFEDF9C >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OK Find Patient &Search Sho&w Visits &Options Show Visit Option More Search Options Cancel &New Search >>>> Hidden Text <<<< >> &Basic Search Options Birth Date: MRN >> MRN / MM DD YYYY Age +/- Range 5 >> / >> First: ID: ID Type: Gender: >> Quick ID: >> Last: >> Middle: I tried ControlCommand("Find Patient","","[class:WindowsForms10.window.8.app.0.33c0d9d,instance 54]","Check", "") and it just highlights the checkbox text, but does not "check" the box. I tried ControlClick ControlClick("Find Patient","","[class:WindowsForms10.window.8.app.0.33c0d9d,instance 54]") Same result. Any help will be appreciated.
Realm Posted October 15, 2010 Posted October 15, 2010 Hello JailDoctor, Does this work for you? ControlCommand("Find Patient","","WindowsForms10.window.8.app.0.33c0d9d54","Check") Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now