Automate text insertion #1063
-
How can I automate the following sequence?
|
Beta Was this translation helpful? Give feedback.
Answered by
gdh1995
Dec 23, 2023
Replies: 2 comments 1 reply
-
Well, it's quite complex, though indeed possible in Vimium C.
And, the final result is like:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
limaceous-bushwhacker
-
um, do you mean to simulate pressing enter after ctrl-i and simulate inputing?
```
dispatchEvent#key=Enter&keyCode=13
```
may help
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, it's quite complex, though indeed possible in Vimium C.
vimium://run/<runKey-commands-with-$s>
<runKey-commands-with-$s>
"4g0
dispatchEvent#ctrlKey&key=i
dispatchEvent
will returns a "failure" if there's no currently focused element, so(
and)
is necessary to ignore its result300wait
(to wait for an extra 300ms)a+300wait+b
means to runb
in50+300+5…