Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 19-01-2014, 16:42   #1
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Launcher Plugin

Launcher Plugin 0.20
Source: https://github.com/nohal/launcher_pi
Command: git clone git://github.com/nohal/launcher_pi
Compiled: Launcher_pi.dll
Threads for Launcher, Macros, Hot Keys, Shortcut Keys
Shutdown Button
Shortcut Keys List
OpenCPN Optimized for Touch Screen
Hot Keys ...

Pavel thank you for the great Christmas present! It is already useful, and I am sure it will improve over time to become a very good interface tool.
__________________

__________________
rgleason is offline   Reply With Quote
Old 19-01-2014, 17:50   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Smile Re: Launcher Plugin

This first step is very welcome, the comments below should not be taken too seriously, they are streamed and written quickly, so please don't be offended for some reason or other, it is just to get us thinking about what is possible. Much of this is probably not possible however.

Pavel first four work but are only useful when not on the briney deep. The Windows shortcuts and Opencpn shortcuts don't seem to work for me in Windows 7, which would be needed if we were to be able to concatenate or string commands together for macros (not your initial intent with the plugin). I am trying to determine what commands are allowed and what format is required:

Code:
Tracker   "C:\Program Files (x86)\Mozilla  Firefox\firefox.exe"   http://opencpn.org/ocpn/flyspray/index.php?project=0&do=index&switch=1"
Manual    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"   http://opencpn.org/ocpn/opencpn_manual"
Forums    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"  http://www.cruisersforum.com/forums/f134/"
Plugins Threads   "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"  Plugin Threads (List)
Plugins Sean   "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"   Sean Depagnier's Plugins
Close Program - "Alt+F4"   "ALT+F4"
Auto Follow - "F2" (OpenCPN)   "F2"
Drop Mark - Ctrl+M   Ctrl+M
Toggle ENC Text  -  T      T
Toggle ENC Text  -  "T"    "T"
Toggle ENC Text - F3      F3
Toggle ENC Text - "F3"    "F3"
Auto Follow - F2 (OpenCPN)    F2


Some questions:

  1. Are Dos commands allowed? Is this like "Cmd" Screen?
  2. OpenCPN used to or perhaps still does, have a command line interface (I read it somewhere). Is that still available for testing Opencpn commands and what are the commands that work with that?
  3. Can the Shortcut Keys be made to work with this?
  4. Can Windows Shortcut Keys be made to work with this?
Could the plugin provide the template for "remapping" the keys that Sean was talking about? IE
  • Command Title (fixed by Int PO) Same as program uses perhaps.
  • Longer Description (Fixed by Int PO)
  • User Command Description (variable)
  • Key or keys to activate (variable)
  • Plus + requires both keystrokes to issue command
  • Semicolon ; separates two commands
  • Brackets < > enclose commands for macro concatenation.
Also
  1. A unique numbered command identifier might be needed for ease of compilation, but this might make code less readable, but I know little about these problems.
  2. The Preferences entry would also have an "eye" hide/open for each command, so that the ones the user wants to popup can be set.
  3. The Preferences entry should also have an "eye" to hide/open any data type columns that might be useful but take up space.
  4. The Preferences should have an "up" and "down" feature for the highlighted command to put them into preferred order.
  5. The Preference box and fields should be resizable.
  6. In the Opencpn screen with the plugin up, the dialog box should be resizeable and its fields.
  7. There should be quick option to change the Dialog box from command line, to a larger dialog that has the commands and uses the shortcut keystrokes or a mouse or a finger, to execute the command.
  8. The individual buttons should be sizeable by user easily with a finger(s) or mouse.
  9. We should use finger down pause, to popup a selection window if it is not working this way already.
  10. For the command with focus, there may be a need to have a settings window for finer selections or entry.
Sorry about all the questions and ideas..... Thanks for this first work to get us off dead center and onto Tablets!
__________________

__________________
rgleason is offline   Reply With Quote
Old 20-01-2014, 03:12   #3
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 407
Re: Launcher Plugin

Hi,

I am using Launcher pluging as a way to display few mementos (AIS, shortcuts...).

This pluging is very handy and I can customize OpenCPN with my own material.

Serge
__________________
AISEAG is online now   Reply With Quote
Old 20-01-2014, 06:05   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Re: Launcher Plugin

Serge That's great, can you give some examples of commands that work for illustration? It would good to have examples for both Linux windows and also mac to help users to learn. Thanks for sharing. ...Eventually would go into documentation.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is offline   Reply With Quote
Old 20-01-2014, 07:09   #5
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,296
Re: Launcher Plugin

Hello Pavel,


First, happy new year ...

Second, here join the window that laucher open with O331303.

What about ? How use it ?

I am going in preferences an see that there is two area : label and Command. What kind of command ?

Thank by advance.

B.R. Gilletarom
Attached Thumbnails
Click image for larger version

Name:	2014-01-20_Launcher_windows.jpg
Views:	150
Size:	99.7 KB
ID:	74340  
__________________
Gilletarom is offline   Reply With Quote
Old 20-01-2014, 08:20   #6
Registered User

Join Date: Feb 2010
Posts: 619
Re: Launcher Plugin

Two buttons I have useful now:

- Backup (to copy navobj.xml, opencpn.ini and opencpn.log somewhere safe)

- Mirror (to run in parallel a Portable instance for planning work)

Probably more will come ...
__________________
PjotrC is offline   Reply With Quote
Old 20-01-2014, 08:58   #7
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Re: Launcher Plugin

Gilletaron.... In Options/Setttings go to plugin and pick Preferences. Then enter the command name and the command.

Pjptr ...
Quote:
Two buttons I have useful now:
- Backup (to copy navobj.xml, opencpn.ini and opencpn.log somewhere safe)
- Mirror (to run in parallel a Portable instance for planning work)
Probably more will come ...
Okay, great ideas,.... what are the commands for each, as an example for others...to provide commands and the required format?
__________________
rgleason is offline   Reply With Quote
Old 21-01-2014, 09:06   #8
Registered User

Join Date: Feb 2010
Posts: 619
Re: Launcher Plugin

Quote:
Originally Posted by rgleason View Post
what are the commands for each, as an example
It is very simple indeed, and I am sure it can be done in many other/better ways:

Backup script (located in folder "backup", created by hand)
Code:
set _my_datetime=%date%_%time%
set _my_datetime=%_my_datetime: =_%
set _my_datetime=%_my_datetime::=%
set _my_datetime=%_my_datetime:/=_%
set _my_datetime=%_my_datetime:.=_%
mkdir C:\ProgramData\opencpn\backup\backup_%_my_datetime%
copy C:\ProgramData\opencpn\navobj.xml* C:\ProgramData\opencpn\backup\backup_%_my_datetime%
copy C:\ProgramData\opencpn\opencpn.ini C:\ProgramData\opencpn\backup\backup_%_my_datetime%\opencpn.ini
copy C:\ProgramData\opencpn\opencpn.log C:\ProgramData\opencpn\backup\backup_%_my_datetime%\opencpn.log
copy C:\ProgramData\opencpn\opencpn.log.log C:\ProgramData\opencpn\backup\backup_%_my_datetime%\opencpn.log.log
Portable execution from removable drive G: (script "mirror.bat" located next to relevant "opencpn.bat" on drive G
Code:
copy G:\Beta_OCPN\navobj.xml* G:\Beta_OCPN\backup
copy G:\Beta_OCPN\opencpn.ini G:\Beta_OCPN\backup
copy G:\Beta_OCPN\opencpn.log G:\Beta_OCPN\backup
copy C:\ProgramData\opencpn\navobj.xml* G:\Beta_OCPN
G:\Beta_OCPN\opencpn -p
The Backup script is reasonably safe, the Mirror script I would hesitate to offer as a real solution. Rather it is a tool for experimenting with endless possibilities...

Lots of potential in this plugin, I think, thanks for it!
Attached Thumbnails
Click image for larger version

Name:	launcher_cf.jpg
Views:	163
Size:	22.0 KB
ID:	74391  
__________________
PjotrC is offline   Reply With Quote
Old 21-01-2014, 10:04   #9
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,296
Re: Launcher Plugin

Hello Pavel,

Yes, I know, it's too early. Launcher is not yet mature enough ... That's okay, now I have a working base for the future. And if someone laughs, let say.

Attached is a French version of the language file

B.R. Gilletarom
__________________
Gilletarom is offline   Reply With Quote
Old 21-03-2016, 17:45   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Re: Launcher Plugin

I have found that the Edit Screen is not adjustible and thus the Launcher is not useable, because there is no way to Add, enter, or edit a Command.

I think both the first menu and the second menu should be made resizable adjustible and "remember" the size.

That's too bad because I've been using it a lot with VDRplayer.
Attached Thumbnails
Click image for larger version

Name:	Launcher-edit-screen.png
Views:	77
Size:	133.0 KB
ID:	121159  
__________________
rgleason is offline   Reply With Quote
Old 23-03-2016, 02:09   #11
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,968
Re: Launcher Plugin

Rick..
These are pics from my Win10, quit normal. But you have another screen resolution I suppose?
Håkan
Attached Thumbnails
Click image for larger version

Name:	Launcher.PNG
Views:	63
Size:	163.3 KB
ID:	121309   Click image for larger version

Name:	launcher1.PNG
Views:	63
Size:	95.3 KB
ID:	121311  

__________________
Hakan is offline   Reply With Quote
Old 23-03-2016, 04:57   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Re: Launcher Plugin

This MS SurfacPro3 has 2160 x 1440 I believe, and it is so fine the text is very very small. Under settings Display Text and onother elements I have it scaled to 200%.
Pavel thinks this might be the problem. I am going to see if I have the correct launcher. Yours seems to stretch out. Will check this morning.
__________________
rgleason is offline   Reply With Quote
Old 28-03-2016, 08:05   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,421
Re: Launcher Plugin

Here are two shots one on a
Dell Inspiron 1900x1040 scaled 125%
SurfacePro3 2160 x 1440 scaled 175% or 200%

SurfacePro3 is unable to enter command.
We need both preference launcher menus to be resizeable and to remember the settings when O is closed.

Also the Toolbar Icon popup window should be resizeable (so we can make it bigger or smaller) and have that remember size and location when closed, so when Opencpn opens it is remembered.

It is a great convenient tool. I use is with VDRplayer python.
Attached Thumbnails
Click image for larger version

Name:	Launcher-2040x1340-cropped.png
Views:	59
Size:	120.7 KB
ID:	121543   Click image for larger version

Name:	Launcher-1920x1040.png
Views:	81
Size:	130.1 KB
ID:	121544  

__________________
rgleason is offline   Reply With Quote
Old 28-03-2016, 08:52   #14
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
Re: Launcher Plugin

Rick...
Please create (separate) tickets for these issues in the tracker (Preferably in the one on github, which I much prefer over flyspray).

Thanks

Pavel
__________________
nohal is online now   Reply With Quote
Old 12-01-2017, 10:10   #15
Registered User
 
BluegillBoy's Avatar

Join Date: Mar 2010
Location: Chicago summers, gulf during winters
Boat: Endeavour TrawlerCat 36 - My Bluegill Heaven
Posts: 158
Re: Launcher Plugin

i've looked all over for instructions and examples for setting up the Launcher plugin. do instructions exist anywhere? i've tried entering Windows keyboard shortcuts, but the key strokes execute rather than being trapped, so i'm obviously not getting how this works.

any basic tutorial for the slower among us?

: )

thanks
__________________

__________________
BluegillBoy is offline   Reply With Quote
Reply

Tags
plug

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 12:30.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.