Saturday, May 4, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 733  / 1 Year ago, thu, january 19, 2023, 10:19:33

I use easystroke for many tasks like command, key combination, etc.
Now, I need to perform a series of tasks in a single stroke.



For example:



First i need to execute the command 'cryptkeeper'.



Second, I need to execute 'gnome-terminal'.



Third, I need to press key combination "ctrl+c".



Fourth, i need to press 'up-arrow'. Then 'Enter'



...



Here, i need to do step 1 to 4 with a single stroke in Easystroke.



Is there any way to do this ??


More From » shortcut-keys

 Answers
6

DISCLAIMER: I'm not sure if this will work, and I am can't test it now, but try it.



Install xte: sudo apt-get install xautomation



In easy-stroke make sure "Type" is set to "Command", then in the "Details" field put:



cryptkeeper && gnome-terminal && xte 'keydown Control_L' 'keydown C' 'keyup Control_L' 'keyup C' 'key Up' 'key Return'


In the end, it should look something like this



enter image description here


[#33538] Friday, January 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;