There is checkbox in my dialogbox. i want it's hotkey.
I wrote dialogbox.checkbox.getcontents (true)
but it returned nothing.
But when i write dialogbox.getcontents (true),it shows all controls hotkey including the checkbox.
I cannot use dialogbox.getcontents (true) (because of design issue) and then find out from list
In silk help for getcontents (),it is written as
I wonder why dialogbox.checkbox.getcontents (true) won't return anything as dialogbox.checkbox is also a window
Try using getText or getSelText but how will u extract the hotkey from there. You should know the hotkey for that checkbox.
If you are testing the hotkey for the checkbox, try this
a) Uncheck the checkbox.
b) Press the hotkey and then check the getSelText
c) compare the getSelText string. and take decision accordingly.
How about .GetCaption(True)
Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.
Thanks a lot. Its working with GetCaption (TRUE)
Till now i was only knowing getcontents(true) to extract the hotkey.
Thanks Everybody for their suggesstions. Amazing forum