Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Nov 2017, 01:22
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Need keystroke to send doubleClick plus control+C
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
kerl

Joined: 16 Apr 2013
Posts: 152

PostPosted: Tue 07 Nov 2017, 06:14    Post subject:  Need keystroke to send doubleClick plus control+C  

How could I send a double click plus a "Control+C" by pressing "Control+leftShift" ?

The idea is that ctrl+shift can be performed quickly with your left hand whilst ctrl+c requires your two hands.

FYI I want this keystroke while using GoldenDict where the popoup based on ocr detection does not work any more on midern web browsers.
I think this ctrl+shift keystroke would do as a workaround.

Thanks in advance

Last edited by kerl on Tue 07 Nov 2017, 10:31; edited 1 time in total
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 2914
Location: Tamworth UK

PostPosted: Tue 07 Nov 2017, 09:58    Post subject:  

here are plenty of tools to remap your keyboard. The only problem is that they tend to be at OS/driver level not at the hardware level.
_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
kerl

Joined: 16 Apr 2013
Posts: 152

PostPosted: Tue 07 Nov 2017, 10:36    Post subject:  

I've just coded this for Mswindows if you want to give it a try:
http://lilfile.com/m2WIZW
it's practical for Goldendict under winXP (just mouse over a word and press control+shift)
unfortunately it does not work under wine
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3076
Location: The Blue Marble

PostPosted: Tue 07 Nov 2017, 12:37    Post subject:  

Since you can code, perhaps you want to look at doing it at uinput level. Here's an example: https://stackoverflow.com/questions/26693280/linux-uinput-simple-example#27166484.

There is another mapping daemon called evmapd, but last time I tried it didn't work properly; and I sort of lost patience. There is another one which is newer but I can't recall the name at the moment.

Probably not the answer you want to hear, but anyway.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
kerl

Joined: 16 Apr 2013
Posts: 152

PostPosted: Tue 07 Nov 2017, 14:10    Post subject:  

Hi Jamesbond.

I can only code a bit on Basic dialect languages which deal with Windows Smile

Do you know some automation tool for Linux? I've just run into Actiona
https://wiki.actiona.tools/doku.php?id=en:start
an open source tool with binaries for Ubuntu and Debian.

Last edited by kerl on Wed 08 Nov 2017, 06:24; edited 1 time in total
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Tue 07 Nov 2017, 15:44    Post subject:  

Xdotool.
_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
kerl

Joined: 16 Apr 2013
Posts: 152

PostPosted: Tue 07 Nov 2017, 17:21    Post subject:  

smokey01 wrote:
Xdotool.


thanks! though my intention would be launching a Xdotool script and leave it in background, so that everytime my keystroke is intercepted, the same commands,clicks,etc would be performed..

Last edited by kerl on Wed 08 Nov 2017, 06:24; edited 1 time in total
Back to top
View user's profile Send private message 
kerl

Joined: 16 Apr 2013
Posts: 152

PostPosted: Tue 07 Nov 2017, 21:58    Post subject:  

this might work
Code:
#!/bin/sh
xdotool click 1 click 1 key ctrl+c key ctrl+c

but how can I assign a keyboard shortcut to launch the bash script ?

Last edited by kerl on Wed 08 Nov 2017, 06:21; edited 2 times in total
Back to top
View user's profile Send private message 
kerl

Joined: 16 Apr 2013
Posts: 152

PostPosted: Wed 08 Nov 2017, 06:18    Post subject:  

kerl wrote:
this will do
Code:
#!/bin/sh
xdotool click 1 click 1 key ctrl+c key ctrl+c

but how can I assign a keyboard shortcut to launch the .sh ?


How to Open any file via Keyboard Shortcut.
An example for Puppies based on Xfce :

Code:
Open your Keyboard Settings: Menu > Settings > Keyboard > Application Shortcuts
Add a new shortcut with the following command and shortcut:
exo-open --launch TerminalEmulator /home/david/openfile.sh
CTRL + SHIFT + ALT + O


However the above xdotool script leads to hang the system.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0405s ][ Queries: 11 (0.0055s) ][ GZIP on ]