xavierm02
New Member
Hi,
I have a G751 so I have extra keys on the keyboard, including one (that I'll call CAMERA) to toggle record. It's supposed to work with Shadowplay but Shadowplay isn't quite usable yet so I use OBS instead. So I rebind the key using some piece of software that allows to either run a program with the key is pressed or simulate a Ctrl + Alt + Shift + Something keystroke.
My problem is that I can use that key to set put that keystroke in the shortcuts settings but when I try to use it afterwards, it doesn't work. In other words, both CAMERA and Ctrl + Alt + Shift + S work in the settings of OBS but only Ctrl + Alt + Shift + S works to actually start the stream.
I also tried make a program to make the keystroke myself using https://inputsimulator.codeplex.com/:
I used the solution of this thread to avoid having a prompt showing up: http://superuser.com/questions/140047/how-to-run-a-batch-file-without-launching-a-command-window
And I have the exact same problem: it works to set it in the settings but I can't use it.
I guess it has something to do with focus. When I'm in the settings, OBS captures everything while the rest of the time, it doesn't. But I don't get why even when I focus the OBS main window, it doesn't work.
Please let me know if you know some way to fix this.
Thank you in advance for your answers.
I have a G751 so I have extra keys on the keyboard, including one (that I'll call CAMERA) to toggle record. It's supposed to work with Shadowplay but Shadowplay isn't quite usable yet so I use OBS instead. So I rebind the key using some piece of software that allows to either run a program with the key is pressed or simulate a Ctrl + Alt + Shift + Something keystroke.
My problem is that I can use that key to set put that keystroke in the shortcuts settings but when I try to use it afterwards, it doesn't work. In other words, both CAMERA and Ctrl + Alt + Shift + S work in the settings of OBS but only Ctrl + Alt + Shift + S works to actually start the stream.
I also tried make a program to make the keystroke myself using https://inputsimulator.codeplex.com/:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WindowsInput;
using WindowsInput.Native;
namespace Keystrokes
{
class Program
{
static void Main(string[] args)
{
IKeyboardSimulator keyboard = new InputSimulator().Keyboard; System.Threading.Thread.Sleep(1);
keyboard.KeyDown(VirtualKeyCode.LCONTROL); System.Threading.Thread.Sleep(1);
keyboard.KeyDown(VirtualKeyCode.LMENU); System.Threading.Thread.Sleep(1);
keyboard.KeyDown(VirtualKeyCode.LSHIFT); System.Threading.Thread.Sleep(1);
keyboard.KeyDown(VirtualKeyCode.VK_S); System.Threading.Thread.Sleep(1);
keyboard.KeyUp(VirtualKeyCode.VK_S); System.Threading.Thread.Sleep(1);
keyboard.KeyUp(VirtualKeyCode.LCONTROL); System.Threading.Thread.Sleep(1);
keyboard.KeyUp(VirtualKeyCode.LMENU); System.Threading.Thread.Sleep(1);
keyboard.KeyUp(VirtualKeyCode.LSHIFT); System.Threading.Thread.Sleep(1);
}
}
}
I used the solution of this thread to avoid having a prompt showing up: http://superuser.com/questions/140047/how-to-run-a-batch-file-without-launching-a-command-window
And I have the exact same problem: it works to set it in the settings but I can't use it.
I guess it has something to do with focus. When I'm in the settings, OBS captures everything while the rest of the time, it doesn't. But I don't get why even when I focus the OBS main window, it doesn't work.
Please let me know if you know some way to fix this.
Thank you in advance for your answers.