Simulate keypress inside a non-x application...


 
Thread Tools Search this Thread
Top Forums Programming Simulate keypress inside a non-x application...
# 1  
Old 02-21-2014
Simulate keypress inside a non-x application...

Hey guys,
I'm looking for a solution to simulate a key-combo (tab+q) inside an amiga-emulator. I've tried it with uinput and python without any success.
Any help would be great.
Cheers
McCarthy
# 2  
Old 02-21-2014
I might seem a little dumb here but what is "tab-q" supposed to do except maybe
quit the emulator and drop you back into a/the command line?

Usually "F12-q" quit the UAE derivatives...
# 3  
Old 02-21-2014
Yeah maybe, but this version (uae4all-pi) uses tab-q...do you have an idea?

Last edited by mccarthy83; 02-21-2014 at 11:39 AM..
# 4  
Old 02-21-2014
Just an idea. a bit of lateral thinking...

I have no idea whether this will work and I am assuming you are using the Debian
derivative core.

How about seeing if you can bring up another console using say Ctrl-Alt-F2 and
killing the emulator app' from that console...

Just an idea using a possible back door...

If this works please let us know...

EDIT:

Just thought that you are not using X so try Alt-Fx where x = (1), 2 to 6 instead.

Last edited by wisecracker; 02-21-2014 at 12:37 PM.. Reason: See above...
# 5  
Old 02-21-2014
Mh I'll maybe give it a try, the point is, that I want to control everything with the controller so the keyboard will be obsolete...
# 6  
Old 02-22-2014
What controller?
OK a second bit of lateral thinking(s)...

As we now know you are using some sort of controller how about the controller doing a
hard reset, (or maybe a soft reset), to return you back to the command prompt.

Yeah, it takes time to reboot but get something working first then improve on it.

How about strippng a cheap USB KB for its board and using your controller to short
the two pairs of lines and having a real Tab-Q, assuming Tab-Q actually works.

I made a slow I/O port using an old KB, and it might help with the idea, here:-

BerliOS Download - The Open Source Mediator

(It might point you to SourceForge now though.)

Ignore the 8086 Assembly and MikeBASIC code as this was for a specific application.
It is certainly a back door that gave MikeOS a serial I/O at around 50bps...

Apologies to the Moderators for plugging my stuff...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Simulate keypress in bash

Hello everybody, I am using Windows 10 and cygwin/bash. I need to write a script in bash which simulates opening of a program and then press some keys such as F5, ENTER and ALT+F4. I have written a VBScript which does the job Set WshShell = WScript.CreateObject("WScript.Shell")... (9 Replies)
Discussion started by: supernono06
9 Replies

2. Shell Programming and Scripting

Bash loop hording keypress input

I have a bash loop that waits for a single key press, then does $something depending on what $key is pressed before refreshing the screen with updated data. The problem I have is that the script will store additional key presses and chain them together causing the screen to redraw and the script... (1 Reply)
Discussion started by: DarkPhoenix
1 Replies

3. Shell Programming and Scripting

Trying to Bind a keypress to a function

I've been trying to re-think an old problem that didn't get answered. I know this is possible, but I'm having trouble getting it to run. I just want to call a function with a key-press or key combination. I looked and saw bind can be used to run functions and other scripts this way. Here's what... (2 Replies)
Discussion started by: Azrael
2 Replies

4. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

5. Programming

get keypress c++Qt

Hi i need to get the key pressed from the keyboard without focus on the application. i work under CentOS 5.5 with QtC++ 4.7 and Python Script (0 Replies)
Discussion started by: HanyM.Magdy
0 Replies

6. UNIX for Dummies Questions & Answers

How do i detect a keypress such as Page-Down ?

Hi, New user here, I have googled this but found nothing that helps me. I have a file of data and want to display it to a user from within a "frame/window/screen" that allows the user to pageup/pagedown through the data. I can do this mostly, but I cannot detect the pressing of the... (6 Replies)
Discussion started by: gcraill
6 Replies

7. Programming

How to know there are multiple instances inside application itself,not through ssh

hi, As you know, in Windows Programming, in WinMain method you will give n argument which you can know if this is another instance of the application or just the fresh execution. How this functionality can be achieved in Linux application? Most of suggestions i have seen here in threads are... (5 Replies)
Discussion started by: Sedighzadeh
5 Replies

8. Shell Programming and Scripting

How to trap a user keypress

Yo, I program Unix for fun- except when editing my website removed by reborg - and wanted to learn how to track, trap, and use to my advantage a user keypress. I know there is a built-in JS function that can do that, but Javascript is a client-side language, therefore not usable in Unix, and... (2 Replies)
Discussion started by: signebedi
2 Replies

9. Shell Programming and Scripting

keypress event in shell script

Hi All, How can I trap a character press in the shell script. For eg:- I have a script runinng a infinite loops , I will need to dispay menu asking for run process of to stop process and process stauts like we do in glance I have seen the traping the signal in glance command, (8 Replies)
Discussion started by: arvindng
8 Replies

10. Programming

keypress signals

How-to use keypress action signals in C? Is there any nice select or poll functions for that? (1 Reply)
Discussion started by: Esaia
1 Replies
Login or Register to Ask a Question