| View previous topic :: View next topic |
| Author |
Message |
quatermass
Joined: 14 Dec 2005 Posts: 136
|
Posted: Sat Feb 02, 2008 4:40 pm Post subject: Detecting Radio icon status |
|
|
Is it possible to detect whether or not a radio icon (or a tick box) is on or not in a 3rd party window?
The only way I can think of doing it is to position the mouse over the centre of it and detect its colour.
Must be an easier way?  _________________ Stuart Halliday |
|
| Back to top |
|
 |
Democratus
Joined: 01 Sep 2007 Posts: 120
|
Posted: Sat Feb 02, 2008 5:47 pm Post subject: |
|
|
ControlGet,OutPutVar,Checked,,Radio,WinTitle
EDIT: Just to make sure, I'll clarify that. With AHK comes a cool tool called AU3_Spy. If you run that and put your mouse over any radio button in a third-party window, it will give you the name of the control and the window that it's on (these are referred to as the WinTitle and the ClassNN of the control). Just type in the ClassNN where it says "Radio" and the title of the window in "WinTitle".
EDIT2: Also, it will return 1 if the radio is ticked, 0 otherwise. |
|
| Back to top |
|
 |
quatermass
Joined: 14 Dec 2005 Posts: 136
|
Posted: Sat Feb 02, 2008 8:28 pm Post subject: |
|
|
This is excellent!
This will improve my scripts no end. Thank you very much for making my day!  _________________ Stuart Halliday |
|
| Back to top |
|
 |
|