Commit Graph

459 Commits

Author SHA1 Message Date
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
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
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
spx
a2396a7d0f Tweaks. 2011-06-08 23:56:27 +00:00
spx
d054ce8e5c Minor tweaks. 2011-06-06 12:27:19 +00:00
spx
3a7d937021 - Uptime now shows over 49.7 days correctly in Vista or later.
- Some related tweaks.
2011-06-05 12:32:18 +00:00
spx
0841328ea0 Tweaks. 2011-06-02 01:54:05 +00:00
spx
9a19d8808e Tweaks. 2011-05-27 18:39:57 +00:00
spx
68bc25ee82 Tweaks. (Uses CachedBitmap if image scaling isn't needed.) 2011-05-25 21:48:59 +00:00
Birunthan Mohanathas
2ba2e95736 NowPlayingPlugin: Added support for MusicBee, fixed Debug build, and updated Winamp SDK. 2011-05-24 18:20:35 +00:00
spx
31e3091e34 Reverted r815 and stopped changing the working directory for the plugins. 2011-05-23 20:21:19 +00:00
spx
3356448dbe Minor optimizations & fixes. 2011-05-22 16:02:43 +00:00
Birunthan Mohanathas
e13f3a3c2c Got rid of pcre linker warnings. 2011-05-16 09:24:13 +00:00
Birunthan Mohanathas
9447a38f00 Added a Rainmeter.props file to easily change to 64bit compiler across all projects (for VS2010 Pro, which has 64bit compiler by default).
This change has no effect on VC2010 Express users (i.e. Windows7.1SDK needs to be installed). Read the Building wiki entry for more info.
2011-05-14 07:56:18 +00:00
spx
a3572f3255 Tweaks. 2011-05-04 18:48:26 +00:00
Birunthan Mohanathas
6377db5724 Reverted r800/r801. Fixed r800 issue in a better way (thanks spx). 2011-05-02 11:58:02 +00:00
spx
04a7a5692f Fixed an issue that Measure=Registry returns wrong DWORD value. 2011-05-02 07:43:42 +00:00
Birunthan Mohanathas
cb14736cbd Tweaks. 2011-05-01 17:10:49 +00:00
Birunthan Mohanathas
710bce5ca4 Fixed: SkinPath is read from Rainmeter.ini in portable installations. 2011-05-01 13:29:09 +00:00
spx
9b32f4513a Fixed an issue that Roundline/"Shift"-parameters not working when Solid=0.
http://rainmeter.net/forum/viewtopic.php?f=14&t=7608
2011-04-27 11:35:25 +00:00
spx
3e11f95d6b Tweaked. 2011-04-26 11:03:08 +00:00
spx
8fbac4639b Tweaked. 2011-04-26 09:58:06 +00:00
spx
4aafa49a28 Tweaked. 2011-04-19 01:20:17 +00:00
spx
2a030c084c Now re-registers Rainmeter icon when Explorer was restarted. 2011-04-19 00:02:00 +00:00
spx
5246ca94c6 Cleaned up unneeded codes. 2011-04-17 12:19:47 +00:00
Birunthan Mohanathas
f66791253a Statistics now saved in Rainmeter.stats file in same folder as Rainmeter.ini 2011-04-16 20:05:14 +00:00
Birunthan Mohanathas
a9c0b76c2c Added Aero blur support. Documentation available at: http://rainmeter.net/RainCMS/?q=Skins_AeroBlur_beta 2011-04-08 18:14:32 +00:00
Birunthan Mohanathas
b92d8276d3 - Rainstaller now preserves statistics when applying theme
- Build.bat now checks "Program Files (x86)" if files don't exist in "Program Files"
2011-04-07 13:47:26 +00:00
spx
73f80e331f Cosmetic changes. 2011-03-29 21:19:02 +00:00
Birunthan Mohanathas
a92bdd9b18 Cosmetic changes to code. 2011-03-29 19:21:57 +00:00
spx
0e0eb66cff Improved drawing performance. Now uses DIBSection bitmap for UpdateLayeredWindow. 2011-03-23 21:19:55 +00:00
Birunthan Mohanathas
a4b24d75ac - Uptime: Added AddDaysToHours=1/0 (default 1) to disable adding hours to days when %4 is not specified in Format=.
- Installer: Now supports silent installs. Switches and return values available at http://rainmeter.net/RainCMS/?q=Installation_beta
2011-03-23 19:19:45 +00:00
spx
ec49c6e588 Fixed a regression (in r776) that ImageCrop cannot treat a transparent part of the outside of the image. 2011-03-09 03:03:02 +00:00
spx
8ddc383ed1 - Added image caching system internally.
It would reduce memory usage in case that you use the same image file repeatedly on some meters. (Eg. Crop a part from same image by using ImageCrop.)
- Fixed an issue that Background image isn't drawn correctly when BackgroundMode=0 and tint option is set.
2011-03-08 19:39:04 +00:00
Birunthan Mohanathas
f19e76e6ec Fixed that Measure=Registry crashes starting from r763. 2011-02-23 17:38:58 +00:00
spx
3d6615522b Commented out unused code. (Reserved for future use.) 2011-02-21 16:16:24 +00:00
spx
9f152e0076 Removed unneeded codes, for VC2010. 2011-02-20 23:03:15 +00:00
spx
480a1bd1d6 Code cleanup. 2011-02-19 23:33:57 +00:00
spx
35f54fcf46 Small change for r770. 2011-02-19 21:38:29 +00:00
spx
606afe79e6 Fixed crash when AverageSize= is set in Measure. 2011-02-19 21:30:22 +00:00
spx
a2316446ca Switched map/hash_map/set for caching to unordered_map/unordered_set. 2011-02-18 16:26:58 +00:00
spx
96f8407c74 Fixed an issue that Rainmeter crashes if bang is executed via exe during initializing the skins. 2011-02-16 14:46:17 +00:00
jsmorley
cb3a7d3a75 Fixes and issue with InputText plugin failing if a "config name" has a space in it. 2011-02-15 17:39:24 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
1ba57f2adf Fixed some Lua related issues.
Removed some internal functions from exposed functions for Lua.
Code cleanup and optimizing for VC2010.
2011-02-15 13:22:19 +00:00
Birunthan Mohanathas
b01465a20a Minor changes. 2011-02-11 14:42:01 +00:00
spx
07d9b85500 Cleaned up project files. 2011-02-10 19:21:02 +00:00
Birunthan Mohanathas
6a5173c860 Upgrading development environment to Visual C++ 2010. 2011-02-10 16:09:05 +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
1228e243cc Reduced resource usage. 2011-02-07 09:38:27 +00:00
spx
1feea0dad4 Added iphlpapi.h again. 2011-02-07 08:10:47 +00:00
spx
b0af82a25d Cleaned up header dependencies to avoid unnecessary compiling. 2011-02-07 08:02:12 +00:00
spx
b79d3e8521 Fixed minor access violation when closing About dialog. 2011-02-05 07:48:29 +00:00
spx
1115764ce4 Fixed minor access violation when exiting Rainmeter. 2011-02-05 05:55:01 +00:00
spx
32b0a93a43 Minor changes for Debug/Win32. 2011-02-05 04:22:42 +00:00
Birunthan Mohanathas
bf79f44e96 Cosmetic changes to code. 2011-02-03 18:09:24 +00:00
spx
3af4e14a4a Removed duplicate Lua header files.
Code cleanup.
2011-02-03 18:03:29 +00:00
Birunthan Mohanathas
68225a261f Some additional changes. 2011-02-03 16:07:34 +00:00
Birunthan Mohanathas
a8aa2825a2 Updated installer graphics and made some other minor changes. 2011-02-03 15:52:45 +00:00
spx
249e021001 Reverted r718. 2011-02-02 23:17:44 +00:00
Birunthan Mohanathas
7bd61751c9 Minor changes to About dialog. 2011-02-01 18:16:34 +00:00
spx
f4a16a1a0a Fixed crash when freeing the LocalFont. 2011-01-31 19:57:59 +00:00
Birunthan Mohanathas
9d9e650e80 About dialog now remembers position and size for session and some minor cosmetic and usability improvements. 2011-01-31 07:08:43 +00:00
jsmorley
5ca200556a Lua - Changed LUA_MAXCAPTURES (the number of captures in one pattern matching statement) from the default 32 to 256 2011-01-31 00:10:47 +00:00
spx
b2c8ad72d1 Additional fix for r727. 2011-01-30 16:32:07 +00:00
Birunthan Mohanathas
054bcd9796 Minor improvement to About dialog (The plugins list is now generated only when Plugins entry is selected, not on initialization. As a result, the About dialog opens considerably faster.). 2011-01-30 16:21:00 +00:00
spx
7b5330896f Code cleanup. 2011-01-30 15:44:48 +00:00
spx
e4944fa99f MeasureScript: Fixed memory leak when DynamicVariables=1. 2011-01-30 15:39:14 +00:00
Birunthan Mohanathas
a69e2e91d2 The print() function in Lua scripts now outputs to Rainmeter log (an alternative to the TO.LuaLog() function). 2011-01-30 13:04:17 +00:00
spx
251beb9e3a Fixed an issue that GradientAngle doesn't work correctly in some GradientAngle values when AntiAlias=0. 2011-01-30 11:28:20 +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
92eafce2dc Disabled the DLL_THREAD_ATTACH and DLL_THREAD_DETACH notification calls in all DLLs.
DisableThreadLibraryCalls Function
http://msdn.microsoft.com/en-us/library/ms682579.aspx
Note: Do not call "DisableThreadLibraryCalls" in a DLL which is statically linked to the CRT
http://support.microsoft.com/kb/555563/en-us

For plugin author:
If you need to implement DllMain entry point yourself, get rid of the #include "DisableThreadLibraryCalls.h" line.
2011-01-30 09:31:41 +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
fdae154245 Fixed crash when the config is switched to the variant. 2011-01-28 18:06:54 +00:00
spx
78db448471 - Removed problematic setting from Lua headers.
- Removed unused locale strings from mparser.c. (They caused a problem on editing/compiling in some environments.)
2011-01-28 13:13:12 +00:00
spx
bf53fefc8d Some Lua stuff now use precompiled header.
Note: Add #include line manually if glue/*.cpp files are generated automatically by using tolua++.
2011-01-28 11:22:24 +00:00
Birunthan Mohanathas
6445e42cf6 Some housekeeping. 2011-01-28 10:00:50 +00:00
spx
44b943d5ec Code cleanup. 2011-01-28 08:22:18 +00:00
Birunthan Mohanathas
2aa4d62278 Defined _CRT_SECURE_NO_WARNINGS. 2011-01-27 19:24:09 +00:00
Birunthan Mohanathas
ce614da5f3 Fixed that !RainmeterSetVariable and !RainmeterWriteKeyValue are unable to set/write empty value (thanks spx!). 2011-01-27 15:23:15 +00:00
spx
435ab8123a Code cleanup. 2011-01-24 10:43:03 +00:00
spx
0ad2ef9414 Code cleanup. 2011-01-24 10:15:05 +00:00
spx
d6789cc23f Removed unnecessary code. 2011-01-23 14:27:23 +00:00