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
event type = keypress can't type dots/periods?
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
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
Re: event type = keypress can't type dots/periods?
Hi,
Try to type your text with dots
via the clipboard variable as follows
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"
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
Re: event type = keypress can't type dots/periods?
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
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
Re: event type = keypress can't type dots/periods?
Hey,
If a PC requires 'ctrl+v' for paste command, the code must look like
In case of some doubts just record this action in iMacros for Chrome.
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"