Dyskusje » Propozycje stworzenia skryptu/stylu

Button that simulates keyboard shortcut

§
Napisano: 20-09-2015

Button that simulates keyboard shortcut

Hi
Could any one help me with a script, that adds a button to a page, which after click will simulate:

- keyboard shortcut Alt+T
- write text, for example "A B C"
- and press Enter

or at least help me with the "Alt+T" part.
Might be weird but it would make my job a lot easier.

Thanks

woxxomMod
§
Napisano: 20-09-2015
Edytowano: 20-09-2015

This kind of task is performed usually with specialized utilities like iMacros, AutoHotkey, and dozens of others. Why do you want a userscript which is much more nontrivial to make than this example for Autohokey F1::send !tABC{Enter} that sends the specified keys when you press F1.

§
Napisano: 20-09-2015

This kind of task is performed usually with specialized utilities like iMacros, AutoHotkey, and dozens of others. Why do you want a userscript which is much more nontrivial to make than this example for Autohokey F1::send !tABC{Enter} that sends the specified keys when you press F1.

I am aware of Autohokey, but it wont work for me.
Need to create dozens of buttons that will do what i wrote above.
I would be vary grateful for help.

§
Napisano: 20-09-2015

Firefox 12 and later block certain "untrusted" key events. I haven't seen a clear definition of "untrusted" but I think script-generated keypresses that would take effect outside of the page definitely would be disregarded.

Odpowiedz

Zaloguj się, by odpowiedzieć.