Hi, I am working on a Settings skin for my text launchers. I have it mostly done but I want the default value of UserInput to show what is currently in the variable for the apps location so it can be edited. They look like this:
Progs4App=["%ProgramFiles(x86)%\Notepad++\notepad++.exe"]
I also have a String meter to show the variable before user clicks to open UserInput and that works fine. (see image below)
All that shows in the UserInput box is a bracket.
I've tried magic quotes, single quotes and double quotes and nothing works!
I think it's the brackets causing the problem but without them, even though it
shows in the default value of UserInput the apps won't run!
It is currently April 19th, 2024, 2:49 am
UserInput Default value not working
-
- Posts: 110
- Joined: February 23rd, 2018, 3:12 am
- Location: United States
UserInput Default value not working
You do not have the required permissions to view the files attached to this post.
Never underestimate the power of stupid!
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Rainmeter Sage
- Posts: 5391
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: UserInput Default value not working
Seeing the code will help...
If the height of your input measure is not large enough, your default value will be there, but not show in the input box.
Try increasing the height of the input measure or reducing the font size used in that measure until the default value is visible.
If the height of your input measure is not large enough, your default value will be there, but not show in the input box.
Try increasing the height of the input measure or reducing the font size used in that measure until the default value is visible.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 110
- Joined: February 23rd, 2018, 3:12 am
- Location: United States
Re: UserInput Default value not working
Hi Balala and eclectic-tech,
The Height is not the problem nor the width, as the first app, Progs1App, works fine (Notepad has no quotes or brackets) and all the
text labels come up fine in UserInput box. If you look at the image, you can see that in Progs2App, the first bracket shows with UserInput but nothing more. (I did increase both height and width to be sure)
The same variables show fine in the Text meter, which is what is showing before clicking with mouse, just not in UserInput.
I have attached the entire thing as an .rmskin, as there are Include files for variables and stuff.
I am using the latest Rainmeter, Rainmeter 4.3.0.3298 (64-bit) (see version info in spoiler)
Thank you for your time and effort.
The Height is not the problem nor the width, as the first app, Progs1App, works fine (Notepad has no quotes or brackets) and all the
text labels come up fine in UserInput box. If you look at the image, you can see that in Progs2App, the first bracket shows with UserInput but nothing more. (I did increase both height and width to be sure)
The same variables show fine in the Text meter, which is what is showing before clicking with mouse, just not in UserInput.
I have attached the entire thing as an .rmskin, as there are Include files for variables and stuff.
I am using the latest Rainmeter, Rainmeter 4.3.0.3298 (64-bit) (see version info in spoiler)
You do not have the required permissions to view the files attached to this post.
Never underestimate the power of stupid!
-
- Rainmeter Sage
- Posts: 5391
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: UserInput Default value not working
Remove all of the brackets and quotation marks from the variable values in the included file 'ProgrammingHVars.inc'.
You do not need to have anything but the complete path to the program executable and the desired name.
Example:
With the brackets/quotes removed, I can see all of the default values for apps and names in the settings skin before and after clicking to modify.
You need to change the LeftMouseUpAction in [ProgsStyle] section in the 'ProgrammingH.inc' file to properly launch the current clicked app:
If you have the correct paths to the executables, your apps should launch; tested with Notepad, Notepad++.exe, and SciTE.exe variables and all of them displayed and launched when clicked.
After entering a new app path in the 'ProgSettings.ini' skin, I am getting a Win10 query to select a program to open the inputted app... this may be due to having the same mouse actions on both the string and background for the input.
Not sure how to avoid this, I just ignore the Win10 request.
You do not need to have anything but the complete path to the program executable and the desired name.
Example:
Code: Select all
Progs3App=E:\SteamLibrary\steamapps\common\GameMaker Studio 2 Desktop\GameMakerStudio.exe
Progs3Name=Gamemaker Studio 2
You need to change the LeftMouseUpAction in [ProgsStyle] section in the 'ProgrammingH.inc' file to properly launch the current clicked app:
Code: Select all
LeftMouseUpAction=["[#[#CURRENTSECTION]App]"][!HideMeterGroup Progs][!ZPos "0"][!UpdateMeter *][!Redraw]
After entering a new app path in the 'ProgSettings.ini' skin, I am getting a Win10 query to select a program to open the inputted app... this may be due to having the same mouse actions on both the string and background for the input.
Not sure how to avoid this, I just ignore the Win10 request.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 110
- Joined: February 23rd, 2018, 3:12 am
- Location: United States
Re: UserInput Default value not working
Thank you SO much, eclectic-tech! It works!
I have been tearing my hair out to get this to work, and as usual it was something simple.
Now I just have to fix the other seven menu include files!
I am getting a Win10 query to select a program to open the inputted app...
Yeah, I'll have to work on that. I'll remove the mouse actions from all but one thing and see if that works.
Thank you again.
And thank you Balala for your consideration!
I have been tearing my hair out to get this to work, and as usual it was something simple.
Now I just have to fix the other seven menu include files!
I am getting a Win10 query to select a program to open the inputted app...
Yeah, I'll have to work on that. I'll remove the mouse actions from all but one thing and see if that works.
Thank you again.
And thank you Balala for your consideration!
Never underestimate the power of stupid!
-
- Rainmeter Sage
- Posts: 5391
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: UserInput Default value not working
Happy to help!
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::