Two programs to receive keyboard input simultaneously?

AI Thread Summary
Controlling multiple programs simultaneously, particularly for gaming, poses challenges due to focus limitations on a single PC. Users discussed various methods to achieve this, noting that while direct simultaneous control is not feasible, sending keystrokes to background applications can create a near-simultaneous effect. Tools like AutoHotkey and AutoIt were suggested for scripting and automation, allowing for interaction with multiple programs. Additionally, Cheat Engine was mentioned for freezing or modifying game states, though it lacks character movement control. A key recommendation was ISBoxer, a specialized tool designed for managing multiple game clients, which can display multiple user interfaces and facilitate simultaneous control across games.
Juzernejm
Messages
2
Reaction score
0
Hi,

A tough one here. Does anyone know a way to control 2 or more programs simultaneously? i.e. give focus to two programs?

My brother wants to control two games (full screen), on the same PC, at once, I assume that he only needs one to be maximized at a time, but the trouble is giving focus to one will cut the keyboard off from the other, Any way he can make this work?
 
Technology news on Phys.org
From within one program, you can open another one as a file descriptor and read and write to it.#include <cstdio> //<stdio.h> in C
FILE * fp = popen("yoursecondprogram --withargs", "w"); //write mode
if (fp == NULL) exit(1); //ERROR
fwrite(fp, 6, 1, "hello\r"); //Sends "hello" to the secondary program's stdin.

This is useful for proxying keyboard input, if you want things like key control for a game or something more real-time reactive, stdin is likely not what you want. You'll have to open up a socket communication between the two programs: The receiving program would have to open up a listening socket and the main program would have to send keyboard statuses through it. I have a similar issue right now where I want two different computers to control one two player game. I need a small helper program on the second computer to send commands over the network.
 
Hi everyone! I have the same problem!
I found a program called Cheat Engine, you can use the hotkey option and freeze/pause every game by clicking any key.
I just have to turn on 2 Cheat Engines and select a hotkey for processes for 2 opened games. When I push the key it freezes two games at the same time, so I think it's possible to control it simultaneously. But there's a problem, There is no option for moving characters in the game, just freezing or changing values. so I have a question is there a program which will let me select a procceses and control games simultaneously? Sorry for my English
 
Juzernejm said:
Hi,

A tough one here. Does anyone know a way to control 2 or more programs simultaneously? i.e. give focus to two programs?

My brother wants to control two games (full screen), on the same PC, at once, I assume that he only needs one to be maximized at a time, but the trouble is giving focus to one will cut the keyboard off from the other, Any way he can make this work?

For games use ISBoxer. It's purpose built for this.

http://isboxer.com/

It has a lot of features. For example it can chop up the game UI and display all the UIs from all your clients onto a separate screen.

Here's a guy playing 5 clients at once with ISBoxer

http://imgur.com/8IitCv1

Edited to change the screenshot. I just remembered that no-one who doesn'tplay Eve understands Eve screenshots ;-)
 
Last edited:
Thanks Carno and everyone who tried to help me. ISBoxer is the solution of my problem.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
I am trying to run an .ipynb file and have installed Miniconda as well as created an environment as such -conda create -n <env_name> python=3.7 ipykernel jupyter I am assuming this is successful as I can activate this environment via the anaconda prompt and following command -conda activate <env_name> Then I downloaded and installed VS code and I am trying to edit an .ipynb file. I want to select a kernel, via VS Code but when I press the button on the upper right corner I am greeted...
Back
Top