Programming :: Way To Capture X Keyboard Events

Jan 8, 2010

I wonder if there is a way to caputure all X keyboard events, blocking them from going to the window with keyboard focus?

View 4 Replies


ADVERTISEMENT

Programming :: Capture/record The Keyboard And Mouse Events In Kde?

Aug 25, 2010

i want to capture the mouse events (click,double..,position ) as well as keyboard events (key strokes) for every application running separately?

View 1 Replies View Related

Programming :: Intercept The Mouse And Keyboard Events?

Nov 13, 2010

how to intercept the mouse and keyboard events in Linux,like hooking technique in Window ?

View 1 Replies View Related

Programming :: Generating Keyboard Events In Shell Script

Nov 23, 2010

Is it possible to generate keyboard event "Ctrl+c" from a shell script code.? I have written a shell script to compile my application and copy it to the server home directory, inorder to run my application I need to start the server (by running a shell script). But before that I need to stop the the currently running instance of my server. To do that I have to generate a keyboard event (Ctrl+c which I press it manually). I want to automate the entire process by writing a shell script I am able to run the server just by adding ./run.sh in my shell script. But before that to stop my server can I generate a keyboard by using a shell script event(ctrL+C) to stop server.?

View 2 Replies View Related

Programming :: VB Scripting Worklsheet And Key Events?

Jan 18, 2011

am working an a worksheet where I need to lookup id in an other worksheet.The script works as long as I am staying on the same row. When pressing key up or enter the corresponmding lookup information is not placed on the very same row.In short terms, I want the lookup data to be enterd on the same row no matter what key I am pressing.

The script:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim cfind As Range
On Error Resume Next
If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub
thisRow = ActiveCell.Row

[code].....

This example is set to Enter key procedure. So when the enter key is pressed, my current row will change by 1 so I have to compensate for that. All I want is that the data will be correctly enterd no matter what key I am pressing.

View 3 Replies View Related

Programming :: Simulate Key Strokes Events In Other Processes In System?

Feb 3, 2011

I have a program that receive user input.
I want to run this program automatically without user interaction, and in order to do that I need to simulate key events.
How can I do such a thing?

The program I am running is partly java and partly shell.

The shell part is easily done by using:
./prog.sh <parameters (Parameters being a file containing parameters)
But the java doesn't work similarly.

View 7 Replies View Related

Programming :: Capturing Short Randomly Occurring Events

May 8, 2011

I want to capture short randomly occurring events such as Sudden Interstellar Disturbances, Lightning, ion counting, etc. To do this I wish to use the LINE-IN port. My sensor would feed a signal of less that 2 volts but could be submitted via a voltage divider. Since the sound card captures 44100 events per second this should capture events I am looking at, I think, but maybe not. I would capture the sound buffer to a string or memory buffer every second (and half second so I can prevent overwriting of its buffer, then merge the two).

Every 60 seconds (for validation) I would run "time" and count full buffer transfers in between to time events. By effectively counting characters from the beginning of the processing buffer to the beginning of the event I could further refine the "time to event". I think I could then save a decent number of values or until no data received from the processing buffer to preserve the event. This I would output with event time (to within 1/44100 sec) along with the data points captured to a file.

Except for the outputting of info to a file I think I can scan a buffer for events within a second (while LINE-IN continues capturing data on that port). I believe I have a way to handle the outputting. I am asking if any of the processing of the previous buffer would interfere with the sound cards data capture on LINE-IN? There would be no disabling of interrupts. I am presuming that system interrupts would not effect the LINE-IN data capture. Is this true?

View 6 Replies View Related

OpenSUSE Multimedia :: Prevent Flash Capture Keyboard?

May 30, 2011

Is there any way to prevent Flash from capturing all keyboard input? I'm really sick of not being able to ctrl+l or ctrl+tab just because I'm watching a video, and today a video froze in fullscreen mode and I couldn't even ctrl+f1 to any terminals or ctrl+backspace to kill KDE. It would be awesome to stop flash from grabbing certain key commands and pass them to the browser or OS instead.

View 9 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 :: Bash: Capture All Output To A Log?

Jun 10, 2010

I have a script that generates a bunch of output, including the expansions details provided by: set -v -xI am trying to pipe everything that is displayed to a file, in addition to displaying it on the screen. I've managed to get stderr and stdout into the file, but the expansions are only printed to the screen. Here is what I have so far:sudo -u <user> source my_job.sh |tee my_log.txt 2>&1

View 2 Replies View Related

Ubuntu Multimedia :: Analogue Capture Program To Capture Austar?

Aug 13, 2010

What is the best analogue capture program please to capture Austar.

View 1 Replies View Related

Programming :: Capture Packet From DMA Ring Buffer?

Jul 21, 2010

I wanna capture network packets from DMA ring buffer, just like netfilter. i wanna capture it from DMA, because i wanna get MAC address of I/O packets, so netfilter not included MAC address of out going packets because its on IP level and Ebtables is like that too. how i can capture network packets from DMA ring buffer.

View 9 Replies View Related

Programming :: Best / Safest Way To Capture Root Password

May 31, 2011

I have a script which when invoked will generally su into being a number of different users (for those that have read other threads from me, you will know.I am building my own user based package management system).Whilst 75 - 80% of the time there will be no need to be anyone other than the original user, there are times when the root password is required. Currently this is presented to the administrator at exactly the point in the script that it is required.At times this may be more than once and it may also happen for multiple users in a row.

What would be the best / safest method (in your opinion) of capturing the password at the start of the script and then delivering it when required?I have looked at expect ( I am not at all familiar ), but on the examples dealing with passwords, that I could find, they all seem to store the password in a simple bash like variable (which does not excite me at all from a security point).I can also potentially go down the sudo road, but the issue here is that I would either have to find a list of commands that an entire group can have access to without passwords (doesn't sound safe) or I am back to square one of then requiring a password for each individual user to be entered, which if at the start would still need to be captured and saved until necessary.So as I have said, I am open to any and all (constructive) advice

View 14 Replies View Related

Programming :: Cannot Capture - No At End Of File Store It And Print It Using Sed And Awk

Nov 25, 2008

How to write a shell script the would search for a phone no using at the end text file using sed or awk and store it in a varaible or print it.

The text file is in this form

The first line may take any form but the last line will always be Firstname Lastname:KEN:+254456789

I would like to seach for the Phone and store it in a variable and print it.

The phone no will alway be preceeded by ":+"

View 10 Replies View Related

Programming :: Cannot Capture SCP Progress Bar In Output Redirect

Oct 31, 2010

I would really like to capture the output of scp and my file's progress. Scp updates the transfer rate every 1 second, and I will like to save the transfer rate at every update. So for example, if the file transfer takes 30 seconds, I would like 30 reports of the transfer rate.

The output looks like:
Code:
file.dat 1% 3664KB 938.5KB/s 05:48

Whenever I try a simple redirect like:
Code:
scp file.dat 192.168.1.100:~/ &> output
... it does not save the rate at every update, it only shows the final rate.

If I try using typescript by starting "script" ... it's the same deal.

View 7 Replies View Related

Programming :: Capture Link Values With Cgi Script

Mar 23, 2010

I'm creating my personal site in HTML/CSS and Perl/CGI. I have a list of links:

Quote:
<a name="link1" href="/cgi-bin/script.cgi">value1</a>
<a name="link2" href="/cgi-bin/script.cgi">value2</a>
<a name="link3" href="/cgi-bin/script.cgi">value3</a>
<a name="link4" href="/cgi-bin/script.cgi">value4</a>
<a name="link5" href="/cgi-bin/script.cgi">value5</a>

I want capture values of "value*" in <a> tags with script.cgi.

View 8 Replies View Related

Programming :: Capture The Stdout Of A Heredoc In A Variable?

Aug 12, 2010

Why doesn't this work?

Code:
cat | myvar=$(</dev/stdin) <<EOS
This is some content
EOS
echo "$myvar"

i have also tried several variants of cat in place of the redirection.

Code:
$(cat -)
$(cat)
$(cat /dev/stdin)

None of the variants print "This is some content"

I have a version that works:

Code:
myvar=$(cat <<EOS
This is some content
EOS
)
echo "$myvar"

but i don't like the syntax and it doesn't play nice in my editor with code folding.

View 5 Replies View Related

Programming :: Capture Network Utilization In System?

Nov 15, 2010

As we know, the data in /proc/net/dev fall into two categories -- the data received and the data transmitted. Now I want to calculate the network utilization, should the calculate be ---- (datareceived + datatransmitted - datareceivedlasttime - data transmitted last time)/ timeinterval?

View 1 Replies View Related

Programming :: Take A Screen Capture And Save It To A File?

Dec 9, 2010

Is there any simple example on how to take a screen cap and save it to a file?

View 11 Replies View Related

Programming :: Text Editor With Search And Capture

Dec 6, 2010

i was wondering if in all the editors/tools in linux, if there was a prog that can extract a portion of a text file, giving it a starting line of say o as the first character on a line of say o35565 oxxxxx then when it finds the next line down the file with the same thing oxxxxwhatever

it could take those lines and all the lines between them and save it to another file? i dont know if you call this parsing? or what.

View 14 Replies View Related

Programming :: Capture Parameter From Iframe To Main.html?

Aug 28, 2010

I have the following HTML code in main.html:

Quote:

.............
.............
<tr align="right">
<td width="50%">

[Code].....

I'd like capture with capture_profile() function in createproject.html a value into main.html page. How can I solve this problem with javascript?

View 1 Replies View Related

Programming :: Create A Screen Capture Program With Xvfb Server?

Jan 4, 2010

I am trying to create a screen capture program with Xvfb server, ImageMagick and Khtml2PNG. I seem to be having some issues and was hoping someone could help me out. I have everything installed and working on a centos WHM/CPanel system and am able to generate the screen shots and save them to root folder from shell with the following commands.

Xvfb :2 -screen 0 1024x768x24&
export DISPLAY=localhost:2.0
khtml2png2 --sw 200 --sh 150 http://www.example.com example.png
It works 100% fine when you run it from shell.

[Code]...

View 4 Replies View Related

Fedora Security :: Where Does Firestarter Get 'events'

Jul 18, 2009

Running Fedora 10 and 11. Using Firestarter firewall.Does anyone know where Firestarter gets the Events which it displays?I do not find anything in /etc/firestarter/.I suspect Firestarter looks in a log file which Fedora keeps somewhere.

View 2 Replies View Related

OpenSUSE :: Can't Audit Logout Events From Ssh Or Su In 11.0?

Feb 16, 2010

I am trying to setup auditing for NISPOM requirements using the built-in linux audit kernel which uses auditd and audit.rules for setup. I have been able to meet all other requirements, but I cannot find a way to audit user logout actions. My audit.rules file is listed below

Code:
#This file contains the a sample audit configuration intended to
# meet the NISPOM Chapter 8 rules.

[code]....

View 3 Replies View Related

Ubuntu :: Modify Events That Are Logged?

Jun 5, 2011

I was looking at my logs and was wondering what the easiest way to go about removing certain things from being logged.

For instance I noticed by default Ubuntu seems to log all network traffic and handshakes with wifi etc and I would like to keep such out of my logs.

View 2 Replies View Related

General :: Syslog Events To Identify Particular?

May 24, 2011

I know about syslog and /var/log/* log files but I don't know what kind of events means particular problem.

E.g.
- hardware issues (?)
- security problem (/var/log/security)

[code]....

View 1 Replies View Related

OpenSUSE :: Trigging Scripts From Application Events?

Jan 31, 2010

is there any way to trigger a command or script whenever a certain event happens in a application like firefox.or at least trigger a script on the launching of an application.

View 2 Replies View Related

Ubuntu :: Shotwell Tags And Events Disappeared?

Feb 27, 2011

I just finished upgrading from 10.04 to 10.10 and converting from F-spot to Shotwell, including adding a large number of new photographs (>15 k).

On opening Shotwell today I found that all "tags" and "events", including those from the F-stop imported photos, have disappeared!! (strangely the photo ratings are maintained)

No amount of searching was able to relocate them. The modification date on the photo.db in the .shotwell folder is pre-problem, so I am holding out some hope that the relevant data have not been over-written.

I am not familiar with sql so do not know how to check the db (or restore the correct headers or whatever else is needed).

View 3 Replies View Related

Ubuntu :: Separating Apache2 Error Log Certain Events

May 16, 2011

I want to separate the Apache2 Error log to log certain events in a specified file.
For example:
client denied by server configuration > denied.log
Directory index forbidden by Options directive > forbidden.log
I would like it add it to the logs as the events happen, and like the other logging systems, create new files when the current is full. i.e. denied.log.0

View 1 Replies View Related

Networking :: Execute Shell Scripts On Events?

Feb 20, 2009

Users will write data on a samba shared folder at any give time. I need to execute a script as soon as some thing is written to that shared folder. What I need to know how to execute a script as soon as something some data is written to that shared folder.

View 1 Replies View Related







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