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++.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

EVENT: how to make a new line (ENTER)

by notracks on Thu May 11, 2017 2: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!
notracks
 
Posts: 1
Joined: Thu May 11, 2017 2:41 pm

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

by chivracq on Thu May 11, 2017 9:05 pm

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...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to Scripting and Command Line Interface

Who is online

Users browsing this forum: No registered users and 1 guest

-->