RMIR v3.0 Major new release!

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

The Robman
Site Owner
Posts: 21887
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Thanks Graham, I can confirm that the NEC options works as described.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Graham, I am really happy that I managed to "sell" JCommander to you. :wink:

I have implemented a "-help" command, see patch below. One of the advantages of JCommander (or similar libraries) is that you get a usage message for free -- guaranteed to stay up-to-date. (It also frees you from the duty of documenting the options 8-) )

Assuming that "rmir" is a suitable wrapper to the jar (or similar), you can now do

Code: Select all

$ rmir -help
Usage: rmir [options] [file]
  Options:
    -admin
      Open in administrator mode
      Default: false
    -errors
      Set errors file
    -help, -?
      Display help message
      Default: false
    -home
      Set home directory
    -ir
      Open as RMIR
      Default: false
    -pb
      Open as RMPB
      Default: false
    -properties
      Set properties file
    -readOnly
      Test if installation folder is read-only
      Default: false
    -rm
      Open as RMDU
      Default: false
    -scaling
      Set scaling of the GUI. Accepted values and their semantics depend on 
      the JVM.
    -version
      Display version information
      Default: false


Here follows the patch (against version 2057). I am happy check in if you so desire.

Code: Select all

Index: src/main/java/com/hifiremote/jp1/RemoteMaster.java
===================================================================
--- src/main/java/com/hifiremote/jp1/RemoteMaster.java  (revision 2057)
+++ src/main/java/com/hifiremote/jp1/RemoteMaster.java  (working copy)
@@ -30,6 +30,9 @@
 
   public final static class CommandLineArgs 
   {
+    @Parameter(names = { "-help", "-?" }, description = "Display help message")
+    private boolean helpRequested = false;
+
     @Parameter(names = { "-version" }, description = "Display version information")
     private boolean versionRequested = false;
 
@@ -61,7 +64,7 @@
         description = "Set scaling of the GUI. Accepted values and their semantics depend on the JVM." )
     private String scaling = null;
 
-    @Parameter( description = "Name of file to open" )
+    @Parameter( description = "[file]", required = false )
     public String fileName = null;
 
   }
@@ -189,6 +192,7 @@
 
     argumentParser = new JCommander( commandLineArgs );
     argumentParser.setAllowAbbreviatedOptions( true );
+    argumentParser.setProgramName("rmir");
 
     try 
     {
@@ -200,6 +204,12 @@
       return;
     }
 
+    if ( commandLineArgs.helpRequested )
+    {
+      argumentParser.usage();
+      return;
+    }
+
     if ( commandLineArgs.versionRequested )
     {
       System.out.println( getFullVersion() );

mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

Thanks, Bengt. I wanted to create a help command and knew I had seen something about a usage message, but couldn't quite work out how to do it. So yes, please check it in. Version 2057 is up to date, so it won't cause any problems.
Graham
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Done. I was wondering as to why there was no help-command, but you did address that in your last post.
tajvdz
Posts: 91
Joined: Sun Feb 09, 2020 5:24 pm

Post by tajvdz »

Hello,

I saw that there is this new version. I used an older version a few years ago but I need it again soon.

The old shortcuts didn't work anymore because it couldn't find the file. After I used the old installation file again it worked again. But I saw that there is a much more newer version.

I saw that I have Java 8.0 installed. Is it best to update it to the most recent version first?

What I did with the installation of this new version was unzip the downloaded file to a place on my pc where I want to have it. After that I started the setup. I got a messsage about scaling. I set it to the example 1.5. Is this the size of the window or what? And what is the best value? The shortcuts worked and I got a new look when I started RMIR. I noticed that I didn't get a shortcut named Remotemaster anymore. Is that one gone and integrated in the RMIR now? The shortcut is still in the start menu from the old version but I think I can delete it? The other shortcuts were replaced by the new one.
I think I can also delete the folder of the old version or not and put the data in the new folder.
Is it still possible to use the old data or is it better to start all over again and download it from my Remote first? Will that work right away? I can remember that I had to fix something in the registry laat time.

By the way I didn't look if it is possible to remove the programm in the windows settings. Otherwise it is better to do that? And after that update java first if necessary and after that install the new version and put the old data back on.it's place?

I hope I can get some advice to get everything up and running again
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

tajvdz wrote: I saw that I have Java 8.0 installed. Is it best to update it to the most recent version first?
RMIR supports Java 8 and later. The only difference is how scaling is handled, AFAIK. No need to update, strictly speaking.
tajvdz wrote:I got a messsage about scaling. I set it to the example 1.5. Is this the size of the window or what? And what is the best value?
Just ignore it, at least for now. Use forum seach if you want more info.

tajvdz wrote: Is it still possible to use the old data or is it better to start all over again and download it from my Remote first?
You use the old rmir/rmdu files. Otherwise you will loose information, for example the function names.
tajvdz wrote: By the way I didn't look if it is possible to remove the programm in the windows settings.
There is no uninstall -- just delete the files.
tajvdz
Posts: 91
Joined: Sun Feb 09, 2020 5:24 pm

Post by tajvdz »

Barf wrote:
tajvdz wrote: I saw that I have Java 8.0 installed. Is it best to update it to the most recent version first?
RMIR supports Java 8 and later. The only difference is how scaling is handled, AFAIK. No need to update, strictly speaking.
tajvdz wrote:I got a messsage about scaling. I set it to the example 1.5. Is this the size of the window or what? And what is the best value?
Just ignore it, at least for now. Use forum seach if you want more info.

tajvdz wrote: Is it still possible to use the old data or is it better to start all over again and download it from my Remote first?
You use the old rmir/rmdu files. Otherwise you will loose information, for example the function names.
tajvdz wrote: By the way I didn't look if it is possible to remove the programm in the windows settings.
There is no uninstall -- just delete the files.
Thank you for answering almost all my questions.
There is only one thing unanswered and that is this:
I noticed that I didn't get a shortcut named Remotemaster anymore. Is that one gone and integrated in the RMIR now? The shortcut is still in the start menu from the old version but I think I can delete it? The other shortcuts were replaced by the new one.

About Java. Do I have to use the Rmir setup again if I decide to update Java?
The Robman
Site Owner
Posts: 21887
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Once you've unzipped RM there is a file in the folder called setup.vbs, run that to create the shortcuts, then move them to your desktop if you prefer.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
tajvdz
Posts: 91
Joined: Sun Feb 09, 2020 5:24 pm

Post by tajvdz »

The Robman wrote:Once you've unzipped RM there is a file in the folder called setup.vbs, run that to create the shortcuts, then move them to your desktop if you prefer.
Yes I know that. But why isn't there a shortcut with the name Remotemaster anymore?
mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

tajvdz wrote:Yes I know that. But why isn't there a shortcut with the name Remotemaster anymore?
It is the one now called RMDU (RM Device Upgrade). I renamed it as I found using the name RemoteMaster (or the abbreviation RM) for both the overall program and one of the three apps in it to be confusing. Historically RMDU was the one and only Java app, with the name RemoteMaster. RMIR was added next, RMPB is a recent addition. After running Setup.vbs you should now have three shortcuts called RMIR, RMDU and RMPB. RMIR is now considered to be the main app, RMDU is a Device Upgrade editor and RMPB, which may be new since you were last using RMIR, is a Protocol Editor. I hope that answers your question.
Graham
The Robman
Site Owner
Posts: 21887
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

tajvdz wrote:
The Robman wrote:Once you've unzipped RM there is a file in the folder called setup.vbs, run that to create the shortcuts, then move them to your desktop if you prefer.
Yes I know that. But why isn't there a shortcut with the name Remotemaster anymore?
You're free to rename it, which is what I do. The upgrade program was called RM and the files were called RMDU, that I can't call the program itself RMDU, so I rename it.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

tajvdz wrote:About Java. Do I have to use the Rmir setup again if I decide to update Java?
No (normally). That will save you one double-click :wink: . Note that Help -> About in RMIR will, among other things, list the actually invoked JVM under "System Properties".
mathdon
Expert
Posts: 4725
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

Edit: Updated to refer to v3.1.2.

I have now released RMIR v3.1.2. It fixes a major bug in v3.1.1 and is a significant update of RMIR v3.0.15 which otherwise is the last official release and which involved restructuring of the program code. This release has a command line help facility. If entered from the installation folder, the command line

Code: Select all

java -jar RemoteMaster.jar -help
will list the command options available, including those for opening each of the three apps RMIR, RMDU and RMPB and for setting the text scaling factor. These provide an alternative to the shortcuts created by the setup programs Setup.vbs for Windows and setup.sh for Linux, with the advantage that they work for all supported OS.
Graham
n8nagel
Posts: 207
Joined: Sun Jun 03, 2018 3:23 pm

Post by n8nagel »

Barf wrote:
1) is there a way to change that scale factor within the program?
No.
2) is there any harm running setup.vbs again after it's been run before?
I think this will work, if not please report so that we can fix it. You can also right click on the icon and edit the command line, squeezing in -Dsun.java2d.uiScale=2 (or whatever) as argument to the JVM, not the program.

The completely correct and complete solution to this problem is unknown to me. cf this issue on IrScrutinizer.

I recently discovered that it is possible to give the Dsun.java2d.uiScale spell in the program, before constructing the GUI, so that the scaling parameter can be given as argument to the program, not the JVM. This is implemented in IrScrutinizer since late December last year, see IrScrutinizer.java, line 105. This is slightly more flexible for the user. I would recommend doing this in RMIR too.
Update to above issue:

Background: When I got a new personal laptop which I have hooked up to two 4k screens (it's actually an older version of my work laptop, so I can share my entire desktop and docking station) I was having problems with RMIR annd every other Java based program displaying so small as to be illegible and not respecting scaling. So I gave up on installing MakeMkV and have been using my work laptop for Remote Master stuff.

Tonight I got in the mail a replacement remote for my minidisc player so you know what I was preparing to do. I completely spaced on the fact that my personal laptop was hooked up to my desk, dug out an Xsight, and double clicked on RMIR... it was huge (scale factor in shortcut was set to 2.0)! reran setup.vbs with a 1.0 scale factor and now it looks just like my work laptop. Whatever was making this not work has apparently been fixed with an update at some point.

I haven't even starting learning yet however between finding a working Xsight that isn't currently in use somewhere, my LAST Mini USB cable, and transferring files from my work laptop :/ I'll get there.

Because I've recently purchased a Roku Ultra 2024 as well, I am going to set back up an Xsight for my bedroom now and hopefully it can be used for everything. I am going to start with the Roku 2023 upgrade and see if that works. But I digress, that's not relevant to this post, I just wanted to let everyone know that was suffering with not being able to run RMIR on a 4k monitor on Win10, that issue seems to have resolved itself.

I did have an issue with not being able to assign buttons in my upgrades, but I gave up because it was late. I see there's a new version available so I should probably just install that before going any farther.
Post Reply