SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Set course / depth via keyboard (https://www.subsim.com/radioroom/showthread.php?t=235578)

Werner von Schmidt 11-21-17 06:34 AM

Set course / depth via keyboard
 
Hello,

I'd like to know how it's possible to set a course / depth via keyboard. I am not very skilled in programming, but at least I know it is possible to create sth like that.

Example:
Setting new course 123 by pressing "H+1+2+3".

Maybe someone has the knowledge / an idea to realise it?

Werner von Schmidt 11-25-17 04:27 AM

After the topic is overflowing with ideas I wanted to share my idea (maybe we could make some progress): :D
  • create a shortcut which opens an invisible editbox (new item)
  • typing 3 digits (only digits are allowed), for exampe 001 for course 001 / 1 meter depth
  • create a script (.py) which get the digits and "send" it to sth like Game.SubmarineCommands.ExecuteCommands
  • script clears the edit box and close it

:k_confused:


All times are GMT -5. The time now is 05:59 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.