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
ADVERTISEMENT
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
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
View Related
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
Nov 1, 2010
I have a co-worker who is trying to add the ^1 to his vi file as a single character. Can this be done? I have searched and searched but do not see a way to do it.
View 10 Replies
View Related
Jun 24, 2011
The <Esc> key has an equivalent two-keystroke sequence within vim, I think I remember.
View 8 Replies
View Related
Aug 21, 2009
I know in windows xp there is a registry key and an entry in the Plug and Play log file as well as maybe an event id, that is produced when a device (say usb) is plugged in. My question is, besides /var/log/ (messages?) Is there any other location that that information is stored in?
View 3 Replies
View Related
Jun 7, 2010
Is it possible to catch the power management events(hibarnate/standby/sleep)o the code(c++)?
View 2 Replies
View Related
Jun 24, 2010
I'm working on an app that will authenticate user with a smartcard when the user inserts it in the card reader (this is on Red Hat 5.5). How do I detect a card has been inserted? Is there a daemon service I need to listen to and associated api to get notified etc? .
View 3 Replies
View Related
Mar 27, 2010
Is there a way to provide post-mount and pre-umount scripts in Linux?
I am trying to do some scripts on storage media when mounted and before umounting (eg, for syncing).
View 3 Replies
View Related
Jul 4, 2010
I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?
View 1 Replies
View Related
Sep 3, 2011
I've watched with envy as one of my friends is able to erase a URL in the address bar of a browser and paste in another one using a keystroke combination on his windows machine. How can I do that in Linux?
I think he uses CTRL-V in Windows. This combination pastes in Fedora Linux (FC 12 Gnome and previous versions), but it doesn't erase what's there first.
View 3 Replies
View Related
Sep 18, 2010
I have two machines one Ubuntu Lucid and one Kubuntu Lucid. They share a bluetooth keyboard through a KVM switch. As of last week both were working. At this point my KDE machine disconnects from the keyboard on the first keystroke. The Ubuntu machine is still okay. What I've tried/checked so far without success
I can connect my keyboard through Kbluetooth but it disconnects when I start typing. The timeout time is set to none. I tried rebooting and then reinstalling the software to no avail. I replaced the batteries in the keyboard. Plugging the bluetooth usb adapter directly into the KDE box. Removing and then adding the trust I find this in the syslog:
2010-09-18 12:09:42 godel bluetoothd[1911] link_key_request (sba=00:1BC:0F:F1:E7, dba=00:22:48:87:B3:49)
2010-09-18 12:09:42 godel bluetoothd[1911] Encryption failed: Permission denied(0x5)
Here's the kbluetoothrc from my home folder
[KBlueLock]
[Code]...
View 1 Replies
View Related
Sep 22, 2010
I'm trying to do something a little crazy with my netbook, and I'm looking for some sage advice. Since I'm trying to maximize free screen space on my 10" netbook, I have top and bottom the panels auto-hide. No problems there, and since I use a lot of keyboard shortcuts (some default, some custom) I don't even use the touchpad unless I absolutely have to. My most common apps are shortcutted, and I've got Alt-F2 for everything else. However, by hiding the top panel, I don't have a clock on the screen. This is fine in essence, but when I want to know the time, I have to mouse up to the top of the screen. Not horrible, but it goes against my nature!
So my question is: Is there any way to make holding a key/combo display the time, then have it disappear when the key is released? I would love for this to happen when I hold the windoze key, as it is currently unused.
(btw, my windoze key will soon be an Ubuntu key, the good people at System76 and their free sticker set:[URL]... I know how to add custom keyboard shortcuts, but other than launching a clock app, I have no idea how to make this happen, or if it's even possible.
View 9 Replies
View Related
Oct 17, 2010
Running Slackware 12.0 (2.6.29.4), performed an entire package update via slapt-get --upgrade, after the upgrade keyboard is not recognizing every keystroke. I have searched the forums for similar issues, but due to the broad verbiage as to how to describe the problem, I have yet to find a solution.
I'd prefer not to have to upgrade to Slackware 13.0 or my kernel. Prior to performing upgrade, keyboard was working as expected. This really puts a damper on things, I type very fast and use the terminal 75% of the time. Having to backspace and retype is getting annoying.
Please, if anyone has any ideas, I am open to suggestions. Thanks.
View 1 Replies
View Related
May 31, 2011
I am trying to install Fedora 14 or 15 into a 2008 R2 Hyper-V environment. I can successfully run the install and log into the system as a user. I need to install the integration components so the mouse works. However, I can't find a way to get a terminal window open so I can mount an .iso with the installers.
View 2 Replies
View Related
Aug 2, 2010
Is there an equivalent command that will perform the same task as ALT+F4 keystroke? I want to create a simple script that lirc can use so I can set up a button on my remote to close program windows that pop up (like when plugging in usb thumb drives, inserting a dvd, and other windows), and avoid having to remote desktop or go into CLI to kill the window.
View 9 Replies
View Related
Oct 19, 2010
causes a 'p' to appear in tty7 but not the program running in 7 to react as though a 'p' had been pressed.
View 12 Replies
View Related
Dec 1, 2010
When you open up a file browser, if there are tons of files in some directory, it will be tedious to locate the desired one mannually. For most of the file browsers, the desired file will be located automatically by obtaining the focus when you type the filename. I don't believe that Nautilus doesn't have this feature.So, there must be something I can configure with. Note that I'm just using the default Nautilus with fresh Ubuntu installation.
View 4 Replies
View Related
Oct 5, 2010
I have been looking for a way to make whatever window that has focus react as if I middle-clicked into it (paste selection buffer), using only the keyboard. I installed xmacro, xbindkeys, ruby, and xclip to get this working. For Debian/Ubuntu, you should be able to do this:
[Code]...
View 1 Replies
View Related
Feb 3, 2010
I just spent a few days ripping out all the broken/buggy apps that are in the opensuse 11.2 official repos so I can finally get working software(openoffice, thunderbird, wine, eclipse, rubygems, rails, and a few others required getting the "official" versions from their respective websites to avoid strange behavior and outright broken functionality).
All of which makes updating more annoying and time-consuming. Why are opensuse packages so different anyway? Anyway, the last thing that I have noticed to fix is Konsole. For some really bizarre reason ctrl+z and ctrl+c do not work without a third keystroke: enter.Maybe this is something new with the KDE team, since they seem bent on making simple things that already work more complex, but given my experience with crappy packages in the suse repos, I am thinking this is the problem. I have looked over all the config settings that I can find and nothing fixes this affront to productivity.
View 1 Replies
View Related
Feb 11, 2010
With /usr/bin/canberra-gtk-play set to --id='desktop-login' in the startup Applications dialog one expects a sound to play at login. This is not the case with fedora 12. I set the variable to --file=/home/me/sounds/myloginsound and I got sound.
I'm curious as to why the event id failed. I suspect that id was not linked/associated with any sound before fedora 12 was released. How does one troubleshoot sound event ids and their associated sounds in f12.
I'd like to get audio when I log out as well. I recall seeing a dialog box with events and associated sounds in f11 (or was it f10?) .... I don't see it in f12
1. Does anyone know which package adds that functionality?
2. In the absence of a GUI approach, how can this be achieved (with the terminal)?
View 2 Replies
View Related
Feb 3, 2010
I have a program running on my server which I want to restart in the event that it ever crashes. Someone suggested "Watchdog" to me, but it appears to me that watchdog restarts the whole system, not the program. I couldn't find much documentation for it. Another suggestion I was given was crontab, except that I don't want to relaunch the program every 60 seconds, as it doesn't run on screen or anything, it forks itself into the background after launching it. Perhaps a bash script that would check to see if the program were running or not, and if it weren't, relaunch it? Not sure how to do that, I've never written bash. In any case, I just want to keep this program running full time.
View 6 Replies
View Related
May 3, 2010
Ever since 9.04 or thereabouts, I have noticed that it's impossible to change individual system event sounds in System -> Preferences -> Sounds. It only gives me a few lame choices of "themes". While it used to be possible to define my own sounds for startup, shutdown, new e-mail, etc, I can't find ANY dialog to facilitate this in newer versions of Ubuntu.
A question: HOW do I do this without having to hack apart my stock system sounds? There should be a way, but google and forum searching turns up nothing.
A comment: Ubuntu continuing to "nerf" their dialogs like this is infuriating, especially when the underlying system works so well. I actually don't know if Ubuntu or Gnome is responsible, but either way taking away rock-bottom basic functionality like this only hurts the OS and Linux's cause.
View 9 Replies
View Related
Jan 19, 2011
I was turning off my pc and my brother pulled out his sd card while the pc was shutting down. Now when I try to boot up I can't boot into my ubuntu partook it just hangs and then comes up with inittramfs. I can boot into my windows partition just fine. I also tried rebooting with the sd card in the slot but same thing. I managed to load up a live disc but have no idea what to do next if I want to save my old partition (if it can be saved) otherwise as a last resort ill have to overwrite the partition.
View 3 Replies
View Related
Oct 26, 2010
I am on debian lenny and I am trying to make a script that will run in the background and checks the ethernet connection. If the ethernet connection goes down it will connect to wlan. I have found 2 ways of checking ethernet connection, via proc/net/dev and via ifconfig eth0. But if possible I want to avoid polling. So is there any event that is triggered when the table gets disconnect or at least the connection goes down and up?
View 1 Replies
View Related
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
Apr 16, 2010
In window , I can catch all of systems event by window API, but in Linux,I don't know how to do it.
View 2 Replies
View Related
Aug 6, 2010
My OS is F12 with Gnome desktop, after many alternatives I installed ns-allinone-2.34 so ns-2.34 run very well:
[dreams@localhost ~]$ ns
% exit
When I try nam, I got this error:
[dreams@localhost ~]$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units }"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units }
bind Li..."
I m not familiar with Linux so I don't understand what it means. I want to tell you that I can run nam when I access to the folder with this command ./nam and I can see the samples so I run simulation. I visit some pages when they speak about gcc and their compatibilities with F12. When I use Makefile I got access dined.
View 5 Replies
View Related
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