![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Seaman
![]() Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 41
Downloads: 122
Uploads: 0
|
![]()
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? |
![]() |
![]() |
![]() |
#2 |
Commander
![]() Join Date: Apr 2013
Location: Buenos Aires
Posts: 456
Downloads: 159
Uploads: 0
|
![]()
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... |
![]() |
![]() |
![]() |
#3 | |
Seaman
![]() Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 41
Downloads: 122
Uploads: 0
|
![]() Quote:
The second problem is, that the editbox has to be cleared after the digits have sent to the command. |
|
![]() |
![]() |
![]() |
#4 |
Commander
![]() Join Date: Apr 2013
Location: Buenos Aires
Posts: 456
Downloads: 159
Uploads: 0
|
![]()
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... |
![]() |
![]() |
![]() |
#5 |
Seaman
![]() Join Date: Mar 2014
Location: List auf Sylt, Deutschland
Posts: 41
Downloads: 122
Uploads: 0
|
![]()
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.).
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|