SUBSIM Radio Room Forums
Mods and files for every subsim!

SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-24-2017, 12:09 PM   #1
Werner von Schmidt
Seaman
 
Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 42
Downloads: 122
Uploads: 0
Support 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 is offline   Reply With Quote
Old 11-24-2017, 01:05 PM   #2
Aquelarrefox
Lieutenant
 
Join Date: Apr 2013
Location: Buenos Aires
Posts: 250
Downloads: 138
Uploads: 0
Default

key commands are complex to implement, but as i know its no posible to make a number by keyboard, but if you want to see something similar for ideas, mybe you should check a mod where you can write on a screen notepad, i dont have the link here. But composition of numbers could be imposible... that could be a good improve if you can make it work
__________________
from the kaisermarine to the ARA Independencia

yesterday: H.sie v16+Stiebler 4C+gwx3.0+merchantfleet+Real navigation+MaGui WS+caws 1.61 for gwx3

now: H.sie v16+Stiebler 4C+ NYGM & WAC5.0 mix+MFM(part)+vondos+Real navigation+MaGui WS+caws JFO Extra
Aquelarrefox is offline   Reply With Quote
Old 11-24-2017, 03:12 PM   #3
Werner von Schmidt
Seaman
 
Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 42
Downloads: 122
Uploads: 0
Default

Quote:
Originally Posted by Aquelarrefox View Post
key commands are complex to implement, but as i know its no posible to make a number by keyboard, but if you want to see something similar for ideas, mybe you should check a mod where you can write on a screen notepad, i dont have the link here. But composition of numbers could be imposible... that could be a good improve if you can make it work
My idea is similar. Press a key to open an invisible editbox, type three digits and confirm via enter. So at this point the value goes to the "set_course" or "set_depth" command. I just have no clue how to send the three digits to the set_course / set depth cmd.

The second problem is, that the editbox has to be cleared after the digits have sent to the command.
Werner von Schmidt is offline   Reply With Quote
Old 11-24-2017, 06:27 PM   #4
Aquelarrefox
Lieutenant
 
Join Date: Apr 2013
Location: Buenos Aires
Posts: 250
Downloads: 138
Uploads: 0
Default

KzS_Notepad.7z, serch this, would give you some ideas for a way to enter text as string.
__________________
from the kaisermarine to the ARA Independencia

yesterday: H.sie v16+Stiebler 4C+gwx3.0+merchantfleet+Real navigation+MaGui WS+caws 1.61 for gwx3

now: H.sie v16+Stiebler 4C+ NYGM & WAC5.0 mix+MFM(part)+vondos+Real navigation+MaGui WS+caws JFO Extra
Aquelarrefox is offline   Reply With Quote
Old 11-25-2017, 04:20 AM   #5
Werner von Schmidt
Seaman
 
Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 42
Downloads: 122
Uploads: 0
Default

Quote:
Originally Posted by Aquelarrefox View Post
KzS_Notepad.7z, serch this, would give you some ideas for a way to enter text as string.
To create an edit box item isn't the problem ... my struggle is to write a descent python script to get the input of the edit box and "send" it to Game.SubmarineCommands.ExecuteCommands (set_course etc.).
Werner von Schmidt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:39 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 1997- 2017 Subsim