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 Fri 24 Oct 2014, 09:01
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Mouse click/Touchscreen behavior - How to modify?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [17 Posts]   Goto page: Previous 1, 2
Author Message
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Fri 20 Jun 2014, 04:01    Post subject:  

amigo - I am trying to read up on aewmmenu, from your experience do you know if it is possible to use this to pass the cursor position of the original 'click', through to the programme that aewmmenu triggers?

ie: imagine that the aewmmenu ofered a menu consisting of:
Option 1) "Left click at original location"
Option 2) "Right click at original location"

and I clicked a pixel at, say, x=150 and y=300 - could aewmmenu pass (150,300) through to the programme (say, xdotool) that it called via the menu?
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2596
Location: New Zealand

PostPosted: Fri 20 Jun 2014, 06:05    Post subject:  

Just thought I'd mention an idea I've been trying as a way of getting a rightclick function on a device that has no rightclick button - my Acer Iconia tablet has a "Windows" key on the front (not much else; just a power button and vol up/down) and I thought I would try using the windows key as a rightclick button.

It seems to work ok:

Add a line to /root/.jwm.jwmrc-personal:
Code:
<Key keycode="115">exec:rightclick</Key>

(used xev first to confirm that the windows key triggered the 115 keycode)

Make a script in /usr/bin called "rightclick"
Code:
#!/bin/bash
sleep 0.1
xdotool click 3 &

(may not need the sleep delay)
Right click the script and give it executable permissions.

Prerequisites - xdotool
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [17 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0421s ][ Queries: 12 (0.0062s) ][ GZIP on ]