vista - vba - appactivate trouble

  • Thread starter Alain Bourgeois
  • Start date
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
 
S

Stefan Hoffmann

hi Alain,

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:
Vista has some security improvements which my interfere here. A simple
test: Logon as a user with administrative privileges. Disable UAC. Start
Access using 'Run As Administrator'. Run your database. If it works
then it is caused by this.
Otherwise you need to be more specific and yuo should post a concise and
complete example.


mfG
--> stefan <--
 
A

Alain Bourgeois

Stefan Hoffmann said:
hi Alain,


Vista has some security improvements which my interfere here. A simple
test: Logon as a user with administrative privileges. Disable UAC. Start
Access using 'Run As Administrator'. Run your database. If it works then
it is caused by this.
Otherwise you need to be more specific and yuo should post a concise and
complete example.


mfG
--> stefan <--

If I am administrator AND UAC is disabled the problem still occur.
We will try to create a sample.
Meanwhile, if someone has a workaround (vba code to restore a window then
trigger a click in the titlebar, it might be useful).

Regards,
Alain
 
I

ISTARReiI Monei@3000 Eighte

Alain Bourgeois said:
If I am administrator AND UAC is disabled the problem still occur.
We will try to create a sample.
Meanwhile, if someone has a workaround (vba code to restore a window then
trigger a click in the titlebar, it might be useful).

Regards,
Alain
 
D

De Jager

Alain Bourgeois said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top