AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Firefox bug (Windows 7): AHK doesnt work

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
danielpferreira



Joined: 02 Mar 2010
Posts: 2

PostPosted: Tue Mar 02, 2010 12:25 pm    Post subject: Firefox bug (Windows 7): AHK doesnt work Reply with quote

Hi,
I've always used my custom AHK script and it has always worked in any text field. But since I installed Windows 7, my scripts stopped working *only in firefox* (it still works in other applications).

Is that a know bug, or maybe a new "security feature", from either W7 or FF?

Any help would be appreciated! Thanks!

[Moved from Bug Reports forum. ~jaco0646]
Back to top
View user's profile Send private message
danielpferreira



Joined: 02 Mar 2010
Posts: 2

PostPosted: Fri Mar 05, 2010 11:53 am    Post subject: Firefox + AHK = not working? Reply with quote

Since the post was moved from "bug report" to "ask for help" I'm guessing this problem (AHK not working in Firefox" is only happening to me. Is that so?

Could anyone using the latest Firefox confirm if their macros work in its interface and webpages/forms?

BTW, I tested once again and the scripts work everywere else - including Chrome and Internet Explorer.
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Fri Mar 05, 2010 11:58 am    Post subject: Reply with quote

Make sure the firefox has focus before sending keys, perhaps it is a bit slower in activating the window and it is already sending keys while the window isn't active yet. Can you post a script that doesn't work because it is "doesn't work" is a bit vague Wink
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Fri Mar 05, 2010 2:45 pm    Post subject: Reply with quote

I think it's not a matter of AHK not working in Firefox, but Firefox not co-operating with (the API's used by) AHK; i.e. not a bug of AHK, but of Firefox.

I've noticed that with Firefox 3.6, programmatically activating the window sometimes doesn't work correctly. When it happens, I have to alt+tab away and back to get even the standard Ctrl+Tab shortcut to work (by pressing the keys manually or by sending).
Back to top
View user's profile Send private message Visit poster's website
Gauss



Joined: 10 Sep 2009
Posts: 203

PostPosted: Fri Mar 05, 2010 10:56 pm    Post subject: Reply with quote

I also have some issues manipulating the new Firefox using AHK
Thanks to Keyconfig it does most of the job
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Sat Mar 06, 2010 5:12 am    Post subject: Reply with quote

I realised my problem only occurs if I restore/activate Firefox while it is minimized, and that keyboard input fails because no control has the focus. I now use something like this to activate Firefox (which is the Last Found Window):
Code:
WinActivate
ControlGetFocus c
if ErrorLevel  ; Nothing has the focus.
    ControlFocus MozillaWindowClass2
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group