Posted: Sat Sep 07, 2024 10:02 am
Thanks Graham, I can confirm that the NEC options works as described.
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() );
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.
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.
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?
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.
No (normally). That will save you one double-clicktajvdz wrote:About Java. Do I have to use the Rmir setup again if I decide to update Java?
Code: Select all
java -jar RemoteMaster.jar -helpUpdate 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.