Code: Select all
VERSION BUILD=8820413 RECORDER=FX
EVENT TYPE=MOUSEDOWN SELECTOR="#tasks>DIV>DIV>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" CHARS="asdf"
EVENT TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" KEY=13
Code: Select all
VERSION BUILD=8820413 RECORDER=FX
EVENT TYPE=MOUSEDOWN SELECTOR="#tasks>DIV>DIV>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" CHARS="asdf"
EVENT TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" KEY=13
I could reproduce indeed... Easy Workaround is to press the 'Left Arrow' (=37) just before hitting the 'Enter' Key:ni_soros wrote:I am recording entering tasks into a list on Wunderlist. Here is the code that I have come up with:
As you can see by the "KEY=13" bit on the last line (aka the ENTER key), it has recorded the ENTER keystroke. However, when I play the macro, it doesn't work. It will only enter "asdf" into the text field and stop there.Code: Select all
VERSION BUILD=8820413 RECORDER=FX EVENT TYPE=MOUSEDOWN SELECTOR="#tasks>DIV>DIV>INPUT" BUTTON=0 EVENTS TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" CHARS="asdf" EVENT TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" KEY=13
Code: Select all
VERSION BUILD=8820413 RECORDER=FX
EVENT TYPE=MOUSEDOWN SELECTOR="#tasks>DIV>DIV>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" CHARS="asdf"
'EVENT TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" KEY=13
EVENTS TYPE=KEYPRESS SELECTOR="#tasks>DIV>DIV>INPUT" KEYS="[37,13]"
Yes and Yes...! The Method is to creatively mess around with iMacros, that's how I got all my knowledge of iMacros...ni_soros wrote:Excellent! Works perfectly. Thank you very much.
Did you figure this out just by messing around with it, or is there a method to the madness?
Code: Select all
VERSION BUILD=8820413 RECORDER=FX
EVENT TYPE=CLICK SELECTOR="#tasks>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>A" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#modals>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>INPUT" CHARS="youremail@gmail.com"
EVENTS TYPE=KEYPRESS SELECTOR="#modals>DIV>DIV>DIV>DIV>DIV:nth-of-type(3)>DIV>DIV>INPUT" KEYS="[37,13]"
Code: Select all
var div = window.document.getElementById('yourid');
div.focus();
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils);
utils.sendKeyEvent('keypress', window.KeyEvent["DOM_VK_RETURN"], 0, 0, 0);
' Page Down 'techimac wrote:How to press Down Arrow or Page Down key?
Please use this thread for twitter: http://forum.imacros.net/viewtopic.php? ... 861#p68861techimac wrote:I tried same in twitter but didn't worked.
thecoder2012 wrote: ↑Sat Apr 16, 2016 8:55 pmPlease use this thread for twitter: http://forum.imacros.net/viewtopic.php? ... 861#p68861techimac wrote:I tried same in twitter but didn't worked.