The new InputText pluging by psouza4 is really slick. It opens up a lot of new possibilities.
It has a lot of settings and can be a bit daunting, so I did a sample skin that shows off some of the capabilities and has some comments in the .ini file to explain how it works.
Make sure you have Rainmeter 1.4 r642 or better, then Just run this .rmskin to install and load the sample skin:
InputTextTest.rmskin
1.png
2.png
3.png
4.png
Re: Some help with the new InputText Plugin
Posted: February 18th, 2011, 10:30 pm
by COcis
Greetings, i was checking some info about the InputText plugin, and i cannot figure out if there is a way to put the written text on a .txt file... It's possible? (maybe with a "select all" copy to txt -> macro with autokey or similar?)
Thanks for all the hard work and Best Regards!
Re: Some help with the new InputText Plugin
Posted: February 19th, 2011, 12:01 am
by jsmorley
There really is no way natively in Rainmeter. The only ability it has to "write" is with !RainmeterWriteKeyValue, which only writes Key=Value pairs to a .ini format file.
However, I knocked out a little AutoIt app that might help.
So put this little app (WriteInput.exe) in the same folder with the skin, or in Addons if you desire and change the path appropriately. The source code for the AutoIt is included, so feel free to install AutoIt and change it as you like.
Change the path and name of the output file in: "#CURRENTPATH#OutputFile.txt"
Set it to either append to the file (1) or create a new one (0) in: "Append=0"
It must have ALL these parms, with quotes exactly as I have them, in exactly this order.
When you enter a value in the InputText field, it will be written to the designated text file.
Re: Some help with the new InputText Plugin
Posted: February 19th, 2011, 4:11 am
by COcis
Thx for response, i will try also your way! In the meantime i almost resolved with:
- Checking Test.Inc i discovered that the last written words after the "enter" confirmation where stored as first variable
- Then i automailed that file content as body of a mail with a autohotkey script for a configured outlook express/outlook
AutoHotKey Script:
;These first outlined are for a more manual approach
;Clipboard :=
;Click 486 383
;Click 486 383
;send ^a
;send ^c
;If (Clipboard != "")
;clipboard = %clipboard%
;ClipWait, 2
;FileAppend, %clipboard%, C:\yeah.txt
The only problem that remains, and blocks usability is about the text input, i would like to close the input window wich remains opened even if i close the config, the only way to make it disappear is to press enter on keyboard... There is some workaround to that behaviour of the input plugin? I attach the code so you can check. To reproduce Click on input, and then close the config from taskbar rainm icon, the input windows remains.
Going to try also you precious suggestions! Best Regards!
Re: Some help with the new InputText Plugin
Posted: February 19th, 2011, 4:22 am
by jsmorley
You can close the input box by hitting enter, hitting escape, or if you put FocusDismiss=1 on the measure, it will close if you click anywhere outside it. I actually was not aware it would stay open if you closed the skin... Guess I never tried pulling the rug out from under it.
HOWEVER, the only way it will accept and use what you type in is by hitting Enter. If you close it any other way, it is considered saying "never mind" and the text you type in is not used as the entire process is just aborted and the input box is closed.
Re: Some help with the new InputText Plugin
Posted: February 19th, 2011, 4:37 am
by COcis
Great! Thx! Probably i will add also autoit to the combo
Re: Some help with the new InputText Plugin
Posted: February 19th, 2011, 7:49 pm
by Scolex
In your example what are these 2 commands that are tied together in the [MeterSetVariable] doing other than playing the wav
Command4=!RainmeterSetVariable SecondVar "$UserInput$" Y=40 DefaultValue="Change Me Too!"
Command5=!Execute [PLAY "#CURRENTPATH#DaDum.wav"]
I don't understand what Command4 is doing, where is it setting a variable.
Re: Some help with the new InputText Plugin
Posted: February 19th, 2011, 7:51 pm
by jsmorley
Scolex wrote:In your example what are these 2 commands that are tied together in the [MeterSetVariable] doing other than playing the wav
Command4=!RainmeterSetVariable SecondVar "$UserInput$" Y=40 DefaultValue="Change Me Too!"
Command5=!Execute [PLAY "#CURRENTPATH#DaDum.wav"]
I don't understand what Command4 is doing, where is it setting a variable.
Sets the variable "SecondVar", which is initialized in Test.inc.