A
Alain Bourgeois
Hi all,
I have an application running on several xp, vista and 7 computers. (access
versions >= a2k, db format = access 2000).
This application communicates with other applications using keybd_events and
appactivate
On some computers running vista (not all, why why why?), AppActivate often
hangs in these cases:
* when you put a windows in background, and try to activate it,
* when you minimize then maximize some times (1, 2, 3 times) then try to
activate it.
The problem can be reproduced at will on any of these computers (and the
problem doesn't occur on other computers running xp or even vista using the
same application).
The window to be activated is retrieved through the GetWindowTextA function
in user32.dll, so it is correct!
(Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA"
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long).
I would like to know if there is a patch (vista sp2 doesn't change anything)
or if someone knows a reliable alternative to AppActivate.
Regards,
Alain
I have an application running on several xp, vista and 7 computers. (access
versions >= a2k, db format = access 2000).
This application communicates with other applications using keybd_events and
appactivate
On some computers running vista (not all, why why why?), AppActivate often
hangs in these cases:
* when you put a windows in background, and try to activate it,
* when you minimize then maximize some times (1, 2, 3 times) then try to
activate it.
The problem can be reproduced at will on any of these computers (and the
problem doesn't occur on other computers running xp or even vista using the
same application).
The window to be activated is retrieved through the GetWindowTextA function
in user32.dll, so it is correct!
(Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA"
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long).
I would like to know if there is a patch (vista sp2 doesn't change anything)
or if someone knows a reliable alternative to AppActivate.
Regards,
Alain