I just created a little VFP executable (.exe) that simply asks the user
for a string and does some processing. It returns another string that
gets placed in the clipboard, _CLIPTEXT.
Question 1:
The simple PRG that is part and parcel of the project (the entirety, so
far) defines a window and does a GET and READ. That Window's OK, but
it's shown in a VFP main screen. Is there a way to dispense with the
screen and just have my window show up, the one I defined like this:
DEFINE WINDOW browtbl FROM 10,10 TO 23,90 FLOAT
ACTIVATE WINDOW browtbl
@5,5 say 'Show newsgroups with what in the name?' GET lcstring
READ
DEACTIVATE WINDOW browtbl
Question 2 (probably more difficult):
What I'm really after is a way to keyboard this text where the mouse
cursor happens to be when I call this. I haven't even attempted this,
thinking it can't be done in FoxPro. Instead, I write to _CLIPTEXT. It
works, but I lose my former clipboard contents, occasionally a problem.
The mechanism I use here is to place my mouse cursor in some zone such
as one of the editing regions in a Google Groups search engine screen
(it's designed for that, actually). I then call my EXE with a macro
utility I use that's called with a keyboard shortcut. My macro utility
pops up a "popbox" from which I pick a button-icon representing an
action (in this case, my EXE). When my utility disappears (it does
automatically) my mouse cursor should be where it was before the utility
was called. I'd like to have my EXE actually write into where my mouse
was initially rather than my having to paste the clipboard contents? Is
that doable?
Thanks for ideas!!