Display keyboard and mouse input onto browsers and OBS browser source.
Always remember that do not type passwords when broadcasting.
- Run the application
KeystrokeServer.exeand click theStartbutton. - Open the
index.htmlon the browser or the OBS browser source. - If you have not set the client ip on the application, you will then receive a connection request from the browser to the application. Otherwise, the application will auto approve any request from the client ip you have provided.
- Almost the same as above except step 2, open one of the
.htmlfile from thelayoutfolder on the browser or the OBS browser source.
If you are familiar with javascript, it is easy to create your own layout.
- Open
layoutfolder and make a copy ofQWERTY+mousefolder andQWERTY+mouse.htmlthen rename them to the new names you choose. To make it simply on this tutorial, we will name the folder toexample_layoutand the html file toexample_layout.html. - Open
example_layout.htmlwith any text editor. - Find this line
<meta http-equiv='refresh' content='0; url=../index.html?layout=QWERTY+mouse'>. ChangeQWERTY+mousetoexample_layout, so the new line will become<meta http-equiv='refresh' content='0; url=../index.html?layout=example_layout'> - Open
layout.jsfromexample_layoutfolder with any text editor. - Remove unwanted key objects from the
itemsarray. A key object includes animageand atextobject, it should look like{ image: {...}, text: { key_code: '1b', ...} }. - Set the properties of a key object to change the appearance of a key.
Available key object properties:
{
image:
{
x, // image position x
y, // image position y
w, // image width
h, // image height
url, // image path name when key released
pressed_url, // image path name when key pressed
},
text:
{
key_code, // the virtual key code, add '1' prefix if it is an extended key
key_code2, // some of the numpad keys have different key codes when switching num lock
text, // text displayed on the key
x, // text position x relatively to the image position
y, // text position y relatively to the image position
size, // font size
bold, // set it to true or false to toggle bold font
font, // font name
color, // text color when key released
pressed_color, // text color when key pressed
}
}If a key object property is not set, it will assume to use the default one.
It is not required to do so but if you think that this app is useful to you and are likely to consider a tip as a small and unexpected bonus, here is the link: https://twitch.streamlabs.com/xxdocobxx

