Cyrus
Wed Feb 16 00:04:25 CST 2005
rajani wrote:
> Cyrus
> user has not pressed it himself.
> actually i am doing it myself
>
> "Cyrus Welch" wrote:
>
>
>>rajani wrote:
>>
>>>Anders
>>>i cant do that since they r 2 separate apps
>>>
>>>"Anders Altberg" wrote:
>>>
>>>
>>>
>>>>What does the command button do? Why just not a call
>>>>Thisform cmdbutton1.Click()
>>>>-Anders
>>>>
>>>>"rajani" <rajani@discussions.microsoft.com> wrote in message
>>>>news:4FB9A91F-3460-4CEF-BFB4-C5B7F34BE162@microsoft.com...
>>>>
>>>>
>>>>>Hi friends
>>>>>I have a pageframe with 10 tabs on a form.
>>>>>i have a command btn which has hot key (R).I am calling that hotkey
>>>>>programmatically
>>>>>(using sendkeys ) at different places as it is invisible to user.
>>>>>it working beautifully but it wont work if any grid has focus.(BTW the
>>>>
>>>>grids
>>>>
>>>>
>>>>>r readonly)
>>>>>any ideas on this please
>>>>>Thanks
>>>>>
>>>>>--
>>>>>cheers
>>>>
>>>>
>>Have you tried the ON KEY LABEL? IIRC anything stuffed into the
>>keyboard buffer should activate and OKL just as if the user pressed the
>>key themselves.
I understand that. If I remember right, it doesn't matter if the user
presses the key or if some other program stuffs the keystroke into the
keyboard buffer. My recollection is that ON KEY LABEL grabs the
keystrokes from the keyboard buffer. If not, you could use INKEY()
which certainly does read the keyboard buffer and WILL work. That is
why I was asking if you had tried it, as I think that it will work the
way you are doing it.
--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com