6560518037
Script: Add Unicode support
...
If the script file is UTF-8 encoded, all Lua strings are converted to/from as if they were UTF-8. Otherwise things continue to work as they have until now. Additionally, UTF-8 scripts cannot use deprecated features at all (PROPERTIES, GetStringValue).
2013-08-06 20:43:57 +03:00
eeef84dfa0
Added skin/section (if available) to logging.
2013-06-29 10:59:18 -06:00
13ebeccfd7
Script: Fix that some meter related operations (e.g. !HideMeterGroup) did not work in Initialize()
2013-06-23 14:03:44 +03:00
1934c5db72
Change NULL to nullptr
2013-05-31 17:28:39 +03:00
da9384cfad
Remove "C" prefix in class names
2013-05-31 17:18:52 +03:00
a3d8f73f6c
Tweak f4429ad
2013-05-30 17:19:42 +03:00
f4429ad8cc
Refactor logging logic into new CLogger class
2013-05-29 22:05:41 +03:00
aa3c7eb8ce
Tweaks to reduce OnChangeAction overhead
2013-04-10 19:00:22 +03:00
fdcd5a9757
Tweaks
2013-01-27 12:49:22 +02:00
7348f5eb6e
Script: Fixed with DynamicVariables
2012-10-07 22:42:20 +03:00
4c285cb8e4
Cosmetics
2012-10-07 00:16:09 -06:00
1b235dbae8
Additional changes to a4844ca
2012-10-06 22:03:29 +03:00
a4844ca924
Script: Fixed ScriptFile with Unicode path and tweaks
2012-10-06 21:43:07 +03:00
850b415a3f
Script: Reverted Unicode change ( 99c67f7
)
2012-07-21 19:46:00 +03:00
a0a0c61e79
Script: Fixed that Initialize() was not called when the script is changed dynamically
2012-07-18 17:41:28 +03:00
99c67f7dac
Script: Added Unicode support
...
The script file can now be UTF8 encoded. There are some limitations with UTF8 data and the Lua string library, check: http://lua-users.org/lists/lua-l/2012-02/msg00241.html
2012-07-13 14:36:59 +03:00
922dd098c9
Cosmetics: Changed "config" to more consistent and descriptive terms
2012-06-01 16:06:36 +03:00
e3d92d354c
Cosmetics
2012-05-30 21:53:44 +03:00
9623766a61
Fixed: IfActions not fired when measure is disabled
2012-05-30 09:46:11 +03:00
63c42fe3a5
Script: Replaced ReadString/ReadNumber with GetOption/GetNumberOption.
2012-03-11 09:59:48 +00:00
7767300379
- Refactored Lua C++ bindings
...
- Removed tolua++
2012-03-09 10:28:25 +00:00
4a7ef7508f
Minor tweaks and cosmetics.
2012-03-02 10:04:08 +00:00
bb44c29f6c
Cosmetic changes to function comment blocks.
2012-02-20 19:10:40 +00:00
b21658b1cd
- Partially refactored bang handling code
...
- Renamed CMeasure::ExecuteBang to CMeasure::Command
- Minor cosmetic changes and tweaks
2012-02-01 15:55:29 +00:00
ebec08914a
Adjusted copyright notice.
...
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
f28ecf6e83
Minor tweaks.
2011-11-28 14:13:20 +00:00
34005f14a4
Switched from std::wstring.compare() to wcscmp().
2011-11-27 08:30:39 +00:00
b02371276f
Minor tweaks.
2011-11-16 16:47:20 +00:00
a209bf15d0
- Fixed Button issue: http://rainmeter.net/forum/viewtopic.php?t=10274&p=59935
...
- Removed unneeded NULL checks.
- Other code tweaks and cleanups.
2011-11-08 10:32:57 +00:00
f14d751604
- Added #CURRENTFILE# variable
...
- Changes to log strings
2011-09-09 16:31:55 +00:00
9d370f63e8
Reverted Script Unicode fix in r928 as it causes some problems with ANSI encoded files.
2011-09-03 18:19:43 +00:00
754c33f82f
- Script: Fixed that Unicode characters were not correctly displayed
...
- About Log: 20 last log items are now displayed on launch
- LOG_DEBUG messages are ignored from plugins only when not in Debug mode
2011-09-03 16:45:29 +00:00
5eef7a21c7
- Script: Return types are now checked explicitly. As a result, 'return 5' and 'return "5"' are not equal any longer. Only the former will respect NumOfDecimals, Scale, etc. now.
...
- NowPlayingPlugin: Accidentally removed "Previous" bang in r880, fixed.
2011-08-01 17:08:51 +00:00
cb4aa0ade3
Script: Fixed that returning "" in Update() displayed 0 due to r885.
2011-08-01 09:08:11 +00:00
6dfb307636
- Script: Fixed that AutoScale/Scale/Percentual/NumOfDecimals were not applied for MeasureName=ScriptMeasure
...
- NowPlayingPlugin: OpenPlayer bang with foobar2000 now opens foobar2000 maximized regardless of previous state
2011-07-31 08:58:43 +00:00
e74d6f4619
- Added ability to escape real variables and measures as follows: #*RealVar*# [*RealMeasure*]
...
- NowPlayingPlugin: Addition change to r880 OpenPlayer fix
- Removing tolua++ generation package files
2011-07-29 17:18:21 +00:00
fb004083d2
- SetOption: Fixed that new image isn't loaded if DynamicVariables=0.
...
- SetOption: Fixed that Rainmeter crashes if !SetOption is executed to Measure=Plugin.
- Code cleanup and cosmetic changes.
2011-07-27 14:18:02 +00:00
822c10060a
- Added !SetOption/!SetOptionGroup bangs.
...
- Script: Added GetOption() function
2011-07-27 10:42:35 +00:00
23f4a31bf0
Script: Fixed that the value of the Script measure is not reset when an error occurs.
...
In the following case, for example, the value of the measure used to remain 10 even after an error. Now it will default to 0 on error.
function Initialize()
i = 0
end
function Update()
if i < 5 then
i = i + 1
return 10
else
i() -- error here, execution stops
return 2
end
end
2011-07-25 17:59:43 +00:00
349ad952ad
Script: ScriptFile may now be a relative path (e.g. ScriptFile=File.lua is now valid and equal to ScriptFile=#CURRENTPATH#File.lua)
2011-07-09 16:42:51 +00:00
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
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
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
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
a92bdd9b18
Cosmetic changes to code.
2011-03-29 19:21:57 +00:00
fe9fd9f476
Code cleanup.
2011-02-15 16:26:54 +00:00
e99a1cc808
Lua: Removed TableName.
2011-02-10 08:48:04 +00:00
bf6d081600
Lua: Fixed an issue that unneeded stack elements aren't popped.
2011-02-09 06:10:25 +00:00
e4944fa99f
MeasureScript: Fixed memory leak when DynamicVariables=1.
2011-01-30 15:39:14 +00:00
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