Commit Graph

16 Commits

Author SHA1 Message Date
Birunthan Mohanathas
f0fbc0f145 - Added !CommandMeasure bang. Instead of '!PluginBang "MeasureName Arguments' use '!CommandMeasure "MeasureName" "Arguments"'.
- Script: The !CommandMeasure argument must now be Lua code. For example:
!CommandMeasure "MeasureLuaScript" "someVar = 'hello'"
!CommandMeasure "MeasureLuaScript" "SomeFunc()"
2011-07-09 09:23:28 +00:00
Birunthan Mohanathas
b99b275f44 Script:
- Added support for calling Lua functions with !PluginBang
- Removed old (undocumented) implementation for handling mouse actions
- Lua errors now contain the script file name only (instead of full path)
2011-07-07 16:18:39 +00:00
Birunthan Mohanathas
95fe545cc5 Script:
- Added GetVariable function [usage: GetVariable("VariableName")]
- Removed several unneeded exposed functions
- r853 broke Substitute on the Script measure, fixed
2011-07-06 20:12:05 +00:00
Birunthan Mohanathas
fa67b07a62 Lua:
- Removed GetValue() (which has never worked) and deprecated GetStringValue(). The measure value should be returned on Update() now.
- Some related tweaks and cosmetic changes
2011-07-06 10:21:18 +00:00
Birunthan Mohanathas
a92bdd9b18 Cosmetic changes to code. 2011-03-29 19:21:57 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
e99a1cc808 Lua: Removed TableName. 2011-02-10 08:48:04 +00:00
spx
bf6d081600 Lua: Fixed an issue that unneeded stack elements aren't popped. 2011-02-09 06:10:25 +00:00
spx
e4944fa99f MeasureScript: Fixed memory leak when DynamicVariables=1. 2011-01-30 15:39:14 +00:00
Birunthan Mohanathas
4b30714520 - Fixed: Rainmeter crashes if the Lua GetStringValue() function returns an invalid value
- Fixed: Rainmeter crashes on initialization if Lua is invalid (e.g. syntax error)
- Fixed: Rainmeter crashes on mouse action if Lua file is not initialized
- Fixed: Measure=SCRIPT tries to process mouse actions even if corresponding function does not exist in the Lua file causing log to fill with 'nil value' warnings
- Mainly cosmetic changes to logging of erros in Measure=SCRIPT
2011-01-30 10:39:10 +00:00
spx
7ea3a762ac - Fixed that r716 (precompiled header) doesn't work on x64.
- Now uses constructor initialization list in each class.
- TintedImage: Code cleanup.
2011-01-29 00:11:01 +00:00
spx
235841e01f Added AutoScale=2 and "k" postfix to Meter=STRING.
----
For instance:
A=2800000000, B=0

- AutoScale=0
AutoScale is disabled. Uses Scale value. (Same as before.)
A="2800000000", B="0"

- AutoScale=1
Scales value by 1024. (Same as before.)
A="2.6 G", B="0.0 "

- AutoScale=2
Scales value by 1000.
A="2.8 G", B="0.0 "

- AutoScale=1k
Scales value by 1024, and uses kilo as the lowest unit.
A="2.6 G", B="0.0 k"

- AutoScale=2k
Scales value by 1000, and uses kilo as the lowest unit.
A="2.8 G", B="0.0 k"
----
2011-01-19 15:31:45 +00:00
spx
8c169e4d21 MeasureScript: Additional fix for r663. 2010-12-13 11:47:03 +00:00
spx
cb839b7ce8 MeasureScript: Fixed an issue that Rainmeter crashes if either ScriptFile or TableName is not defined. 2010-12-13 10:54:41 +00:00
spx
c469fce770 Changed: MeasureScript now uses pre-compile header. 2010-12-12 19:27:56 +00:00
mapeki
c516bf8310 Added Lua Stuff
There are a few changes to the core Rainmeter code.
2010-12-12 17:08:36 +00:00