You are not logged in.
Pages: 1
I want to be able to execute a command when I move the mouse pointer to a certain part of the screen. Eg I have a 1440x900 monitor and I want to be able to execute a command when I move the mouse pointer to within 50px of the left screen edge. So if my mouse pointer is within a column area of the screen of 50x900 I want the command to execute. Is this possible?
Offline
You'll have to use a third-party tool for this. Maybe something like Brightside? I believe it only does corners though.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
yeah I was aware of Brightside, but not what I was looking for, thanks anyway
Offline
Maybe you can do this in a script using xdotool getmouselocation ? Example just prints out message with time when mouse passes into left 50 pixels:
#!/bin/bash
px=0
while
mdata=`xdotool getmouselocation`
mx=`echo "$mdata"|cut -f1 -d' '|cut -d: -f2`
if [ $px -ge 50 ] && [ $mx -lt 50 ]; then
date "+activate %s"
fi
px=$mx
sleep 0.1
do
:
done
Offline
hmmm thanks for that Simon_P, xdotool was my next stop, or resort to Easystroke mouse gestures which I'm keen on avoiding
i'll give it a go
cheers
Last edited by 191jordan (2014-09-24 06:23:24)
Offline
Pages: 1
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 525.59 KiB (Peak: 526.87 KiB) ]