EVENT keypresses sometimes aren't sent (or aren't received?)

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
sightunseen
Posts: 67
Joined: Fri Apr 19, 2013 4:54 am

EVENT keypresses sometimes aren't sent (or aren't received?)

Post by sightunseen » Sat Feb 15, 2014 6:45 am

Hi I am using iMacros 8.6.0 in Firefox 24. A js script I created calls a keypress event like this:
iimPlay("CODE:EVENTS TYPE=KEYPRESS SELECTOR=\"#selector\" CHARS=\"message\"");
I've noticed rarely the keypresses aren't sent. I decided to add a WAIT and then check the div in javascript to see if the text was actually written. If it wasn't I made the code loop. I came to my browser this afternoon and noticed it was just looping repeatedly. So I clicked on the window and as soon as I did the keypresses were sent and the script continued.

I don't know if this has to do with the browser window being out of focus at the time, but I find it weird that as soon as Firefox became the active window it started working again. I found these threads which may be related:
Imacros not working when window not opened
Script only works when browser/page in focus, not in backgrd

Developers: Can you give more details about how the EVENT command works to control the mouse and keyboard? Thanks
TheHimalayas
Posts: 1
Joined: Fri Jun 19, 2015 7:39 pm

Re: EVENT keypresses sometimes aren't sent (or aren't receiv

Post by TheHimalayas » Fri Jun 19, 2015 7:41 pm

I have the same issue. In a couple of fields, the key press is only going through if the browser window is in focus. Otherwise, these entries are not getting filled.
Post Reply