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

Re: sendkeys wont work by Wolfgang

Wolfgang
Mon Feb 14 18:56:22 CST 2005

Hi Rajani!

Try
On key label ALT+R _screen.activeform.MyMethod

--
----------------------------------------------

Mit freundlichen Grüßen

Wolfgang Schmale



--------------------------------------------
"rajani" <rajani@discussions.microsoft.com> schrieb im Newsbeitrag
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



Re: sendkeys wont work by rajani

rajani
Mon Feb 14 19:07:02 CST 2005

afraid i cant use that command Wolfgang as we r using Shell object
to pass sendkeys.like following

oShell = Createobject("wscript.shell")
oShell.AppActivate("VIPEasyClaim")
oShell.Sendkeys("ALT+R")


"Wolfgang Schmale" wrote:

> Hi Rajani!
>
> Try
> On key label ALT+R _screen.activeform.MyMethod
>
> --
> ----------------------------------------------
>
> Mit freundlichen Grü�en
>
> Wolfgang Schmale
>
>
>
> --------------------------------------------
> "rajani" <rajani@discussions.microsoft.com> schrieb im Newsbeitrag
> 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
>
>
>

Re: sendkeys wont work by tom

tom
Tue Feb 15 02:14:12 CST 2005

Hi,
have a look at formproperty keypreview.

hth
tom

"rajani" <rajani@discussions.microsoft.com> schrieb im Newsbeitrag
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



Re: sendkeys wont work by Anders

Anders
Mon Feb 14 20:41:57 CST 2005

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


Re: sendkeys wont work by tom

tom
Tue Feb 15 12:07:12 CST 2005

Hi,

may be its two different apps ??

Greetings
tom

"Anders Altberg" <x_pragma@telia.com> schrieb im Newsbeitrag
news:#f8u9i1EFHA.2756@TK2MSFTNGP15.phx.gbl...
> 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
>



Re: sendkeys wont work by rajani

rajani
Tue Feb 15 19:09:04 CST 2005

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
>
>

Re: sendkeys wont work by Cyrus

Cyrus
Tue Feb 15 19:34:52 CST 2005

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.

--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com

Re: sendkeys wont work by rajani

rajani
Tue Feb 15 19:45:10 CST 2005

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.
>
> --
> Cy Welch
> Senior Programmer
> MetSYS Inc
> http://www.metsysinc.com
>

Re: sendkeys wont work by Cyrus

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