Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 19-01-2014, 15:42   #1
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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
http://www.cruisersforum.com/forums/...ml#post1415022
http://www.cruisersforum.com/forums/...st-112272.html
http://www.cruisersforum.com/forums/...een-38087.html
http://www.cruisersforum.com/forums/...eys-61303.html

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, 16:50   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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"  http://www.cruisersforum.com/forums/...st-100306.html
Plugins Sean   "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"   http://www.cruisersforum.com/forums/...ns-119053.html
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, 02:12   #3
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 491
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 offline   Reply With Quote
Old 20-01-2014, 05:05   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 06:09   #5
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
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:	242
Size:	99.7 KB
ID:	74340  
Gilletarom is offline   Reply With Quote
Old 20-01-2014, 07: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, 07:58   #7
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 08: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:	270
Size:	22.0 KB
ID:	74391  
PjotrC is offline   Reply With Quote
Old 21-01-2014, 09:04   #9
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
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, 16:45   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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:	204
Size:	133.0 KB
ID:	121159  
rgleason is offline   Reply With Quote
Old 23-03-2016, 01:09   #11
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
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:	178
Size:	163.3 KB
ID:	121309   Click image for larger version

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

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

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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, 07:05   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
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:	167
Size:	120.7 KB
ID:	121543   Click image for larger version

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

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

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
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 offline   Reply With Quote
Old 12-01-2017, 09: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: 180
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


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


Advertise Here


All times are GMT -7. The time now is 10:09.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.