Programming :: Add Time Of Occurrence For Mouse Event In Xinput?

Jan 24, 2011

i need to have the time of occurence for mouse event in xinput,right now i run

Code:
xinput test <device_id> >log.txt
(for finding device_id using xinput list)

[code]...

View 4 Replies


ADVERTISEMENT

Programming :: Java Applets - Mouse Dragging Event

Jan 4, 2010

I know how to deal with a mouse click event like so:

Code:

But was happens when I am dealing with mouse dragging? Will my implementation of mouseDragged() get called for every pixel moved? So I just getX() and getY() like with a mouse click?

Also, in order to know when mouse dragging stops and starts, do I also have to put code in mousePressed and mouseReleased?

View 1 Replies View Related

Ubuntu :: Setup Xinput Mouse Speed Permanently?

Aug 3, 2010

My mouse has high dpi and is too fast even on lowest speed and acceleration settings.
To fix this I always run the following command via the terminal code...

View 1 Replies View Related

Debian :: Need To Record Mouse Location When There Is A Mouse Button Event

Sep 15, 2015

CNEE(1) General Commands Manual says this. RECORD OPTIONS --first-last Print only first and last of multiple successive MotionEvent. So I try this. my test window is Calculator 3.14.1 cnee --record --mouse --keyboard --time 5 --store-mouse-position --first-last --stop-key h -o xnee.xns -e xnee_record.log -v;The result is, xnee.xns lists every mouse movement.But I only need to record the mouse location when there is a mouse button event. it seems --first-last does not work. How can I make it work?I use

hardware HP pavillion 20.
The only avalible resolution is 1600x900.
/etc/debian_version 8.1
GNOME Terminal 3.14.1
xnee 3.19

View 0 Replies View Related

Ubuntu Installation :: 10.10 Mouse Middle Click Not Mapped At Xinput Test?

Oct 22, 2010

after migrating my Ubuntu box from 10.4 to 10.10 my middle click button does not work.

If I test using ...

Code:
xinput test <device id>

... all my buttons are mapped but one (the middle click): when I use it nothing is logged in the console.

This is the ouput of my mouse properties:

Code:
~$ xinput list-props 8
Device 'Razer DeathAdder':
Device Enabled (117):1

[Code]....

I use middle click frequently (opening links in new tabs in Firefox or Copy&Paste in terminal)

View 9 Replies View Related

Ubuntu :: Basic Graphic Actions Taking Long Occurrence Time

Jul 8, 2010

It takes an exceptionally long time for basic graphic actions to occur like switching tabs in Firefox, redrawing windows that have been (un)maximized/minimized, and switching between windows. My video card is not a bad one, a GeForce 9500 GT and Windows handles it just fine. I'm using the current NVIDIA drivers 265.35. It seems like if I can't get some better response time I'll be using Windows much more.

View 3 Replies View Related

Programming :: Awk Command - Search Pattern To Look For Last Occurrence

May 11, 2011

Any solution using awk/sed/regexp or other standard linux utility (this is for a mix of RH versions)? I am dealing with some very large application log files. I want to see everything that has been written to the log since the last application restart.

For an example take a log file like this:
Code:
# cat test.log
1 msg
2 msg
3 restart 1
4 msg
5 restart 2
6 msg

The following command is close to what I want:
Code:
# awk '/restart/,G' test.log
3 restart 1
4 msg
5 restart 2
6 msg

But the awk command grabs the first restart not the last. If it was working the way I wanted I would see something like this:
Code:
# awk '/restart/,G' test.log
5 restart 2
6 msg

So, I need something in that search pattern that says look for the last occurrence. I know how to do this with a pipe line - I could reverse the file and then do a similar awk and reverse back, or I could find the number associated with the last restart and then use that in the awk search. But these just take too long because the file is too big.

View 14 Replies View Related

Programming :: Replace 2nd Occurrence Of A String In A File - Sed Or Awk?

Apr 5, 2010

I know how to replace a particular instance (say 3rd one) of a word in a line using sed based on the sed one-liners. However I would like to replace a particular instance of a word in the entire file.

For example, here is a file:

Code:
John
Betty
Jack
Ron
Jack
Paul

So now I would like to replace the second instance of Jack (in red color) with "Rob" (for example). Not quite sure how to do that? I tried couple of things from here but they did not work.

View 10 Replies View Related

General :: Get A Mouse Event To Cause Keystroke?

Mar 14, 2010

I have a Logitech Media Play mouse with many buttons. I'm using xbindkeys to create some shortcuts to programs e.g. firefox, gnome-terminal--these work wonderful. What I cannot figure out is how to get the buttons to work for the media player(Ubuntu>System>Keyboard Shortcuts>Sound). I set shortcuts using my win key and letters, hoping to use xbindkeys to send out a keystroke. I have tried to use xmacro but to no avail. xdotool was not helpful, I think it may be outdated(desktop/workspace functions did not work).

My preferred option would be to get mouse events to keystrokes working with xbindkeys and program x(x being whatever works); however, just getting my media buttons to interact with the media play is my ultimate goal.

View 1 Replies View Related

Programming :: Count The Number Of Occurrence Characters In A String ?

Jan 26, 2011

How do I count the number of occurrence characters in a string in an efficeint way ?

How do I reverse the words in a string with out using temp variables if possible . (if not possible use temp variables ?

Why do I specify dependedcies for header files in the Makefile ?

View 2 Replies View Related

Programming :: Replace Occurrence Of A String In Many Files In One Command?

Oct 30, 2010

I used a command Code:

grep -r err_sys ./
its output is
Code:
./tcpclitime.c:err_sys("socket error");
./tcpclitime.c:err_sys("connect error");
./tcpclitime.c:err_sys("write error");
./tcpclitime.c:err_sys("shutdown error");
./tcpclitime.c:err_sys("read error, n = %d", n);
[Code].....

Is it possible some how to replace all the occurrences of word err_sys by printf.

View 1 Replies View Related

Programming :: Mq_notify Not Notifying About An Event

Nov 30, 2010

I'm using mq_notify to be notified about events on a message queue. But my registered notifier function is not being called. I'm pasting my code snippet below:

[Code]....

View 4 Replies View Related

Programming :: Event When Network Interface Goes Down?

Jul 13, 2010

I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.

View 1 Replies View Related

Programming :: Event Device Nodes And Xorg?

Oct 14, 2010

When i create a new event device (/dev/input/event) it is automatically grabbed by Xorg:

Code:
(II) config/udev: Adding input device Keypad Emulation Driver (/dev/input/event7)
(**) Keypad Emulation Driver: Applying InputClass "evdev keyboard catchall"

[code]....

View 1 Replies View Related

Programming :: Invoke A ButtonPress Event Using XLib?

Nov 17, 2010

I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .

View 1 Replies View Related

Ubuntu :: Attach Custom Script To "first Time Log In" Event

Sep 7, 2010

When there is no user home directory and user logs in it's created using /etc/skell as a template.Is it possible to attach custom script to that "first time log in" event?

View 6 Replies View Related

Programming :: Detect A Keypress Event In A Console Session?

Oct 27, 2010

Is any way to detect a keypress event in a console session? Preferebly without needing the application to be running in the foreground

View 2 Replies View Related

Programming :: Run A Script On Switch-user Event Ubuntu 9.10?

Feb 18, 2010

How to do so? For starters, I'm not sure there is such an event. Maybe it has something to do with the OS moving through certain run-levels

View 6 Replies View Related

Programming :: Using Perl To Update Mysql Table On Certain Event?

Feb 6, 2011

I'd like to use a perl script to update a fields in mysql database when pianobar (command line pandora radio player) starts a new song. Pianobar has the ability to run a script based on events, I'd like to take advantage of and use perl toparse the artist,song,album and update the corresponding fields. Then later retrieve them and display them with php/html. I am by no means proficient with perl. I started to use bash, but it looks like perl will be much more efficient and and less time consuming.

Code:
#! /usr/bin/perl -wT
use strict;

[code]...

View 2 Replies View Related

Programming :: Substitute Every Occurrence Of "( S" To "(S" In File

Mar 11, 2011

I want to substitute every occurance of "( S" to "(S" in my file (the quotes aren't included in my file. Its just there to specify what my pattern is)

This is my attempt to do it and the error message I get.

Code:
denish@ubuntu:~/Desktop/tgrep files$ sed 's/^( (S$/(S/g' test > test2
sed: -e expression #1, char 16: Unmatched ( or (

The "( )" has a different purpose in sed. So how exactly do I specify a ( in sed as a pattern and not as the special function?

View 7 Replies View Related

Programming :: Function Handler Is Called One Time Only Instead 2 Times If The 2 Timers Expires At A Time

Mar 2, 2011

I am using Debian linux. I have 100 timers running. If a timer expired which will generate a signal and it was mapped to a same function handler. All the timers are mapped to one function handler. The problem is if the timer expires one at a time, the function handler called at a time. But if the 2 timers expires at a time, the function handler is called one time only instead 2 times. Is it possible to invoke the function handler as many times based on timer expirary happens simultaneoulsy?

View 14 Replies View Related

Programming :: Python And Curses : Unable To Getch() For A Curses.KEY Event

Nov 8, 2010

When I getch() a key event (UP arrow key), the getch() function return a string of characters that I cannot compare with curses.KEY_UP constant. Here is the code I use :

while True:
w = gb.scrn.getch()
c = chr(w)
otp = 'touche:'+str(w)+' '+str(c)+"

[Code]...

It seems like getch() return three distincts bytes while I would retrieve it with a single ord() instruction in python like describes in curses/python documentation.

View 1 Replies View Related

Ubuntu :: How To Save Xinput Settings

Apr 22, 2011

how I can save xinput settings? I'm running Peppermint Linux on an eeepc 701.After a few weeks, I've finally figured out which settings to configure with the xinput command to get my touchscreen working correctly. However, when restart the netbook all the settings are lost and I have to reconfigure each time. I've found threads saying to save settings in xorg.conf file, but apparently my system doesn't have this file.

View 4 Replies View Related

Ubuntu :: Xinput Is Tough To Configure?

Nov 14, 2010

All I really want to do is add a back command to the side button on my Microsoft Intellimouse 3000. I tried configuring xinput based on posts from this forum and a bunch of stuff changed in terms of the mouse, but not the desired action.it looks like it should be easy, but I'm too new at this to make it happen.

View 1 Replies View Related

Fedora :: Xinput Settings Don't Take Effect Immediately?

Aug 4, 2011

I'm writing a udev rule to disable the trackpad when a mouse is plugged in, and I'm having a bit of trouble re-enabling the trackpad when the mouse is disconnected.Here's the script that the udev rule calls (with the appropriate argument of course).

Code:
#!/bin/bash
. /home/holden/.bash_env/backup

[code].....

View 2 Replies View Related

Programming :: Get The Current Time As Provided From NTP (not The Currently Set Time On The Server)?

Jun 9, 2010

Is there a way to get the current time as provided from NTP (not the currently set time on the server)?

View 4 Replies View Related

Programming :: Set Time Using Settimeofday But It Sets Local Time?

Jan 12, 2010

I am trying to set time using settimeofday in linux. But it sets local time. i.e works like SetLocalTime in windows. But I want to set system time(like SetSystemTime in windows). I could'nt find no other api in linux. What should i do? I had tried with mktime/gmtime apis

View 3 Replies View Related

Ubuntu :: Can't Use Mouse And Keyboard At Same Time

Jul 8, 2010

I can't seem to use my mouse and keyboard at the same time.I am running Ubuntu 11.04 64-bit

View 3 Replies View Related

Debian Hardware :: Touchpad Doesn't Work And Isn't Listed In Xinput

May 26, 2015

I'm having a problem with my touchpad being recognized.It works fine in Win7, but when I load Debian the touchpad doesn't work and isn't listed in xinput.When I first installed Debian, the touchpad worked for a minute, then the computer went to sleep. I woke it up and the touchpad wouldn't work. Since then, the touchpad does not work.

View 7 Replies View Related

Hardware :: Save - Xinput Set-int-prop - Properties To Xorg.conf ?

May 19, 2009

I have a Elo AccuTouch 2216 USB touchscreen that seems automatically supported by a clean install of Ubuntu 9.04.

However, to actually use it correctly, I need to run some xinput commands to invert the Y axis and calibrate:

Code:

These properties are shown by xinput list-props and documented as properties in the evdev Xorg input driver man page.

My questions is - where can I configure or save these settings so I don't have to ever enter again? On older versions of Ubuntu for serial touchscreens I'd add to xorg.conf, but that seems to be depreciated and these are listed as properties instead of options.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved