Commit Graph

876 Commits

Author SHA1 Message Date
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
Birunthan Mohanathas
c925f77c11 NowPlayingPlugin:
- foobar2000 now supports the SetPosition bang (foo_rainmeter.dll 1.0.1 required)
- Fixed that TITLE/ARTIST/ALBUM was a space when empty (i.e. " " instead of "") in foobar2000
2011-07-24 16:40:20 +00:00
Birunthan Mohanathas
8954799483 NowPlayingPlugin: Fixed that track title didn't update when playing a radio stream with Winamp. 2011-07-24 15:31:33 +00:00
spx
15eba97cba Minor tweaks and cosmetics. 2011-07-18 00:32:09 +00:00
Birunthan Mohanathas
a639eb7cc1 NowPlayingPlugin: iTunes quits are handled a little more gracefully now (i.e. iTunes should now quit immediately without lag) 2011-07-17 10:36:04 +00:00
spx
8515877c48 Tweaks. 2011-07-15 16:54:47 +00:00
Birunthan Mohanathas
20e2a53324 NowPlayingPlugin: Minor changes. 2011-07-15 15:18:02 +00:00
spx
5e20238120 Tweaks. 2011-07-15 11:48:50 +00:00
Birunthan Mohanathas
0be7eb3f79 Minor tweaks. 2011-07-14 10:12:02 +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
spx
c776cff348 FolderInfo: Fixed an issue that InfoType=FolderSize doesn't return a value larger than 4GB. 2011-07-11 05:35:15 +00:00
Birunthan Mohanathas
a74ee23da3 NowPlayingPlugin: Fixed PlayPause issue with MusicBee. 2011-07-10 09:30:51 +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
6e7d0fd1b0 Changing to Rainmeter-less bangs in illustro. 2011-07-03 13:58:02 +00:00
Birunthan Mohanathas
2ca9967b18 Fixed sloppy mistake in r846. 2011-07-03 13:21:01 +00:00
Birunthan Mohanathas
2bdca3d6da Additional change for r844. 2011-07-03 13:18:10 +00:00
Birunthan Mohanathas
50fd8b7caf Rainstaller: Additional fix to r841. 2011-07-03 10:07:10 +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
Birunthan Mohanathas
8ae8a68547 NowPlayingPlugin:
- Minor improvements to CAD interface
- Fixed: TITLE was empty when listening to radio stations with Winamp
- Fixed: Metadata may not be updated until full refresh after closing one of multiple NowPlaying based skins
2011-07-01 20:34:12 +00:00
Birunthan Mohanathas
339e798ba3 Rainstaller: Fixed that SkinPath is not correctly read with portable installs. 2011-06-30 13:09:02 +00:00
spx
1fbcf6ef74 Added support code for r839 when using CodePage=1200 with an incorrect string. 2011-06-30 09:18:00 +00:00
spx
4bfbb120df WebParser: Added support code for CodePage=1200(UTF-16LE). 2011-06-30 09:04:49 +00:00
Birunthan Mohanathas
c451aba194 NowPlayingPlugin:
- Added PlayerType=STATUS (returns 1 when player is open, 0 when closed)
- Winamp interface: Fixed that file paths over about 100 chars did not display all metadata
- CAD interface: Added workaround for issue caused by Rainmeter running as elevated and player running as normal process (Windows Vista+)
2011-06-25 12:44:33 +00:00
Birunthan Mohanathas
9acbe62493 Installer: Now downloads and installs VC++ redist 2010 SP1 if necessary. 2011-06-25 10:15:53 +00:00
spx
8522a15bf9 Improved "show desktop" detection.
Some cosmetic changes.
2011-06-23 13:29:51 +00:00
spx
b9cdc53430 Added a workaround for the system that the window size is changed incorrectly when the window is dragged over the upper side of the virtual screen. 2011-06-22 06:39:07 +00:00
Birunthan Mohanathas
d633f4b586 NowPlayingPlugin:
- Added preliminary support to display lyrics (PlayerType=LYRICS)
- Applied r825 fix on TrackChangeAction= (sends bang to correct window without the need of #CURRENTCONFIG#)
- Some refactoring
2011-06-19 14:58:48 +00:00
Birunthan Mohanathas
6aa004eb22 NowPlayingPlugin:
- Fixed that PlayerName=, TrackChangeAction=, and DisableLeadingZero= were global (i.e. only usable from the first loaded skin)
- Code refactoring and cleanup
2011-06-17 19:07:06 +00:00
Birunthan Mohanathas
67cc4c7c6c NowPlayingPlugin:
- Added interface to receive MSN/Windows Live Messenger 'Listening to' notifications sent by various players (e.g Media Player Classic)
- Changes to CAD interface to allow proper supports for players other than MusicBee (e.g. VLC)
- Fixed crash when using the WinAmp interface in multiple skins
2011-06-12 10:05:37 +00:00
spx
7163823971 Context Menu:
- Added a separator to between ini-files and folders in Configs menu.
- Other minor tweaks.
2011-06-09 18:59:16 +00:00
Birunthan Mohanathas
1fa83bc296 Installer: Fixed alignment issue with large font sizes. 2011-06-09 16:11:14 +00:00
Birunthan Mohanathas
62d441bd3d NowPlayingPlugin: Added SetPosition and Pause bangs plus some tweaks. 2011-06-09 09:47:55 +00:00
spx
a2396a7d0f Tweaks. 2011-06-08 23:56:27 +00:00
spx
d054ce8e5c Minor tweaks. 2011-06-06 12:27:19 +00:00