hents Posted May 23, 2011 Share Posted May 23, 2011 _WinWaitActivate was good with firefox 4 awhile, but suddenly it went wrong. Do you have any ide how to fix? Code: _WinWaitActivate("[CLASS:MozillaWindowClass]","") Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc Link to comment Share on other sites More sharing options...
wakillon Posted May 24, 2011 Share Posted May 24, 2011 Try _WinWaitActivate("[REGEXPCLASS:Mozilla]","") AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
hents Posted May 24, 2011 Author Share Posted May 24, 2011 Try _WinWaitActivate("[REGEXPCLASS:Mozilla]","") Thanks, but it doesnt work. An extra curiosity is that, if I use autoit window info on Firefox, windowinfo doesnt find any instance. Link to comment Share on other sites More sharing options...
MHz Posted May 24, 2011 Share Posted May 24, 2011 You state it suddenly went wrong and that it doesnt work. Well, what seems to be the issue? I notice on Windows 7 that windows do not raise up through the z order with WinActivate() but they do become active (focused). The class of "MozillaWindowClass" works for me with WinActivate() with the side effect I just previously mentioned. I usually notice other programs do not raise up in the z order when becoming active so I assume it is a new Windows 7 behavior. Link to comment Share on other sites More sharing options...
zbigj Posted June 3, 2011 Share Posted June 3, 2011 You state it suddenly went wrong and that it doesnt work. Well, what seems to be the issue?I notice on Windows 7 that windows do not raise up through the z order with WinActivate() but they do become active (focused). The class of "MozillaWindowClass" works for me with WinActivate() with the side effect I just previously mentioned. I usually notice other programs do not raise up in the z order when becoming active so I assume it is a new Windows 7 behavior.I don't think so, I've the same behaviour with Windows XP and FF 4. I had to return to FF 3.5. Does anybody help? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now