small problem with cycle between systems

69 views
Skip to first unread message

gilles

unread,
Jul 18, 2017, 8:01:28 AM7/18/17
to Input Director
First of all, thank you with this program.
I have been using it for 2 days now and all is OK.

Before i start, let me explain my setup because it's not usual.
I have 1 master with 2 monitors (mon1 and mon2) and 1 slave.
mon2 is also the monitor of the slave, but it use a different input source (dvi = master and vga = slave).

1rst problem : cycling is not going to change input source for mon2.
2nd : i need to be sure, before input change on mon2, that the slave is not sleeping, or else input change fail because no signal and mon2 come back to the dvi source.

For these 2 problems, i write a script wich use psexec to wake up the slave and ahk for change input.

Unfortunately, double-clicking the script and using cycle hotkeys is not efficient.

First question : is it possible to add some events in macros ?
I would like that my script is automatically called when i transition from master to slave (and from slave to master).

Second question :
I tried to put the keys CTRL+F12 in my script to have less manual work but it's not working.
I tried, in C#, SendMessage, PostMessage and System.Windows.Forms.SendKeys.SendWait.
But Input Director is ignoring the call.
Is there a reason for this ?

I can make a resident program to monitor the cycling hotkeys and launch the script but before, i wanted to ask these 2 questions.

Thanks for reading and again thanks for this great program.

Shane

unread,
Jul 18, 2017, 8:08:55 AM7/18/17
to Input Director
Hi Gilles,


You can setup Input Director so that your slave computer doesn't go to sleep whilst you're using your master computer. To do so - open Input Director on the slave computer, switch to the "Slave Configuration" and enable the option "Synchronise the screensaver with the Master system".

First question : is it possible to add some events in macros ?

No, not at this time. I did consider adding this ability a few years ago, but didn't get any real interest when I suggested it on the forum.

Second question :

Try this: Open Input Director on your master computer, switch to the "Master Preferences" tab, scroll all the way down to "Advanced" settings and enable the option "Logitech keyboard macro compatibility mode".


Regs,

Shane.

gilles

unread,
Jul 20, 2017, 8:29:30 AM7/20/17
to Input Director
I'm not using often the slave so i prefer to let it sleep when it's unusued for the moment.

I finaly choose to make a resident program on master and slave.
First, i don't know for sure but it seems i have a problem to fire this cycling hotkey by myself : ID doing nothing.
And i came across a problem with gaming : i don't have problem with mouse like others but with keyboard.

I notice that when FINAL FANTASY XIV is running on master and i'm using the slave, all keys are processed too on master.

So i use the resident program to suppress all keyboard events when cursor is not on the screen :

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
       
{
           
if ((Cursor.Position.X == SystemInformation.VirtualScreen.Width / 2) & (Cursor.Position.Y == SystemInformation.VirtualScreen.Height / 2))
           
{
               
WndProc(ref msg);
               
return true;
           
}
           
return base.ProcessCmdKey(ref msg, keyData);
       
}


Next step could be redirect gamepad activity too.
I'd like to share it with the slave.

Electro Glyde

unread,
Oct 22, 2017, 2:39:00 AM10/22/17
to Input Director
This is a handy concept. I may make a version of this for AutoHotKey and StrokesPlus(lua).
Reply all
Reply to author
Forward
0 new messages