Ubuntu :: Send Keyboard Input To A Window?

Feb 10, 2011

I want to create a script to send input to an already open window from the command line. The reason that I want to do this is to automatically control a game running on a emulator screen. So, for example, I want to send commands like "up" "up" "w" "s" ..

View 4 Replies


ADVERTISEMENT

Ubuntu :: No Keyboard Input And Window Borders On Second Monitor

Jun 11, 2011

I run Natty 64x (new install) and have setup to use two seperate x servers and no xinerama. When I start my computer everything seems fine on both monitors but once desktop is loaded and I start an app in the second monitor, I can't type anything and the window borders are missing. If I type "DISPLAY:=0.1 metacity" the problem gets fixed but I get an error that a window manager is running already.

I have AMD/Nvidia, GeForce 8800GT.

View 5 Replies View Related

Programming :: Read Keyboard Status (not: Wait For Keyboard Input)?

Jun 28, 2011

has bash a command that reads the keyboard status and exits? I want to write a loop of this form:

Code:
while [ 1 ] do
sleep (1)

[code]....

View 14 Replies View Related

Programming :: Start A Process And Send Input To It In A Shell Script?

Jun 9, 2011

I'm building a Linux From Scratch system and partially automating it. I will likely want to do it again, and I would like to try to almost completely automate it.

My current approach is a script that takes an input file and sequentially runs each line in a new instance of bash. If one fails, it gives me the number of the step that failed so that I can use the "--step" option to resume after I fixed the issue.

This has some problems:
A varible created on one line will not be accessible on the next line. This is because each line is run in a separate shell (the reason for this is so that the commands in the input file and the script's internal variables can't interfere). You can't switch users or use chroot, again because each line is run in a separate shell.

What would be nice is to be able to start a bash process in the background and send commands to its stdin. I guess that a named pipe would work, but the named pipe will be gone after a chroot. Is there a way to do it without relying on the filesystem? Also, how do I know if the command failed?

View 14 Replies View Related

Ubuntu :: Send Email Using Evolution - Could Not Connect To Smtp.gmail.com: Input/output Error

Sep 19, 2010

for like two weeks I have been trying to send email using evolution for some reason I always get the same Code: Could not connect to smtp.gmail.com: Input/output error

View 6 Replies View Related

Ubuntu :: IBus - No Input Window In Gnome 3

May 16, 2011

I recently installed gnome 3, using the ppa -> dist-upgrade -> install gnome-shell method. IBus used to work fine with gnome 2.3 and unity, but in gnome 3, the icon is still there, the deamon is still running (I presume) but no matter where i click, it always shows 'no input window'... (for example, i can't type anything other than English here...).

View 6 Replies View Related

Ubuntu :: Keyboard Input Disabled In Flash

Mar 10, 2010

The issue I've been having is with Flash on websites; most notably, Livestream's Flash-based browser viewer, and Adult Swim's flash-based games. Clicking works perfectly fine, but the keyboard input is entirely disabled for the Flash area. Text boxes, or game controls, won't respond at all, even when everything else is still working.The only way to input any text into Flash-based text boxes is to write it somewhere else (Firefox's URL or Search bar, or in GEDIT), then copy+paste into the tect box (again, Ctrl+V won't work, only right-clicking and pasting will go through).

I've tried multiple versions of the Adobe Flash player, including the installer directly from Adobe's site, the adobe-flashplugin package in Synaptic, the flashplugin-installer package, and I believe I tried GNASH as well (although I'm not sure if that did anything).I haven't had a chance to attempt to downgrade either one yet, however, nor have I been able to test another browser.I've seen a few other issues of this sort pop up here before, but they've all either gotten no solutions, or they're a year or two old, or they're running into 64-bit-specific issues. Hopefully this is posted in the correct location, and fingers crossed someone has an answer (or better yet, a solution).

View 2 Replies View Related

Ubuntu Installation :: Can't Input Anything From The Keyboard - It Seems Greyed Out?

May 4, 2010

I have done a clean install of Ubuntu 10.04 on my laptop. However I don't like Evolution mail client and installed Thunderbird from the repositories. It installed fine and comes up with the wizard to fill account details in but for some reason you can't input anything from the keyboard - it seems greyed out. I tried uninstalling and re-installing but it's still the same. Everything else is fine and working.

View 9 Replies View Related

Ubuntu :: Change Input Language (not Keyboard)

Oct 27, 2010

how to change my input language (the way typing in accents affects the output character).

Currently I am on a Brazilian abnt keyboard and an English system (which is what I want), but I am unable to output accented characters - which I sometimes want, when I am not programming. I need something to switch around, but cannot find where to configure additional languages (not keyboards) neither where to switch.

I am on 10.04 with a gnome desktop.

View 6 Replies View Related

Ubuntu :: Keyboard Input Methods Not Showing Up?

Jun 2, 2011

I switched to pure LXDE desktop in my Ubuntu and now my Keyboard Input Methods dialog doesn't show up. When I click on the menu item nothing happens. The Preferences menu item in the keyboard icon in the panel doesn't work either.

View 9 Replies View Related

Ubuntu :: No Keyboard Or On Screen Input - Any Workaround?

Aug 8, 2011

Running natty. Main user account. In Ubuntu & Ubuntu Classic, both gnome, no keyboard or on-screen keyboard input. Compiz & metacity both bad. Mouse okay. Other user accounts okay. KDE okay.

Tracked problem to /home/{user}/.gconf/desktop/gnome/session/required_components/%gconf.xml. Removed file, problem goes away.

File contents:
<?xml version="1.0"?>
<gconf>
<entry name="windowmanager" mtime="1303412016" type="string">
<stringvalue>compiz</stringvalue>
</entry>
</gconf>

View 1 Replies View Related

Ubuntu Multimedia :: Stream HDMI Input To Window?

Mar 27, 2011

I currently have a Monitor which accepts VGA, DVI and HDMI input, it is connected to my PC with a VGA Cable and my X-Box with an HDMI Cables, to switch between them all I have to do is click a button on the monitor to switch the input source.I was wondering if it is possible to get the HDMI stream while the VGA is connected and push that to the monitor in the form of a Window on the screen.Does anyone know of an application to do this, or if it is even remotely possible?EDIT: I just noticed VLC Media Player has the option to stream my desktop, would it be possible to use that to stream from the HDMI input too?

View 3 Replies View Related

Ubuntu :: Keyboard Layout Won't Register Ctrl Input?

Mar 31, 2010

Been a long time since I was on ubuntu again. Saw the new 9.10 version and decided I should take it up again. Only problem is, and I've come across it quite alot, (but never a working solution). That my ctrl key isn't doing anything at all, therefor making every keyboard shortcut (copy/paste/new tab in firefox...etc) not working. It's not compiz his fault, i've had the same issue before i installed it.

Also i tried switching keyboard layouts, when i key press i don't see the ctrl key light up on screen, BUT when i press shift+ctrl, it does Anyone got a clue in how to revive my loving and overused ctrl button again ?

View 1 Replies View Related

Ubuntu / Apple :: Disrupted Keyboard Input In Gnome?

Nov 7, 2010

I'm running a 13" white Macbook. The keyboard worked fine, until today. I logged in and half the keys didn't work, the other half were numbers not the letters they were supposed to be. This started after log in, meaning I was able to enter my password properly: The problem starts when gnome boots up.

By copy and pasting, I installed Kubuntu, where the keyboard also works properly, so this is clearly a gnome problem. I haven't ruled out malicious software, which seems like the next step: How do I verify and replace all the software (gnome) that might be corrupted?

View 2 Replies View Related

Ubuntu Multimedia :: Casio Keyboard AUX To USB Microphone Input?

Dec 12, 2010

I am trying to get the sounds that are played on the Casio CTK-651 keyboard from the keyboard into ubuntu or windows. I can get the signal, but no sound is played back under Windows when it's connected with an AUX-to-USB connector. When I do it with the MIDI-to-USB connector in windows and ubuntu, whenever I press a key, I get what is programmed into LMMS through connecting in a channel. I can't get the piano or guitar or whatever sound that the keyboard is making into the computer. I can upload some video to show what I'm talking about with the aux connector.

View 1 Replies View Related

OpenSUSE :: Getting Japanese Input On US Keyboard?

Feb 11, 2010

I know it is possible, and I have been trying everything I can find, but I can't seem to get it to work. I went to languages in YaST and enabled Japanese as a second language, and I have tried adding japanese as a secondary keyboard layout under configure desktop-> regional and language settings. I have a little flag in the system tray that I can click to change from US to Japanese, but all that does is change what the punctuation buttons do.

View 9 Replies View Related

General :: Change The Input Keyboard From EN To DE?

Sep 3, 2009

I installed SuSe Linux. By the installation I forgot to set the key-board to German. How can I change it now? I don't think I have to re-install the Linux again, right

View 3 Replies View Related

Ubuntu Installation :: Keyboard Input Broken On Upgrade To Lucid?

Jul 27, 2010

previosuly installed products that mapped keys, but I dont have and have never had any of them. reset the keyboard to default settings, which I happily did to no avail.
So for me, since I upgraded, keyboard input (either local or via VNC, so it isnt hardware) does nothing for either the caps lock key or the shift key. Kinda makes it imnpossible to eneter @ or any uppercase character, for example !

View 7 Replies View Related

Ubuntu :: Keyboard Input Method Pref Menu Does Not Load?

Oct 16, 2010

I'm running Maverick, trying to change my input method from IBus to Anthy (Japanese) but whenever I click on System > Preferences > Keyboard Input Methods, it won't load the preferences window. It'll say "Starting..." on the taskbar but then disappear. The usual keyboard shortcut does nothing

View 4 Replies View Related

Ubuntu :: Unable To Get Any Keyboard/mouse Input To Register On Screen?

Dec 19, 2010

I installed Ubuntu a couple of months ago using the Wubi installer.Today, I went to restart my PC, but soon after hitting 'Restart' the computer became unresponsive. I couldn't get any keyboard/mouse input to register on screen, so I did a force shut down by holding down the power button. When I turned the computer back on, I selected Ubuntu from the boot menu. The computer printed some messages that passed by relatively quickly so I'm not sure exactly what they said, but it was something along the lines of "NTFS3: wubibuilder failed to load", and then it went straight back to the boot menu. Tried again and again with no success, so I loaded my Windows 7 install to investigate from there. I found a link to Explore2fs on these forums, so I loaded it up, but it apparently can't locate my Ubuntu partition, or at least I don't see my files. I ran the Wubi installer again to see what it would say, and it tells me that a previous installation was detected, and gives me the option to uninstall. Does anyone have an idea of what went wrong,

View 5 Replies View Related

Ubuntu :: Restore Dead Mouse And Keyboard Input From Live Cd?

Jan 1, 2011

how I restore dead mouse and keyboard input from the live cd. Basically what happened was I was updating the machine and decided to let them run in the background while my sister's 6 year old son played some tux computer games, when he was finished he switched the entire computer off at the power button and it was still updating in the background. Now there is no mouse or keyboard input, I cannot get into the recovery console, nor can I control a terminal from the login screen in order to successfully complete the update. This means basically the only option to fix it would be to re-install or fix the human user interface device drivers (keyboard and mouse) via the live cd, I am in need of some advice or instructions on how to go about fixing this issue.

View 5 Replies View Related

Ubuntu :: Input Username And Password But After Logged In Can't Work With The Keyboard?

May 18, 2011

Since today the keyboard doesn't work. I can input username and password but after logged in I can't work with the keyboard. It seems locked. The mouse works correctly. If I boot with Windows the keyboard works correctly.

View 2 Replies View Related

Ubuntu :: Intermittent Input Devices: Unable To Use Keyboard And Track Pad

Jan 25, 2010

I have been using ubuntu 9.10 for about a week and have had problems with my keyboard and track pad on my laptop. I can navigate grub (I'm dual booting) but once ubuntu starts to load then I am unable to use my input devices. Even using cap locks doesn't turn on the corresponding light. As fa as I can tell it seems intermittent and I can make an STR.

View 1 Replies View Related

Security :: Prevent Spying Keyboard Input?

Oct 16, 2009

I just made a script to read out /dev/input/event3 into a file (My keyboard is identified here [ Machine is a laptop which runs on slax-atma distro ]). Then used a hexdump to convert the binary into hex. After that used a gwak script to print out the keys corresponding to each keyboard input. So now when I put this in my rc.local , It is taking down all the keys I press. Including login passwords (In short, each and every keys I press).Isn't this a big security risk, because intruder who has a physical access to my machine or has root password can put this file in rc.local and run a script to mail him all the details like my passwords, account and PIN numbers.

View 14 Replies View Related

Programming :: Watch For Keyboard Input Without Waiting In C?

Jan 25, 2011

I have a C program that may finish in seconds or weeks depending on the data. For the longer jobs I want to be able to press a key and get an intermediate result printed.

View 14 Replies View Related

General :: Define A Keyboard Layout / Input Method For Ubuntu In Python?

Jun 20, 2010

defining keyboard layouts in linux (ubuntu 10.04 here). there does not seem to be any easy, graphical way to define keyboard mappings (except for keyboardlayouteditor, but frankly, i do not understand the installation description.i am using an apple aluminum keyboard with a german layout, but no matter what i do the (<>) and (^°) keys are always swapped (i did manage to change the default behavior for the f1...f12 keys from multimedia back to 'ordinary', application-centric... all you have to do is add the line echo 2 > /sys/module/hid_apple/parameters/fnmode to /etc/rc.local... this is so bloody obvious i am ashamed i had to search the web for this!).

adding to my distress, i find the chinese IMEs a horror (not a single one of the many i tried does anywhere come near google pinyin for windows), and have gotten neither ibus nor scime to work in a satisfactory way for me. i find linux keyboard handling a morass. i know this must be one of the hardest problems in computer science, since this subject gets so convoluted no matter whether its on windows or in-the-browser javascript. as a linguist i am well aware of the inherent complications proper text handling poses, but looking at descriptions how to configure xkb makes building interstellar spaceships look like a cakewalk.

find a place in the system where keystrokes are recorded;read out those codes (could be scan codes or character codes) using a daemon (implemented in python; i heard you have to listen to IOCTL or somesuch); when certain code combinations appear, switch them to do what you want;applications now get to see a X where formerly the got to see a U and vice versa;profit!

Is there a place, in ubuntu / linux systems that does allow reading out keyboard codes? Is there a way to block processing of such keyboard actions until an intercepting daemon has processed them? Would such an interceptor work for a broad range of use cases? like on the command line, in a gtk app, in wine, in firefox and so on? An alternative would actually be to grok keyboardlayouteditor, so if someone could post about a readable, complete installation instruction or point out installable packages, that'd be great, too.

View 1 Replies View Related

General :: Prevent Pinentry From Stealing Keyboard Input?

Oct 4, 2010

I am using gpg keys with passphrases set to connect to different jabber accounts. When I restore from hibernate I am prompted by two pinentry dialogs for these passphrases. But very often one of these dialogs that is not in focus steals keyboard input from the other dialog. Even worse, they steal keyboard input from fluxbox and other applications and I am unable to do anything until I enter it or click cancel if I do not want to input password right now. How can I forbid pinentry to steal keyboard input and to get it only if it is in focus? I am using pinentry-0.8.0 on Gentoo amd64 with USE="ncurses qt4" (/usr/bin/pinentry is a symlink pointing to pinentry-qt4).UPDATE:After some research, I found that pinentry accepts --no-global-grab option, which, according to the info page, should be used only by developers. Still unsure how to make it default: having#!/bin/zshexec /usr/bin/pinentry-qt4 --no-global-grab $@in place of /usr/bin/pinentry symlink does not work (this script is launched, but option is ignored), if I place it into /usr/local/bin it is not launched at all though I have /usr/local/bin in $PATH before /usr/bin.

View 1 Replies View Related

General :: Keyboard Input Time Is More For Typing Commands?

Aug 15, 2010

While typing commands it takes more time to type.let me know on how to correct this

View 3 Replies View Related

Software :: Disable Any Keyboard/mouse Input In GRUB?

Jan 11, 2011

I've found that my USB mouse causes some I/O bug BIOS, but in operation system it works fine. Problem is freezing GRUB caused by fake input from the mouse. Possible decision is disabling any input for grub, but I don't know how to do it.

View 6 Replies View Related

Programming :: Bash: Handling Input From File And Keyboard?

Jan 20, 2009

I have this little shell script which copies file names taken from inputfile:

Code:
while read line; do
cp -i $line something

[code]...

View 4 Replies View Related







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