AutoHotkey Community

It is currently May 27th, 2012, 4:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: March 2nd, 2010, 1:25 pm 
Offline

Joined: March 2nd, 2010, 1:22 pm
Posts: 2
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]


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 5th, 2010, 12:53 pm 
Offline

Joined: March 2nd, 2010, 1:22 pm
Posts: 2
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 12:58 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 3:45 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2010, 11:56 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
I also have some issues manipulating the new Firefox using AHK
Thanks to Keyconfig it does most of the job


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2010, 6:12 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: rbrtryn and 66 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group