Skip to content

Testing the ability to send key combinations to Cubase from a mobile 'phone and tablet, using only scripting languages.'

Notifications You must be signed in to change notification settings

leegee/node-myremote

Repository files navigation

node-myremote

Remote control Windows applications from a mobile device/web page.

Synopsis

npm i                             # bun dislikes some deps

# For the JS version:
bun run build
bun run start

# For the dotnet version:
bun run build:dotnet
bun run start:dotnet

Or use the Windows installer.

System tray:

System Tray

Main interface:

Main

Editor:

Editor

Editing:

Editing

Description

Creates a Windows' system tray icon that can provide a URL for a webpage that can send key commands to Cubase, or any other Windows application.

Key commands can be added and edited, are preserved between page loads, and can also be saved to and loaded from file.

To re-arrange commands, drag the icons or table rows.

This would work for any program, by updating the regex in the .env.

Versions

There is a Typescript version, and a dotnet version. The latter requires elevated privelages to listen to all network interfaces:

# As admin:
netsh http add urlacl url=http://+:8223/ user=Everyone
netsh http add urlacl url=http://+:8224/ user=Everyone
netsh advfirewall firewall add rule name="MyRemote" protocol=TCP dir=in localport=8223 action=allow
netsh advfirewall firewall add rule name="MyRemote" protocol=TCP dir=in localport=8224 action=allow

Program Flow

Build: vite -> HTML/JS/CSS bundle
Sytem tray HTTP server -> HTML/JS/CSS bundle
HTML/JS/CSS bundle -> System Tray WS server 
System Tray WS server -> Key combination -> Target App

Build

bun run build:dotnet

That will build the vite bundle, copy assets to the dotnet directory, run the dotnet release build, after which a tar ball can be created:

bun run bundle

Dev

Use the Vite dev server, make sure to append a query string with an encoded URI to the web socket server: the sort of thing output by the Node app prototype.

Future Work

  • Parse a Cubase XML
  • Expose the regex used to select the program
  • Maybe add options to launch programs

Resources

About

Testing the ability to send key combinations to Cubase from a mobile 'phone and tablet, using only scripting languages.'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published