General information
Category:
Windows API functions
I'm trying to use GetActiveWindow to get window names based on their handle, so my routine would some kind of a Findwindow function.
>Do you know the window name(s) that your looking for in advance?
>Could you use Findwindow()
>
>
>
>>Hi Chris,
>>Yes, both tests that I ran (in VFP5 and in VB5) call the function from a timer. Very unlikely that both VFP and VB5 misbehave when not active.
>>
>>
>>>>I am trying to get window handles of other applications from my app, and I've been using succesfully GetActiveWindow in VB3.0 (16bit). I am trying to do the same thing from VFP with DECLARE Long GetActiveWindow IN user32 (which declares it, no problem), but when it comes to running it I cannot get the handle of any other applications' window (returns 0), though it returns the correct handle when the VFP app running the function is active.
>>>>What am I missing? BTW, the function behaves identically in VB 5.0, so my problem must be something inherent to the GetActiveWindow function IN user32.
>>>>TIA
>>>>Sorin
>>>
>>>Do you have you function being called from a timer. (You must)
>>>
>>>I have had problems in VFP where the timer doesn't execute
>>>unless fox is the active application.
Previous
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