event type = keypress can't type dots/periods?

Discussions and Tech Support related to the iMacros Google Chrome extension.
Forum rules
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
mmelon
Posts: 2
Joined: Wed Sep 14, 2016 11:22 am

event type = keypress can't type dots/periods?

Post by mmelon » Fri Sep 16, 2016 1:54 pm

Hi,

I was trying to automate sending a email via gmail within chrome on my work imac

Setting the record type to event captured it all correct, but when it plays back the dots in my email address don't type so the macro fails.

Have i done something wrong?

VERSION BUILD=844 RECORDER=CR
URL GOTO=https://mail.google.com/mail/u/0/#inbox
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(7)>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>FORM>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV>DIV>TEXTAREA" CHARS="mike.edwards@gmail.com"
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>FORM>DIV:nth-of-type(3)>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>FORM>DIV:nth-of-type(3)>INPUT" CHARS="subject"
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>TABLE>TBODY>TR>TD>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV:nth-of-type(2)>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>TABLE>TBODY>TR>TD>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV:nth-of-type(2)>DIV" CHARS="body"
EVENT TYPE=KEYDOWN SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>TABLE>TBODY>TR>TD>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV:nth-of-type(2)>DIV" KEY=91 MODIFIERS="meta"
EVENT TYPE=KEYDOWN SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>TABLE>TBODY>TR>TD>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV:nth-of-type(2)>DIV" KEY=13 MODIFIERS="meta"
EVENT TYPE=KEYUP SELECTOR="HTML>BODY>DIV:nth-of-type(7)>DIV:nth-of-type(2)" KEY=91
iimfun
Posts: 239
Joined: Tue Jul 19, 2016 1:06 pm

Re: event type = keypress can't type dots/periods?

Post by iimfun » Tue Sep 20, 2016 1:30 pm

Hi,

Try to type your text with dots

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>FORM>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV>DIV>TEXTAREA" CHARS="mike.edwards@gmail.com"
via the clipboard variable as follows

Code: Select all

SET !CLIPBOARD "mike.edwards@gmail.com"
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>FORM>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV>DIV>TEXTAREA" BUTTON=0
EVENT TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(12)>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD:nth-of-type(2)>FORM>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>DIV>DIV>TEXTAREA" KEY=86 MODIFIERS="meta"
SET !CLIPBOARD NULL
mmelon
Posts: 2
Joined: Wed Sep 14, 2016 11:22 am

Re: event type = keypress can't type dots/periods?

Post by mmelon » Tue Sep 20, 2016 2:11 pm

hey. i will give that a spin and let you know.

I am assuming you have added some sort of paste command at the end. Possibly the bit that says key=86 modifiers="meta"

Quick question: is imacros device agnostic, so if a mac requires meta-v to paste, but a pc requires ctrl+v to paste, does imacros swap as appropriate?

Thanks for getting back to me.

Kind regards,
Mike
iimfun
Posts: 239
Joined: Tue Jul 19, 2016 1:06 pm

Re: event type = keypress can't type dots/periods?

Post by iimfun » Wed Sep 21, 2016 8:27 am

Hey,

If a PC requires 'ctrl+v' for paste command, the code must look like

Code: Select all

EVENT TYPE=KEYPRESS SELECTOR="someSelector" KEY=86 MODIFIERS="ctrl"
In case of some doubts just record this action in iMacros for Chrome.
Post Reply