SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & 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-17, 12:09 PM   #1
Werner von Schmidt
Seaman
 
Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 41
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-17, 01:05 PM   #2
Aquelarrefox
Commander
 
Join Date: Apr 2013
Location: Buenos Aires
Posts: 456
Downloads: 159
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
__________________
Having a HARD TIME with CONSOLIDATE GRANMA MOD...
Aquelarrefox is offline   Reply With Quote
Old 11-24-17, 03:12 PM   #3
Werner von Schmidt
Seaman
 
Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 41
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-17, 06:27 PM   #4
Aquelarrefox
Commander
 
Join Date: Apr 2013
Location: Buenos Aires
Posts: 456
Downloads: 159
Uploads: 0
Default

KzS_Notepad.7z, serch this, would give you some ideas for a way to enter text as string.
__________________
Having a HARD TIME with CONSOLIDATE GRANMA MOD...
Aquelarrefox is offline   Reply With Quote
Old 11-25-17, 04:20 AM   #5
Werner von Schmidt
Seaman
 
Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 41
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 12:57 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.