Record and re-use keystrokes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Record and re-use keystrokes
# 8  
Old 11-15-2012
OK, let me phrase it differently: can that program be run from the command line giving the results desired? If yes, I could imagine ways to automate that, if no you may be stuck with that GUI and have to look for key or gesture loggers within that GUI.
# 9  
Old 11-15-2012
The program could be run from the command line if the user knew what to enter as the GUI returns, for instance - the GUI user could push an 'ok' button while the command line user would have to type in 'ok'. So, effectively, we would have to get those "returns", whether it be choices of field or simply a 'yes', 'no', or 'ok', from the user log file into a ksh script and have the program react appropriately to the input. Make more sense?
# 10  
Old 11-15-2012
Exactly, that was the idea. Collect a bunch of commonly run reports with their parameters, put those into a menu script and have the users select the menu item they want for that day.
# 11  
Old 11-15-2012
But it would make more sense to capture the output of the gui than the keystrokes it needs to generate that output. Then you wouldn't need the GUI every time. Probably much easier to capture the output than the keystrokes in any case.
# 12  
Old 11-15-2012
We can capture the output from the GUI (which is the input to the program, I suppose). This info is written to a file; problem is, since this GUI is just a passthru to Unix, what ends up in the file is every bit of the GUI code, from beginning to end. So whatever the user sees in the GUI is, in the background, written on the command line "behind" it. So, if I look at that file afterward, I see everything from "Welcome" to the selections made to the grids that are loaded etc. So you see, it's not simply their selections that I can pass back. I would have to parse them out of the file, which might take some work, but then I'm thinking I could pass them to the script and add a button to the GUI that would essentially run the program using the values in the script. The WinFAST GUI is all client-side and all they can see and use. It's something I had never heard of until I started working here. More info gowinfast.com.
# 13  
Old 11-15-2012
It's going to be way more straightforward to parse a file than hijack and replay an xterm. Terminals are built to avoid that kind of snooping. If you show us sample input and output (with confidential stuff blanked of course) we can probably show you how.
# 14  
Old 11-15-2012
Can't you see the program parameters like when using the -f option to ps, or in the /proc file system?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extract timestamp from first record in xml file and it checks if not it will replace first record

I have test.xml <emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp> <Join><id>101</id><city>london</city><date>06/06/14 2011</date></join> <Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join> <Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies

2. Shell Programming and Scripting

How to compare current record,with next and previous record in awk without using array?

Hi! all can any one tell me how to compare current record of column with next and previous record in awk without using array my case is like this input.txt 0 32 1 26 2 27 3 34 4 26 5 25 6 24 9 23 0 32 1 28 2 15 3 26 4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies

3. UNIX for Advanced & Expert Users

Sending keystrokes to another process

The third-party ERP system used by our company has no idle-out facility and we sometimes have issues because users simply walk away from their computers and leave sessions logged in for hours or even go home without logging out. (We are in a factory environment so it is hard to raise the care... (7 Replies)
Discussion started by: Wayne Ivory
7 Replies

4. Programming

How do you detect keystrokes in canonical mode?

I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies

5. Shell Programming and Scripting

Reject the record if the record in the next line does not satisfy the pattern

Hi, I have a input file with the following entries: 1one 2two 3three 1four 2five 3six 1seven 1eight 1nine 2ten The output should be 1one 2two 3three 1four 2five 3six (2 Replies)
Discussion started by: supchand
2 Replies

6. OS X (Apple)

Any mac software for recording keystrokes

I'm trying to find a good keylogger that doesn't come with any viruses. It happens to me several times that my browser crashes when I am in article writing or some other thing, very annoying. Thus, I need a keylogger to keep all my keystroke recorded. I 'v tried some, like the Aobo Mac Keylogger,... (1 Reply)
Discussion started by: Bluerosen
1 Replies

7. Shell Programming and Scripting

Queueing keystrokes

Hello, I have a ksh which can be run interactively with read etc waiting for input and so forth. Do you have an idea how can I invoke the ksh and supply a sequence of keystrokes that will feed the executable flow so that it will automatically run as if someone actually walked through one prompt... (7 Replies)
Discussion started by: gio001
7 Replies

8. UNIX for Dummies Questions & Answers

Looking for an X11 Utility - Send Keystrokes to Multiple Clients

A long time ago, I frequently used a small X11 utility that allows you to manage multiple systems at the same time. It worked by opening a small window that had a button you used to "Add" X Clients to it. These would be xterms on different systems for example. You would then type inside that... (5 Replies)
Discussion started by: Alon.Albert
5 Replies

9. Shell Programming and Scripting

tool to emulate keystrokes out to a ps/2 device?

hey all, i am trying to connect my mac to my sony DVD changer so that i can control one aspect of it with any kind of shell script or program. the DVD player allows you to plug in a PS/2 keyboard to navigate it's on screen menu. what i want to do is use my mac to navigate my own menus, then... (0 Replies)
Discussion started by: drzoomn
0 Replies

10. UNIX for Dummies Questions & Answers

recording keystrokes in vi

What is the syntax for recording command in vi. If I want to repeat a command over and over. My file is 12/01/05,,adsmte,9,0,0 12/02/05,,adsmte,12,0,0 12/03/05,,adsmte,10,0,0 12/04/05,,adsmte,11,0,0 12/05/05,,adsmte,10,0,0 12/06/05,,adsmte,10,0,0 12/01/05,,tsmpc1,57,1,2... (5 Replies)
Discussion started by: reggiej
5 Replies
Login or Register to Ask a Question