Commit Graph

443 Commits

Author SHA1 Message Date
spx
2c7c53553b Additional change for r909 and code cleanup. 2011-08-20 04:55:29 +00:00
spx
c0579e3b24 Relocated some context menu items to the resource file. 2011-08-19 03:12:01 +00:00
spx
bf7fdad840 Fixed that the commands that start with "play" is not executed. 2011-08-18 04:05:54 +00:00
spx
12be2ffad1 Fixed PLAY command issue in r904. 2011-08-18 02:27:52 +00:00
spx
91654989ff Code cleanup. 2011-08-17 18:51:43 +00:00
spx
665d8e5422 Magic sequence: Fixed some infinite loop issues. 2011-08-17 18:16:13 +00:00
Birunthan Mohanathas
b6feabdfc8 - Added magic sequence """ to escape quotes in bang. Used as follows:
!SetOption StringMeter Text """This is a "quoted" string"""
- Minor tweaks
2011-08-17 05:56:46 +00:00
spx
fab4bdb088 Additional change for r897. 2011-08-13 10:03:16 +00:00
spx
82941f6618 Now checks the "show desktop" state periodically as before. 2011-08-10 14:13:53 +00:00
Birunthan Mohanathas
78b7a857c4 Script: print() now works like real/original Lua print(). 2011-08-09 14:26:19 +00:00
spx
31f040ed28 Fixed that Net measure Cumulative=1 doesn't work correctly because network statistics are gathered only once per minute.
Code cleanup.
2011-08-07 09:40:08 +00:00
spx
5cb6b0f71b Code cleanup and optimization for writing the skin settings individually. 2011-08-06 10:43:14 +00:00
spx
d300d469b0 Code cleanup. 2011-08-03 23:25:52 +00:00
spx
02251ed412 Additional change for r860. Improved writing the network statistics to
Rainmeter.stats.
2011-08-03 19:44:40 +00:00
spx
b41d94e684 Reverted to r888. 2011-08-02 01:20:05 +00:00
spx
74640d0fb2 Modified CMesureNet to ignore the unwanted interfaces.
Note: Recommend that you remove [Statistics] section from Rainmeter.ini and Rainmeter.stats beforehand. It's because there is a possibility that the interface index is different between old and new.
2011-08-01 21:05:56 +00:00
Birunthan Mohanathas
904ed76960 Additional change to r887. 2011-08-01 17:20:24 +00:00
Birunthan Mohanathas
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
Birunthan Mohanathas
cb4aa0ade3 Script: Fixed that returning "" in Update() displayed 0 due to r885. 2011-08-01 09:08:11 +00:00
Birunthan Mohanathas
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
spx
b16d3d0762 RegExpSubstitute: Enabled "\0" for replacing to the string matched by the complete expression. 2011-07-30 22:11:31 +00:00
Birunthan Mohanathas
5c1334dbd6 Fixed that Rainmeter crashes when [] is in bang. E.g. !SetVariable test "blaa[]" 2011-07-29 17:46:21 +00:00
Birunthan Mohanathas
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
JamesAC
d7dedcfc75 Adding support for RegExp in Substitute strings when RegExpSubstitute=1 is set. 2011-07-29 11:49:46 +00:00
spx
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
Birunthan Mohanathas
a76e8d1765 Missed a file in previous commit. 2011-07-27 13:21:55 +00:00
Birunthan Mohanathas
822c10060a - Added !SetOption/!SetOptionGroup bangs.
- Script: Added GetOption() function
2011-07-27 10:42:35 +00:00
Birunthan Mohanathas
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
Birunthan Mohanathas
b23217d840 Script: Fixed Lua crash on refresh when Update() in the script has an error. 2011-07-25 12:52:46 +00:00
spx
15eba97cba Minor tweaks and cosmetics. 2011-07-18 00:32:09 +00:00
spx
8515877c48 Tweaks. 2011-07-15 16:54:47 +00:00
spx
5e20238120 Tweaks. 2011-07-15 11:48:50 +00:00
spx
fdad6fb036 Minor tweaks. 2011-07-14 00:26:53 +00:00
spx
6ceacb0d98 Minor tweaks. 2011-07-12 13:37:31 +00:00
Birunthan Mohanathas
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
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
spx
c2e3b6292d Additional change for r852,r856. Improved reading the network statistics from Rainmeter.stats.
Some cosmetic changes.
2011-07-08 22:50:02 +00:00
Birunthan Mohanathas
6c0ea88266 - Enabling some C++ optimization switches (/OPT:ICF, /OPT:REF, /GL)
- Excluding ExamplePlugin.dll from installer
2011-07-08 20:45:01 +00:00
spx
8867c94482 Cosmetic changes. 2011-07-07 23:25:45 +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
spx
9bc238f9f2 Additional change for r852. 2011-07-07 10:48:42 +00:00
Birunthan Mohanathas
bd7d787d93 - Renamed !RainmeterBangName to !BangName in log messages
- Removed SkinAuthor method from PluginBridge (not used anywhere, read Author from [Rainmeter] instead)
2011-07-06 20:31:20 +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
spx
4389edb8c1 Optimized ConfigParser. Reduced processing time on startup and on refreshing. 2011-07-06 09:00:44 +00:00
Birunthan Mohanathas
c7f9293e9c Script:
- GetMeter dynamically detects STRING meters now (no need to use tolua.cast any longer)
- Removed unneeded (and undocumented) functions to exposed to Lua
- Refactored tolua++ generated code
2011-07-05 13:41:05 +00:00
spx
9a9edbda2e Additional fix for r843. 2011-07-04 18:05:07 +00:00
spx
57bf54f9de Prevented from using "!RainmeterExecute". 2011-07-03 15:21:48 +00:00
Birunthan Mohanathas
ef65225dde Made "Rainmeter" optional in a bang. For example, !RainmeterShowMeter and !ShowMeter are now treated equally. 2011-07-03 08:58:53 +00:00
spx
341e9d2bd0 Removed trailing zeros when DynamicVariables=1 even if a value is such as "1.01000".
E.g.
 1.00000 -> 1
 1.01000 -> 1.01
 1.01001 -> 1.01001
2011-07-02 10:16:38 +00:00