--- In [email protected], "david.sotropa" <david.sotr...@...> wrote:
>
> 
> 
> 
> 
> --- In [email protected], "nickodemos2002" <nickodemos2002@> wrote:
> >
> > 
> > 
> > --- In [email protected], "david.sotropa" <david.sotropa@> wrote:
> > >
> > > 
> > > Hi: I'm trying to create a command button that when pressed will select
> > > the 4 characters to the right of the cursor (and then ultimately copy
> > > them to the clipboard). When using a keyboard and doing it manually, 
> > > one would:
> > > 
> > > 1)  hold down the shift key
> > > 2) press the right arrow four times while holding down the shift key
> > > 3) let the shift key come up
> > > 4) press Ctrl+C
> > > 
> > > I tried this in PP.
> > > 
> > > *Keys {shift}{right}{right}{right}{right}{shift}{ctrl}C
> > > 
> > > However, it is simply moving the cursor 4 spaces to the right. The shift
> > > key isn't "sticking".
> > > 
> > > Any suggestions would be sincerely appreciated.
> > > 
> > > Thanks,
> > > 
> > > Dave
> > > 
> > > 
> > > 
> > > [Non-text portions of this message have been removed]
> > >
> > *Keys {fast}{sh}{ar 4}
> > *Clip Copy
> > 
> > And NP. I am slowly starting to get this. Huge learning curve but I am find 
> > PP well worth beating my head against the wall to learn.
> >
> 
> 
> I tried your recommendation and it does work when I use a keyboard shortcut - 
> but I find that when on a command bar, it is hit and miss. I think when the 
> command is clicked, the MS Word window might loose focus for a split second 
> and that is why there's a challenge.
> 
> However, I am attempting to use it in a terminal emulator (PCOMM) session and 
> your solution does the same as mine - i.e. it simply moves the cursor 4 
> characters to the right. I'm thinking that it might not be possible to do 
> what I'd like to do in a terminal emulator.
> 
> Thanks for your assistance.
> 
> Dave
>
I am still new to this but you might want to try the win.getfocus. Here is a 
link showing some information about it.

http://www.mail-archive.com/[email protected]/msg07227.html

Reply via email to