Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Window vs. VFP screen focus issue 2

Status
Not open for further replies.

dmusicant

Programmer
Mar 29, 2005
253
US
I have written some code that puts data on the clipboard that I paste into a totally different (i.e. non-Foxpro) application on the computer. This works nicely in that I can Alt+Tab from VFP 9.0 to my other app, and do my pastes. I've been using one particular Windows (Win7) machine to do this, but right now that machine is down for repairs, etc. and I'm using another of my machines to run all this. This machine is running WinXP.

This works like so: I run the code from the Command Window, rerunning one of two routines (depending on what data I want on the clipboard) by clicking my cursor next to the command and pressing Enter. I then Alt+Tab back to the other app to paste. But on the WinXP machine I have to press Alt+Tab twice instead of once. It seems that this is because on this machine (and not the other, evidently), the Command Window has focus and I have to first give the VFP main screen focus before I can get back to the other app, therefore having to press Alt+Tab twice. Why is the behavior different for my two machines and is there a way I can eliminate having to press Alt+Tab twice to get back to my other app?
 
How about winning some time with OCR text recognition instead of typing from a newspaper?

Bye, Olaf.
 
Well, Olaf, I think the problem with using OCR is that the text snippets I am typing in are many (typically around 60 of them) and each is just a short sentence that's located away from the others and surrounded by lots of other text that I don't want to capture. Garnering the snippets from a broad scan using my 8.5x11 scanner, and then run through OCR software would be a nightmare, I'm afraid. Also, the information is on 3 different pages of the newspaper. Fortunately I'm a pretty good typist.
 
I have a 10 year old scanner who came with an OCR software that would do that while scanning (r directly after it). And you can extract small pieces of text with code, too.
Anyway, I get a picture of what you're doing is something that could be done much different overall, not just this small step of it.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top