Toggle and Window Focus Questions

I am using Bome for multi client gaming.
Ive been using two machines and a FCB-1010 midi pedal box for many controls.
This has allowed for sending separate commands for some things and universal buttons for things to happen in both clients.
This has worked ok as a Master/Slave situation which is nice but lacks control on the slave. However I want to try and run this on a single machine.

The main reason for trying one machine is the ability to have a button to switch screens between the two clients for a smooth takeover on the other client and full control. The problem seems to be routing certain translators to one window vice versa, while keeping the universals going to both.
Also a desire to have a main control and a secondary control scheme that toggles based on which client has mouse focus I.E.

Each client has its own window name thats basically CharacterName - ServerName

First how do I direct the universal cmds to both clients regardless of which has mouse focus?
I see application focus as an output option but dont understand how to utilize in this context.

Second how can I create a toggle that uses either mouseLocation/Click or windowName to make the switch from CliA to CliB while swapping the functions of the secondary buttons to CliA and back to CliB when I switch back?
something like

tog = 0 on togPress +1 | if tog = 1 then tog=0
To create a toggle variable. Then
if tog=1 click on and route to CliB
else click on and route to CliA

Any help would be fantastic.

This utility is amazing and I have gotten so many different uses from it from gaming, music production, to daily computing.

Hi, you will not be able to determine the focus on a remote machine as focus commands rely on the local operating system.

You could, however, send MIDI between both machines using Bome Network Pro (or other network MIDI protocol and then convert an incoming focus action from one machine to a MIDI message to the other machine to indicate a window that has focus. It would also require two instances running of Bome MIDI Translator Pro, one on each machine.

If both instances are controlled by the application focus on a local machine, translators can be created to set the state of a global variable based on the application in focus.

For your question about toggle, the below construct would toggle a global variable between 0 and 1. You would then have translators to trigger that look at the state of the given variable and determine what routes to enable or disable (as an outgoing action).

// toggle global variable ga between 0 and 1
ga=ga^1

For more detail, I would need to look at your project file to determine further what to do.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz