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