| View previous topic :: View next topic |
| Author |
Message |
danielpferreira
Joined: 02 Mar 2010 Posts: 2
|
Posted: Tue Mar 02, 2010 12:25 pm Post subject: Firefox bug (Windows 7): AHK doesnt work |
|
|
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 |
|
 |
danielpferreira
Joined: 02 Mar 2010 Posts: 2
|
Posted: Fri Mar 05, 2010 11:53 am Post subject: Firefox + AHK = not working? |
|
|
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 |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Fri Mar 05, 2010 11:58 am Post subject: |
|
|
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  _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7295 Location: Australia
|
Posted: Fri Mar 05, 2010 2:45 pm Post subject: |
|
|
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 |
|
 |
Gauss
Joined: 10 Sep 2009 Posts: 203
|
Posted: Fri Mar 05, 2010 10:56 pm Post subject: |
|
|
I also have some issues manipulating the new Firefox using AHK
Thanks to Keyconfig it does most of the job |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7295 Location: Australia
|
Posted: Sat Mar 06, 2010 5:12 am Post subject: |
|
|
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 |
|
 |
|