RMIR v3.0 Major new release!
Moderator: Moderators
-
The Robman
- Site Owner
- Posts: 21887
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
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!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Graham, I am really happy that I managed to "sell" JCommander to you.
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
)
Assuming that "rmir" is a suitable wrapper to the jar (or similar), you can now do
Here follows the patch (against version 2057). I am happy check in if you so desire.
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
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
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() );
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
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
RMIR supports Java 8 and later. The only difference is how scaling is handled, AFAIK. No need to update, strictly speaking.tajvdz wrote: I saw that I have Java 8.0 installed. Is it best to update it to the most recent version first?
Just ignore it, at least for now. Use forum seach if you want more info.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?
You use the old rmir/rmdu files. Otherwise you will loose information, for example the function names.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?
There is no uninstall -- just delete the files.tajvdz wrote: By the way I didn't look if it is possible to remove the programm in the windows settings.
Thank you for answering almost all my questions.Barf wrote:RMIR supports Java 8 and later. The only difference is how scaling is handled, AFAIK. No need to update, strictly speaking.tajvdz wrote: I saw that I have Java 8.0 installed. Is it best to update it to the most recent version first?
Just ignore it, at least for now. Use forum seach if you want more info.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?
You use the old rmir/rmdu files. Otherwise you will loose information, for example the function names.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?
There is no uninstall -- just delete the files.tajvdz wrote: By the way I didn't look if it is possible to remove the programm in the windows settings.
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:
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!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
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.tajvdz wrote:Yes I know that. But why isn't there a shortcut with the name Remotemaster anymore?
Graham
-
The Robman
- Site Owner
- Posts: 21887
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
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.tajvdz wrote:Yes I know that. But why isn't there a shortcut with the name Remotemaster anymore?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.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
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 linewill 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.
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 -helpGraham
Update to above issue:Barf wrote:No.1) is there a way to change that scale factor within the program?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.2) is there any harm running setup.vbs again after it's been run before?
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.
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.