Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jim Tooley
  Where is Jim Tooley?
 Lodi
 Wisconsin - United States
 Jim Tooley
 To: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 Tags
Subject: RE: Using the Keyboard Command with a timer
Thread ID: 143172 Message ID: 143177 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Saturday, August 25, 2007 6:38:35 PM         
   


> > Hello,
> >
> > I have a printscreen program running on my computer. It is fired anytime I hit the 'F8' key. It's output is a .jpg file of the screen.
> >
> > I'm trying to write a program where a timer fires the 'F8' causing a printscreen capture to occur at set intervals.
> >
> > I've set the relevant timer control properties as follows:
> > interval= 2000
> > enabled = .t.
> >
> > The timer event contains: KEYBOARD '{F8}' plain
> >
> > I also have a little routine in the timer event that displays the number of times the timer has been triggered.
> >
> > When I run the routine, I can see the timer count increasing but the 'F8' printscreen doesn't happen.
> >
> > If I press the 'F8' key manually within the VFP environment, the screen capture occurs as expected.
> >
> > Can anyone see what I'm missing?
> >
> > Thank you,
> >
> > JT
>
> Jim
>
> The keyboard will put the key in the VFP keyboard buffer and not the system keyboard buffer. You can read thread id 129092 for capturing screenshots from inside VFP.
>
> Regards
> Tushar

-------------------------------
Hi Tushar,

Thanks for replying ...

What I was trying to accomplish was to have a VFP app running in the background as a service. I'm trying to capture screen shots at set intervals to monitor what my children are viewing while on the web.

Jim

ENTIRE THREAD

Using the Keyboard Command with a timer Posted by Jim Tooley @ 8/25/2007 4:40:02 PM
RE: Using the Keyboard Command with a timer Posted by tushar @ 8/25/2007 5:08:22 PM
RE: Using the Keyboard Command with a timer Posted by Jim Tooley @ 8/25/2007 6:38:35 PM
RE: Using the Keyboard Command with a timer Posted by Ken Murphy @ 8/25/2007 7:45:40 PM
RE: Using the Keyboard Command with a timer Posted by Ken Murphy @ 8/25/2007 6:31:44 PM