I have an application having multiple pages, I want to select the pages opened using the PressKey but it is not working
[ ] // Strategy.AfxWnd701.PressKeys("<ctrl-Tab>")
[ ] // Strategy.AfxWnd701.ReleaseKeys("<ctrl-Tab>")
Use TypeKeys() method.
This should work fine.
I have tried it with TypeKeys() also but not successfull.
Did you use all caps with CTRL-TAB? (and TypeKeys)?
Did you SetActive and/or SetFocus on the thing that you were sending TypeKeys to before you called TypeKeys?
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Agent.SetOption (OPT_PLAY_MODE, "Win32") before calling typekeys()
& then revert it
Agent.SetOption(OPT_PLAY_MODE, "Normal") so that you do not affect the rest of your code.
Another thing ...I just read your post carefully.. arent you supposed to do it like this?
works for me.....