EVENT: how to make a new line (ENTER)

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
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
notracks
Posts: 1
Joined: Thu May 11, 2017 9:41 pm

EVENT: how to make a new line (ENTER)

Post by notracks » Thu May 11, 2017 9:47 pm

Hi guys,

I've spent the last 45 minutes trying to figure out how to put a new line into the text but nothing goes well so I'm forced to register and ask you directly here.
So, I'm trying to fill out an tinymce form with some text.

I've already tried this:

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" CHARS="I\'ve used this already:"
'ENTER Key:
EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEY=13
'EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEYS="[13,13]"
EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" CHARS="This should be on the 2nd line after a Return with KEY=13 using the EVENT Mode..."
and this:

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" CHARS="asdf"
'EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEY=13
EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" KEYS="[37,13]"
Both found on the forum in some old threads, none is working.
First case error:

Code: Select all

Error -1500: Keyboard events with non-printable KEYS are not yet supported. Line 10: EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEY=13
Second case error:

Code: Select all

Error -1500: Keyboard events with non-printable KEYS are not yet supported. Line 10: EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" KEYS="[37,13]"
What's wrong?
I'm using the latest iMacros for Windows.

Thanks!
chivracq
Posts: 8144
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: EVENT: how to make a new line (ENTER)

Post by chivracq » Fri May 12, 2017 4:05 am

notracks wrote:Hi guys,

I've spent the last 45 minutes trying to figure out how to put a new line into the text but nothing goes well so I'm forced to register and ask you directly here.
So, I'm trying to fill out an tinymce form with some text.

I've already tried this:

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" CHARS="I\'ve used this already:"
'ENTER Key:
EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEY=13
'EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEYS="[13,13]"
EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" CHARS="This should be on the 2nd line after a Return with KEY=13 using the EVENT Mode..."
and this:

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" CHARS="asdf"
'EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEY=13
EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" KEYS="[37,13]"
Both found on the forum in some old threads, none is working.
First case error:

Code: Select all

Error -1500: Keyboard events with non-printable KEYS are not yet supported. Line 10: EVENT TYPE=KEYPRESS SELECTOR="#tinymce" KEY=13
Second case error:

Code: Select all

Error -1500: Keyboard events with non-printable KEYS are not yet supported. Line 10: EVENTS TYPE=KEYPRESS SELECTOR="#tinymce" KEYS="[37,13]"
What's wrong?
I'm using the latest iMacros for Windows.

Thanks!
Oh yeah...!: "I've spent the last 45 minutes trying to figure out..." Hum, you've put some "Effort" in your Thread but you could have taken that 1 extra min to read the Forum Rules...: "I'm using the latest iMacros for Windows." is completely vague... :roll:
=>CIM...! :mrgreen: (Read my Sig...)

Grrr, Thread opened in the wrong (Sub-Forum)... (But no need to duplicate... => = Spam...!)

RuntimeError(s) mentioned, good...! Can't you post the URL...?
"Keyboard events with non-printable KEYS are not yet supported."
=> Never seen this RuntimeError (on FF), I'm very curious to know which Browser and which "latest" Version of iMacros you are using...?
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Post Reply