General information
Category:
Windows API functions
>You probably know more about that than I do.:-)
Nope, I was just shooting from the hip. If you've tried it and it doesn't work, then it doesn't work. :)
>The only way I could get anything sent to another app was to, first ShowWindow(), followed by SetActiveWindow(), followed by SetForegroundWindow(). Not good.
That's better than nothing! Again, I did my testing with a Win 98 beta, and the problems I was seeing probably don't exist anymore (though they may reappear in NT 5). Since my goal was simply to paste data into whatever program was active, it really didn't matter.
> Have you looked at the possibility (in VC++ or VFP) of using SendMessage() to do this. I glanced at it, but haven't had time to pursue it.
I was unsuccessful with this. If memory serves (never a foregone conclusion), it wasn't possible to send messages to a window not in the current thread (originally I just wanted to send the "paste" message to the current app). This is a way that Win 98 tries to prevent programs from screwing each other.
But, again, it's been a while...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only