Also try the SetFocus function after you find the window handle of interest. Jamal On 1/30/2010 12:16 PM, Soronel Haetir wrote: > I would use FindWindowWithClassAndId and then SendMessage BM_GETSTATE > > If the button is checked, the return value will bit-and with 0x03 > > The value for BM_GETSTATE is 0x242A in case it's not in the hjconst > file, and the wParam and lParam are both unused and 0. > > On 1/30/10, Geoff Chapman<gch@xxxxxxxxxxxxxxxx> wrote: >> Hello Mighty Scripters. >> >> another simple greeny question, but, other than asking up here, I wasn't >> even sure where else I might look to anser such a question. >> But, I wished to understand >> How exactly might one most efficiently either move JawsCursor to, and click >> in to change Checked status, >> or alternatively setFocus to, and just doing a {Space} once there to achieve >> the same thing, >> a specific set of child windows in a dialog, whose controlID's seem to >> remain constant and static each time it's opened? >> I've got a dialog with about 6 child windows, all checkBoxes, that appear to >> me to have nice static controlID's, and I'm wanting to ascertain the >> methodology for most performance efficiently altering all their unchecked >> states, which they are upon entering this dialog, to checked ones. >> >> I've just never before tried to do something like this, >> using what I realize is the professional, "window related back end," way of >> approaching the task, >> and I'm just a bit stumped as to exactly how to start. >> >> I could of course, solve it by just doing multiple TabKey Presses, and >> SpaceKey presses inside LeftRightBrace characters, But, I'm pretty certain >> this would not be the most performance efficient/elegant way to accomplish >> this? >> And I'd like to try and advance my knowledge of how I know you professionals >> do this, by the fancy process of queerying the environment for the correct >> window related information, to get handles for etc. which has, to date, >> remained just a deep mystery to me. >> >> Would any kind soul have time/energy to assist? >> or, direct me as to where I might learn to achieve such a thing? >> >> Since SetFocus, and many other similar commands, require the handle of the >> Window they are to operate on, >> I can dimly se the methodology must have something to do with first setting >> a handle variable in the script, like >> var >> handle hwnd >> >> and then, presumably when the dialog in question has been opened with a >> control+L keystroke in Braces, >> doing something like >> >> let hwnd = GetTopLevelWindow () ; ... >> But I just can't work out how to code things from there, >> and if you already know the bunch of control ID's of each window you wish to >> move to, and click in? or setFocus in etc? >> >> any tips most warmly appreciated. >> >> thanks. >> >> geoff c. >> >> >> >> __________ >> Visit and contribute to The JAWS Script Repository http://jawsscripts.com >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> >> > > __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts