vista - vba - appactivate trouble

  • Follow


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 


0
Reply Alain 3/8/2010 9:06:23 PM


"Alain Bourgeois" wrote:subed going to jail

> 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 
> 
> 
> .
> 
0
Reply Utf 3/8/2010 10:35:01 PM


hi Alain,

On 08.03.2010 22:06, Alain Bourgeois wrote:
> 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 <--
0
Reply Stefan 3/9/2010 6:27:07 PM

"Stefan Hoffmann" <ste5an@ste5an.de> wrote in message 
news:%23VXIgY7vKHA.5936@TK2MSFTNGP04.phx.gbl...
> hi Alain,
>
> On 08.03.2010 22:06, Alain Bourgeois wrote:
>> 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 <--

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 


0
Reply Alain 3/9/2010 8:39:59 PM

"Alain Bourgeois" <brolspam00@skynet.be> wrote in message 
news:4b96b224$0$2853$ba620e4c@news.skynet.be...
>
> "Stefan Hoffmann" <ste5an@ste5an.de> wrote in message 
> news:%23VXIgY7vKHA.5936@TK2MSFTNGP04.phx.gbl...
>> hi Alain,
>>SMUGGED ALL EARLY REPEAT:WASTE OF RM!!!



>> On 08.03.2010 22:06, Alain Bourgeois wrote:
>>> 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 <--
>
> 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
>

 

0
Reply ISTARReiI 3/10/2010 12:18:44 AM

"Alain Bourgeois" <brolspam00@skynet.be> wrote in message 
news:4b9566d1$0$2888$ba620e4c@news.skynet.be...
> 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
> 

0
Reply De 3/13/2010 5:36:43 PM

yk;:!!

"Alain Bourgeois" <brolspam00@skynet.be> a �crit dans le message de groupe 
de discussion : 4b9566d1$0$2888$ba620e4c@news.skynet.be...
> 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
> 
0
Reply joelgeraldine 3/17/2010 1:07:42 PM

ggnnnnnn

"Alain Bourgeois" <brolspam00@skynet.be> a �crit dans le message de groupe 
de discussion : 4b9566d1$0$2888$ba620e4c@news.skynet.be...
> 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
> 
0
Reply joelgeraldine 3/17/2010 1:17:19 PM

7 Replies
571 Views

(page loaded in 0.166 seconds)

Similiar Articles:















7/26/2012 12:28:18 PM


Reply: