Commit Graph

352 Commits

Author SHA1 Message Date
Birunthan Mohanathas
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
spx
7531ddde27 - Tweaked !SetClip.
- Code cosmetics.
2012-01-30 08:34:56 +00:00
JamesAC
55fe503636 Added new Bang "!SetClip"
Usage - !SetClip "Text to set, #Variable#, [Measure]"

Dynamic Variables is only needed if a dynamic #Variable# is used, it is not needed for a [Measure] to appear dynamically.
2012-01-29 18:59:22 +00:00
Birunthan Mohanathas
d302561618 Fixed mistake in r1145 and some minor changes. 2012-01-29 15:59:44 +00:00
Birunthan Mohanathas
fd48b9f24a MathParser: Fixed issue with measure names less than 6 chars. 2012-01-27 15:36:46 +00:00
Birunthan Mohanathas
33d447a907 MathParser: Converted to use WCHAR. 2012-01-23 09:30:51 +00:00
spx
ebec08914a Adjusted copyright notice.
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
Birunthan Mohanathas
caf0a60a5b Removed ccalc and replaced with MathParser 2012-01-22 20:28:05 +00:00
Birunthan Mohanathas
fdb2d4c528 Manage Skins/Themes: Fixed crash http://rainmeter.net/forum/viewtopic.php?f=14&t=10841 2012-01-03 19:45:22 +00:00
spx
3bebd7002a Minor tweaks. 2011-12-09 19:49:06 +00:00
spx
2835739b12 Code tweaks and cleanup. 2011-12-09 03:28:19 +00:00
spx
8e8b7d1268 Code tweaks and cleanup. 2011-12-04 22:18:40 +00:00
spx
2d05df47cd Fixed issue that Rainmeter.stats is not created and generates error on startup if Rainmeter.ini doesn't contain [Statistics]-section.
http://rainmeter.net/forum/viewtopic.php?f=14&t=10418
2011-12-01 08:40:37 +00:00
spx
3c1338b4c5 - Renamed bool ReadFormula() to ParseFormula.
- Changed ReadConfig() in Measure/Meter to protected.
- Other code tweaks and cleanups.
2011-11-26 02:49:52 +00:00
spx
02f2d51b41 Minor tweaks. 2011-11-24 00:30:56 +00:00
spx
4719e4a600 Minor tweaks. 2011-11-19 23:09:41 +00:00
Birunthan Mohanathas
d3a2a8a137 NowPlaying.dll: iTunes shuffle state change now detected immediately. 2011-11-19 11:44:04 +00:00
Birunthan Mohanathas
42ce3d9666 Minor tweaks. 2011-11-19 11:32:23 +00:00
spx
efc8275ed1 Minor tweaks. 2011-11-18 22:40:58 +00:00
Birunthan Mohanathas
b02371276f Minor tweaks. 2011-11-16 16:47:20 +00:00
spx
bbe733b437 Code tweaks and cleanups. 2011-11-10 13:44:19 +00:00
Birunthan Mohanathas
8cb0a041e0 Changed: "Normal" z-position now stays on desktop by default 2011-11-10 11:50:47 +00:00
Birunthan Mohanathas
f8f31a527e Switched from _snwprintf_s to _itow_s where possible. 2011-11-09 08:52:32 +00:00
Birunthan Mohanathas
852163bf68 Tweaks. 2011-11-08 19:02:31 +00:00
Birunthan Mohanathas
dfd53fb158 Fixed infinite loop when a Rainmeter.exe is called with a bang containing square brackets (e.g. Rainmeter.exe !Bang "[Text]") 2011-11-08 18:19:34 +00:00
spx
569a151c6c - Switched from size()>0 to empty().
- Code cleanup.
2011-11-08 17:21:29 +00:00
spx
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
spx
2a166b520f Minor tweaks and cleanup. 2011-11-05 09:01:06 +00:00
spx
635eafcc94 Code cleanup. 2011-10-30 01:39:19 +00:00
spx
ccd6061427 Fixed "Unable to load language: <path>\Languages\.dll" issue. 2011-10-29 11:15:58 +00:00
spx
1808930c5a Code cleanup. 2011-10-29 10:36:07 +00:00
Birunthan Mohanathas
e8b9461541 Minor change. 2011-10-23 10:41:32 +00:00
Birunthan Mohanathas
3e7de9c573 - Manage Themes: Fixed that loaded wallpaper was not set permanently
- Fixed that default language detection failed on 64bit Rainmeter
- Installer now remembers language selection
- Fixed that Build.bat didn't work with TortoiseSVN 1.7 (recent version of TortoiseSVN now required to use Build.bat/UpdateVersion.bat)
2011-10-14 14:53:02 +00:00
Birunthan Mohanathas
4dd89b8372 Additional change for r985. 2011-10-01 17:55:33 +00:00
Birunthan Mohanathas
4f73f17cec Added ability to change language in Manage Settings. 2011-10-01 17:39:09 +00:00
spx
4f47897a3c Code cleanup. 2011-09-29 17:54:42 +00:00
spx
86fd454277 Code cleanup. 2011-09-29 17:14:51 +00:00
Birunthan Mohanathas
1493aec2a1 Partly reverted r975 (restored Rainmeter.dll). 2011-09-29 06:04:20 +00:00
Birunthan Mohanathas
13c17b9d1a - Removed support for using Rainmeter.dll as Litestep module
- Merged Rainmeter.dll and Rainmeter.exe
- Language resource file now located in \Language\<LanguageName>.dll
- Build.bat now automatically builds and packages all languages
2011-09-28 18:28:35 +00:00
Birunthan Mohanathas
55391d4b98 Some optimizations and cleanup. 2011-09-24 09:13:13 +00:00
Birunthan Mohanathas
e22db0b887 Added localization support. 2011-09-23 16:28:38 +00:00
Birunthan Mohanathas
559d2d2d17 Manage Themes: Fixed that loading backup just reloaded current setup. 2011-09-18 07:38:14 +00:00
spx
6cce1c2233 Fixed invalid state in context menu. (r948) 2011-09-10 23:01:24 +00:00
spx
e4ffc1bc6c Minor change for r948. 2011-09-10 22:31:05 +00:00
spx
a52abc05af Fixed that an uninitialized skin stays in memory when fatal error occurred. 2011-09-10 22:04:51 +00:00
spx
58a16ef66e Fixed that !WriteKeyValue fails if filepath includes ".." like "skin..ini". 2011-09-09 17:15:02 +00:00
Birunthan Mohanathas
f14d751604 - Added #CURRENTFILE# variable
- Changes to log strings
2011-09-09 16:31:55 +00:00
spx
3518dbf07e Manage:
- Fixed that the selected skin isn't loaded when clicking "Load" button or menu.
- Fixed that the selected skin tab isn't disabled correctly when unloading the skin via the skin context menu.
2011-09-08 23:10:41 +00:00
Birunthan Mohanathas
2e128c75be Changed so that only LOG_ERROR from exceptions cause About Log to open. 2011-09-08 17:05:48 +00:00
Birunthan Mohanathas
2e9f063cef Additional change for r940. 2011-09-08 15:37:33 +00:00
Birunthan Mohanathas
8b605c8fc5 Additional change for r940. 2011-09-08 14:46:49 +00:00
Birunthan Mohanathas
f17602ee1d - Manage Skins: Load order can now be changed
- Fixed that the PLAY/PLAYLOOP commands didn't work with relative paths
- Errors that used to display in a messagebox are now logged and shown in the About Log dialog (which is opened when an error occurs)
- Some minor tweaks
2011-09-08 14:39:25 +00:00
spx
e258dc9137 Code cleanup. 2011-09-04 18:06:19 +00:00
Birunthan Mohanathas
8c1e7f2dfc Fixed that themes weren't loaded through Themes context menu if RainThemes was not installed. 2011-09-04 07:40:12 +00:00
Birunthan Mohanathas
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
spx
e721be6456 Fixed deadlock issue when About dialog is opened. 2011-08-31 11:06:35 +00:00
spx
614eef6c3b - Added some info to error message from MathParser.
- Cosmetic changes.
2011-08-29 21:57:36 +00:00
spx
a1f0c4fd19 Some adjustment changes for menuitem. 2011-08-29 19:35:18 +00:00
spx
f84b44a9f0 Code cleanup. 2011-08-28 16:42:34 +00:00
Birunthan Mohanathas
2df0f6f7f6 - Settings are now preserved and a backup is created when loading themes through Manage
- Fixed that Manage/About didn't always appear on foreground
2011-08-28 14:08:48 +00:00
Birunthan Mohanathas
6629527e83 - Added Version tab to About dialog
- Fixed: Treeview in Manage Skins tab didn't update on Refresh All
- Fixed: Backup button in Manage Themes didn't work when path contained space
2011-08-28 12:28:00 +00:00
Birunthan Mohanathas
69f3ab1803 - Added Manage dialog, which consolidates RainBrowser and RainThemes into a single UI
- Updated About dialog
- Removed RainBrowser and RainThemes from build
2011-08-28 10:58:26 +00:00
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
02251ed412 Additional change for r860. Improved writing the network statistics to
Rainmeter.stats.
2011-08-03 19:44:40 +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
Birunthan Mohanathas
822c10060a - Added !SetOption/!SetOptionGroup bangs.
- Script: Added GetOption() function
2011-07-27 10:42:35 +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
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
8867c94482 Cosmetic changes. 2011-07-07 23:25:45 +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
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
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
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
Birunthan Mohanathas
6377db5724 Reverted r800/r801. Fixed r800 issue in a better way (thanks spx). 2011-05-02 11:58:02 +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
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
a92bdd9b18 Cosmetic changes to code. 2011-03-29 19:21:57 +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
spx
b0af82a25d Cleaned up header dependencies to avoid unnecessary compiling. 2011-02-07 08:02:12 +00:00
spx
249e021001 Reverted r718. 2011-02-02 23:17:44 +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
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
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
8ae8a1b73d Fixed PLAYSTOP case sensitivity. 2011-01-11 16:18:15 +00:00
spx
2fafb5dcdc - Added !RainmeterUpdate/!RainmeterUpdateMeter(Group)/!RainmeterUpdateMeasure(Group).
- Changed Update= and UpdateDivider= behaviors. If you specify < 0 to them, measures/meters are not updated automatically.
2010-12-28 13:31:17 +00:00
spx
9c75cf3423 Code cleanup. 2010-12-21 04:49:01 +00:00
spx
f4bfe8f4fc - Added #CURRENTSECTION# variable.
For instance:
-----
[Variables]
Var=#CURRENTSECTION#

[StyleString]
Text=#CURRENTSECTION#

[MeterString]
Meter=String
MeterStyle=StyleString
Prefix="#CURRENTSECTION# / "
Postfix=" / #Var#"
-----
Displays:
MeterString / MeterString / Variables

- Additional changes for r677.
* Obsoleted DebugLog(). Use LogWithArgs() with LOG_DEBUG instead.
* Added Log().
2010-12-20 08:57:37 +00:00
JamesAC
c50f1c27f2 - Replace DebugLog() with LogWithArgs(int nLevel, const WCHAR* format, ... ), so that variable strings can be logged but the log level can be set to those other than LOG_DEBUG
- Note: DebugLog() is still in the code as I was not sure whether it is required to maintain Litestep interoperability
- Replaced instances of LOG_DEBUG where other log levels would be more appropriate
2010-12-19 23:06:13 +00:00
spx
b9ae3a31d8 Code cleanups for better Unicode support in several !bangs. 2010-12-17 00:09:37 +00:00
spx
d1a7b604df Core dll:
- Replace swprintf/wsprintf/wcscpy/wcscat to _snwprintf_s/wcsncpy_s/wcsncat_s.
- Changed printf format parameter strictly for supporting both 32bit and 64bit.
- Fixed an issue that !RainmeterWriteKeyValue doesn't accept %APPDATA%\Rainmeter path.
- Code cleanup.
2010-12-16 20:35:44 +00:00
jsmorley
68ae1fe491 Updating CSPlugingInputText
Adding Rainmeter.exe.config file to root to support dependent .dll files for C@ plugins
Adding Dependencies folder in \Plugins to support dependent .dll files for C@ plugins
Changes to server core Rainmeter codes to better export variables for C# plugins
Changes to Build.py
Changes to installer
2010-12-16 17:04:14 +00:00
spx
13e9f54d2a - MeasureScript: Added files that uses pre-compile header.
- Code cleanup.
2010-12-13 09:00:02 +00:00
spx
191c12ecf6 Code cleanup. 2010-12-11 16:30:49 +00:00
Birunthan Mohanathas
42917f7d67 Some minor changes. 2010-12-11 10:31:19 +00:00
Birunthan Mohanathas
f0f7bd9121 Removed useless code. 2010-12-07 18:12:13 +00:00
spx
d125093e89 Added workaround for InputText plugin. (ShellExecuteEx fails when InputText is activated.) 2010-12-05 23:33:51 +00:00
spx
96c81ac516 - Added BackgroundMode=4 for tiling background image.
- Added tinting functions for Background.
- Added "ImageCrop" option to Meter=IMAGE/BAR/HISTOGRAM/ROTATOR and Background.
- Added "Tile" option to Meter=IMAGE.
- Some code cleanups.
2010-12-04 15:07:28 +00:00
Birunthan Mohanathas
559b5ae05f About dialog now opens with Log selected as default. Changed DisableDrag=1/0 to DisableDragging=1/0. 2010-11-27 10:57:59 +00:00
spx
999ab0bd18 Code optimization. 2010-11-25 22:00:34 +00:00
Birunthan Mohanathas
b63f92f127 Groups can now be defined under the skins [Rainmeter] section as well (in addition to Rainmeter.ini).
Also fixed small typo in r622.
2010-11-24 16:41:50 +00:00
Birunthan Mohanathas
1f3a04e54e Added DisableDrag=1/0 to lock skins into position.
Added DisableRDP=1/0 to disable redraw during RDP session (thanks to FUR10N for the code).
Minor changes to the installer and Rainstaller.
2010-11-24 15:34:07 +00:00
spx
cab258a7e5 Code optimization and removed unused part for reducing core dll size. 2010-11-11 20:24:59 +00:00
jsmorley
2bf3299ded Additional change to make Rainmeter.cpp case insensitve when installing default theme. Added Recycle Bin to illustro default theme. 2010-11-07 13:14:51 +00:00
jsmorley
bddef71808 Minor update to illustro and Rainmeter.cpp to properly detect install the illustro theme. 2010-11-07 12:57:31 +00:00
spx
0b8537f384 Fixed wrong item order in tray context menu. 2010-10-31 20:32:16 +00:00
spx
1668de5a3b Code cleanup & cosmetics. 2010-10-31 20:13:32 +00:00
Birunthan Mohanathas
461f8757c1 Fixed Debug x64.
Also some minor changes to the installer and Rainmeter.cpp.
2010-10-30 11:21:19 +00:00
jsmorley
9f881c1b2b Changed "Rainmeter Downloads" to "Downloads" based on poiru's input 2010-10-26 15:19:43 +00:00
jsmorley
43751f3217 JamesAC added "Rainmeter Downloads" to the main context menu, which will open the user's browser to the skin downloads page in version 1.4. 2010-10-25 19:58:53 +00:00
spx
15992c2dc3 Cosmetic changes. 2010-09-21 22:47:53 +00:00
Birunthan Mohanathas
e618ad1777 Cosmetic changes here and there. 2010-09-21 11:09:36 +00:00
Birunthan Mohanathas
4ccb0aa40b Changes to some Rainmeter messageboxes to make them more descriptive. Minor changes to Rainstaller as well. 2010-09-21 08:32:41 +00:00
spx
704558b7df Fixed a issue that Rainmeter crashes at LSLog(). (multithreading issue) 2010-09-19 09:21:25 +00:00
spx
df146e4eb4 Code cleanup & cosmetic. 2010-09-17 08:47:22 +00:00
jsmorley
6fe8fd0aa7 Fix by spx for the problem where r538 caused some backwards compatibility issues. 2010-09-15 10:05:09 +00:00
jsmorley
cd074cd44d Fix by MattKing for numbers being truncated to 0 decimals issue in http://rainmeter.net/forum/viewtopic.php?f=14&t=5432 2010-09-14 17:08:25 +00:00
spx
2cb88b0733 Shrunk some string buffer size. 2010-09-13 20:06:52 +00:00
spx
3da0aa3f4c [Application]
- Added some codes to avoid loading a dll from current directory.

[Library]
- Added new functions to avoid loading a dll from current directory. (CSystem::RmSetDllDirectory(), CSystem::RmLoadLibrary())
2010-09-11 19:39:45 +00:00
spx
07d5671707 Fixed an issue that ClickThrough mode is broken since r486.
Fixed an issue that cached window message is incorrect in some cases.
2010-09-03 11:05:28 +00:00
spx
7f2c47a956 - Fixed an issue that audio commands fail in some cases.
Following cases are now available:

ButtonCommand=PLAY #SKINSPATH#Beeper\Sounds\beep.wav
ButtonCommand=PLAY "#SKINSPATH#Beeper\Sounds\beep.wav"
ButtonCommand=!execute [PLAY #SKINSPATH#Beeper\Sounds\beep.wav]
ButtonCommand=!execute [PLAY "#SKINSPATH#Beeper\Sounds\beep.wav"]
2010-09-02 16:03:15 +00:00
spx
c14cd5491b [AboutDialog]
- Fixed the issue that the statistics are updated many times if many active skins are working. "Log" is now updated once every 1 second. Config is now updated once on its Update=.
- Fixed the issue that the statistics show by incorrect order in some conditions.
- Fixed the issue that the entries aren't updated if the skin is activated/deactivated.
2010-08-30 22:51:58 +00:00
spx
bea3b2821a Modified for icons on About dialog box. 2010-08-25 14:36:20 +00:00
jsmorley
10f0640298 Added JamesAC's new bangs to change "settings" in Rainmeter.ini for one / group / all skins at once.
!RainmeterDraggable/!RainmeterDraggableGroup
!RainmeterKeepOnScreen/!RainmeterKeepOnScreenGroup
!RainmeterClickThrough/!RainmeterClickThroughGroup
!RainmeterSnapEdges/!RainmeterSnapEdgesGroup

!RainmeterSnapEdges [parm1] (Config | *)
!RainmeterSnapEdgesGroup [parm1] [GroupName]

Parm1:
-1 toggles the setting.
0 forces the setting to off.
1 forces to setting to on.
2010-08-22 12:08:38 +00:00
spx
2e32b0f5c1 Some minor fixes. 2010-08-06 07:40:43 +00:00
spx
afd7de5a8c Fixed some stability issues when the location of the settings file is defined by a commend line argument. 2010-08-05 10:46:04 +00:00
spx
ff04d39bad Fixed the crash issue that the commandline option length is less than 4 characters. 2010-08-04 08:10:54 +00:00
spx
229fc944e8 Fixed missing RemoveBangCommand("!RainmeterWriteKeyValue"); 2010-08-03 15:25:38 +00:00
spx
64888434c9 - Added !RainmeterWriteKeyValue. (based on MattKing's code)
!RainmeterWriteKeyValue "Section" "Key" "Value" ("FileSpec"), where "FileSpec" is an optional parameter. If FileSpec is not present, the change is automatically done in the currently running skin file. If the bang is executed from command line, FileSpec is required.

- Some improvements of MouseOver/Leave detection.

- Fixed the issue that window dragging brings on MouseLeave if "Show window contents while dragging" is not set.
- Fixed the issue that window dragging can't be begun by dragging the Button.
- Fixed the issue that a reaction of the upper Button penetrates to the lower Buttons or the other window.
2010-08-03 15:10:42 +00:00
spx
3f2268b6b2 Minor fix for multiple %APPDATA%. 2010-07-22 01:50:22 +00:00
spx
4965f3859f - Fixed the issue that the check marks of all menu items in configs/root/variants menu are cleared if !RainmeterDeactivateConfig/!RainmeterToggleConfig is used.
- Fixed the issue that %APPDATA% isn't replaced if Rainmeter runs as different user.
- Some stability improvements for activating/deactivating configs.
2010-07-22 00:31:59 +00:00
spx
abc5df233d - Fixed the issue that the context menu doesn't hide even if a focus is switched to the desktop or other windows.
- Fixed the small Logging menu issue.
2010-07-20 07:15:39 +00:00
spx
eb536cde54 - Added config's root menu.
- Fixed a small issue on creating menu cache.
- Added workaround that the context menu is shown repeatedly by using menu bangs.
2010-07-18 21:35:52 +00:00
spx
6b6635b9c9 Got rid of some redundant codes from r471. 2010-07-17 13:38:12 +00:00
jsmorley
935852426a Added spx's meter/measure/config "Group" functionality.
Minor fix to installer script
2010-07-17 13:02:34 +00:00
jsmorley
5be6e9783d Adding code to improve DesktopWorkArea with mulitple monitors. This is code from user Jott, with some minor tweaks by spx
Adds DesktopWorkArea(x) where "x" is the desired monitor. DesktopWorkArea without a number is the primary monitor.
2010-07-10 12:56:37 +00:00
spx
d07e8665b0 Modified the behavior when the log file was deleted manually. 2010-07-08 10:59:06 +00:00
spx
63c11d1535 Fixed some wrong comments. 2010-07-07 23:54:20 +00:00
spx
f61a35a64d - Added "Group" option to Measure/Meter to operate Measures/Meters in bulk.
Usage:
    Group=group1 | group2 | group3
    * Concatenate group with the "|" if you'd like to assign multiple groups.

- Added !Bangs for Group. (!RainmeterShowMeterGroup, !RainmeterHideMeterGroup, !RainmeterToggleMeterGroup, !RainmeterEnableMeasureGroup, !RainmeterDisableMeasureGroup, !RainmeterToggleMeasureGroup)
Usage:
    !RainmeterShowMeterGroup [group] (Config)
    !RainmeterHideMeterGroup [group] (Config)
    !RainmeterToggleMeterGroup [group] (Config)
    !RainmeterEnableMeasureGroup [group] (Config)
    !RainmeterDisableMeasureGroup [group] (Config)
    !RainmeterToggleMeasureGroup [group] (Config)

- Modified logging feature. Added new "Logging" menu to the context menu.

- Added the manifest to Rainmeter.exe to apply visual style to button etc.
2010-07-07 23:46:44 +00:00
Birunthan Mohanathas
38409f2d05 * Several changes to the Rainmeter context menu (including handle leak fix)
* Rainmeter now opens text files with associated text editor (with fallback to Notepad) if ConfigEditor is not specifed
2010-06-23 12:36:39 +00:00
jsmorley
8a47a191d7 Changes to Rainstaller and RainThemes to support new version checking method.
Minor fix to a couple of typos in the version checking code
Changed "Update Available" to "New Version Available"
2010-06-21 17:14:56 +00:00
jsmorley
8785516c09 1) JamesAC / spx change to Windows Messages / Dexpot support, with fix for copy / paste error in previous commit.
2) Change to version checking:
* CheckVersion= setting depreciated.  Removed from "About" dialog and automatically ignored and removed from Rainmeter.ini at Rainmeter start.
* New DisableVersionCheck= (1/0) setting added, which now changes the default from "don't check version" to "do check version" unless this is set to "1"
2010-06-21 16:00:19 +00:00
spx
1393d52f43 Fixed the issue that the default value isn't reflected correctly when refreshing the skin. (Issue 155) 2010-05-30 07:02:46 +00:00
spx
e2c5a4afdc small fixes (including poiru's fix for Rainmeter.ini when Default.ini doesn't exist is not there) 2010-05-09 10:21:40 +00:00
jsmorley
c01fb4eb76 Update to get things in place for one final beta followed by a Release Candidate as soon as we can.
1) Added Gnometer as one of the default skins, including two themese (Gnometer and Gnometer Preview)
2) Removed Tranquil skins
3) Added RainBackup in \Addons and to start menu
4) Changes to Rainstaller to use default header .bmp file if the author does not provide one in the .rmskin.
5) Changes to Rainmeter.cpp to handle Gnometer as one of the new default skins
6) Changes to the Rainmeter installation program to allow selection of default skin / theme (Gnometer or Enigma)
2010-05-08 19:51:33 +00:00
spx
32db892e2c Fixed a problem that "Random" is case-sensitive in CALC measure.
Fixed a problem that a deletion of the meter window encounters enormous delays when the meter window has enormous Update=.

Some small cosmetics.
2010-04-08 23:16:43 +00:00
spx
8bff3e2ac2 Small change about !RainmeterQuit (simpler way) 2010-04-02 06:54:51 +00:00
spx
415c905d0a - Fixed a problem that !RainmeterQuit isn't executed when no meter window is running.
- Fixed a problem that StyleTemplate affects to Meters which have no relation.

- Added a workaround to avoid the "IniFileMapping" function when reading skins.

- Some small code cosmetics.
2010-04-02 01:35:53 +00:00
spx
a6f2f01036 Some code changes for optimization 2010-03-30 22:37:05 +00:00
spx
b769a7a360 - Modified the way to handle the "On Desktop". This affects all of Windows versions.
- Added "LoadOrder" to handle the skins' loading order.

- Changed the way to update and save the network statistics.
2010-03-29 21:50:05 +00:00
spx
8b9e21e38f Fixed the crash problem when multiple Rainmeter instances are running and "show desktop" occured. 2010-03-23 16:15:07 +00:00
spx
06ec730bfd - Added the workaround to pin the window to desktop in Vista/7 with Aero.
- Added !RainmeterSetTransparency, !RainmeterShowFade, !RainmeterHideFade, !RainmeterToggleFade.

- Added the function to log the installed font families to the log file when Debug=1 is set.

- Added the workaround for issue 145. The wrong drawing position was fixed when AntiAlias=0 is set.
2010-03-20 19:40:30 +00:00
jsmorley
65bfaa31f0 Mattking: Fixed PLAY command to play the .wav file asynchronously so it no longer "pauses" Rainmeter while sound is playing. 2010-03-04 22:53:56 +00:00
spx
be3b4114bb - Added the function that measures the CPU usage for multi core/processors.
For instance:

[MeasureCPU]
Measure=CPU

[MeasureCPU1]
Measure=CPU
Processor=1

[MeasureCPU2]
Measure=CPU
Processor=2

MeasureCPU returns the average of the CPU usage across all core/processors. This is same as Processor=0.

MeasureCPU1/2 returns the CPU usage of each core/processor.

-----

- Fixed the problem that the correct value is not returned if the Interface=0 in NetIn/NetOut/NetTotal measure. The cause of this problem is because the value of all filter devices is summed in Vista or newer.

-----

- Added the option (Debug) for debug logging. This must be put under [Rainmeter]-section in Rainmeter.ini.

This option specifies whether extra debugging log from Rainmeter.dll is output to Rainmeter.log.

[Rainmeter]
Debug=1

Default is 0.

-----

- Application: Fixed a wrong return value type from MainWndProc.
2010-02-13 03:07:34 +00:00
spx
cc3ad487a7 * Changed the way to get the information of the multiple display monitors.
This change brings the order of monitors close to the order of "Display Properties" due to using EnumDisplayDevices and EnumDisplaySettings instead of EnumDisplayMonitors. (If EnumDisplayDevices failed, EnumDisplayMonitors is used as before.)

-----

* Added the "Display Monitor" submenu in [Skins Menu]-[Position].

These menus convert the present position to the relative position from the specified monitor.
(But the meter window doesn't move to the specified monitor area immediately. Only converts.)

- "Use default: Primary monitor" removes the @-directive from WindowX/Y.
- @0(@1, @2, ...) adds the specified monitor number to WindowX/Y. @0 means "The Virtual Screen". (http://msdn.microsoft.com/en-us/library/dd145136%28VS.85%29.aspx)
- If "Auto-select based on window position" is checked, the WindowX and WindowY "@n" settings are made automatically based on the position of the meter's window. If a monitor is selected directly using "Display Monitor" in the Rainmeter / skin context menu, this menu is unchecked. This setting can be manually made in either the [Rainmeter] (all configs) or individual config sections of Rainmeter.ini.

AutoSelectScreen
If set to 1, the WindowX and WindowY "@n" settings are made automatically based on the position of the meter's window. If a monitor is selected directly using "Display Monitor" in the Rainmeter / skin context menu, this setting is reset to 0.

-----

* Added the variables for multiple display monitors and the virtual screen.
All X/Y positions are represented in the virtual screen coordinates.

The following variables are for the virtual screen.

 #VSCREENAREAX# is the X-position of the left-side of the virtual screen.
 #VSCREENAREAY# is the Y-position of the top-side of the virtual screen.
 #VSCREENAREAWIDTH# is the width of the virtual screen.
 #VSCREENAREAHEIGHT# is the height of the virtual screen.

The following variables are for the PRESENT monitor.
Note that these variables automatically change by the WindowX and WindowY "@n" settings. If "@n" is not set, these variables return the value of the primary monitor.

 #WORKAREAX# is the X-position of the left-side of the work area.
 #WORKAREAY# is the Y-position of the top-side of the work area.
 #WORKAREAWIDTH# is the width of the work area.
 #WORKAREAHEIGHT# is the height of the work area.
 #SCREENAREAX# is the X-position of the left-side of the monitor screen.
 #SCREENAREAY# is the Y-position of the top-side of the monitor screen.
 #SCREENAREAWIDTH# is the width of the display resolution.
 #SCREENAREAHEIGHT# is the height of the display resolution.

The following variables are for the PRIMARY monitor.

 #PWORKAREAX# is the X-position of the left-side of the work area.
 #PWORKAREAY# is the Y-position of the top-side of the work area.
 #PWORKAREAWIDTH# is the width of the work area.
 #PWORKAREAHEIGHT# is the height of the work area.
 #PSCREENAREAX# is the X-position of the left-side of the monitor screen. (maybe, always 0)
 #PSCREENAREAY# is the Y-position of the top-side of the monitor screen. (maybe, always 0)
 #PSCREENAREAWIDTH# is the width of the display resolution.
 #PSCREENAREAHEIGHT# is the height of the display resolution.

The following variables are for the SPECIFIED monitor. (@n = @1, @2, ...)

 #WORKAREAX@n# is the X-position of the left-side of the work area.
 #WORKAREAY@n# is the Y-position of the top-side of the work area.
 #WORKAREAWIDTH@n# is the width of the work area.
 #WORKAREAHEIGHT@n# is the height of the work area.
 #SCREENAREAX@n# is the X-position of the left-side of the monitor screen.
 #SCREENAREAY@n# is the Y-position of the top-side of the monitor screen.
 #SCREENAREAWIDTH@n# is the width of the display resolution.
 #SCREENAREAHEIGHT@n# is the height of the display resolution.

-----

* Other related changes:

- Fixed the problem that the primary monitor isn't recognized correctly.

- Fixed the problem that the information of the multiple display monitors is refreshed excessively.

- For DynamicVariables, when display setting or workarea size has been changed, all variables are now updated to apply changed WORKAREA/SCREENAREA variables.

- Fixed the problem that the "On Desktop" window isn't dragged correctly when the top-left corner of the virtual screen has negative coordinates.

- Changed the way to stick the "On Desktop" window. ("SysListView32/FolderView" is used instead of "Progman/Program Manager".)

-----

* Other changes:

- When the meter window is draggable and isn't dragged, LeftMouseUpAction is now executed.

- Added MouseDoubleClickAction (LeftMouseDoubleClickAction, RightMouseDoubleClickAction, MiddleMouseDoubleClickAction). If MouseDoubleClickAction is empty when mouse button is double-clicked, MouseDownAction is executed instead.

- Fixed the problem that the Meter's hit-test code checks outside the area.

- Changed the way to set the #CURRENTCONFIG#. (CMeterWindow::GetSkinName() is now used instead of parsing the path.)
2009-12-18 05:58:37 +00:00
jsmorley
15353ea701 New !bang
!RainmeterRefreshApp

Does a full refresh of all skins and reloads the list of configs and Rainmeter.ini settings.  This is the same as "Refresh All" from the system tray context menu.  Is not the same as !RainmeterRefresh [config | *] as it can be used to make Rainmeter "see" a new folder added to \Skins by the user or a process.  Note: This was added mostly to better support RainBrowser when a user adds a downloaded config while using RainBrowser.
2009-12-01 01:35:43 +00:00
Kimmo Pekkola
46570b6025 Updating a skin should work now even if the current version is missing. This should solve the issue 121.
The default tray icon is shown if custom tray measure cannot be created.
2009-10-30 19:10:55 +00:00
Kimmo Pekkola
b5042589cb The deactivated window wasn't deleted properly (issue 117).
Deactivating a config kept it still activate in the rainmeter.ini file (issue 118).
2009-10-18 13:31:55 +00:00
Kimmo Pekkola
d5297bb0e7 The themes are updated now with Enigma. 2009-10-17 07:37:09 +00:00
Kimmo Pekkola
2c6c43c652 The window deletion is now delayed when !RainmeterDeactivateConfig is used. This fixes the problem: Issue 116: Crash when skin tries to deactivate self by measure action. 2009-10-17 06:43:18 +00:00
Kimmo Pekkola
f7970be6b5 The !bangs can be now used from command line even if there are no active configs.
Included RainBrowser to the build.
2009-10-10 08:20:28 +00:00
Kimmo Pekkola
0b4ba32924 Added cache for the fonts.
Fixed a memory leak in the string meter.
Changed the library project to use precompiled headers.
2009-10-07 16:45:14 +00:00
Kimmo Pekkola
1ebff32421 Replaced the application icon.
The old config is backed up before it is upgraded.
2009-09-30 17:06:16 +00:00
jsmorley
daeb18c1f4 2009-09-30 03:24:29 +00:00
Kimmo Pekkola
fa6d437a71 Added a version check for the skins which come with Rainmeter so they can be upgraded. 2009-09-18 18:42:50 +00:00
spx
9d96ec61c1 - Fixed: Multibang [] not assumed when [Measure] is replaced in CConfigParser::ReadString().
- Minor changes of ConvertToXXX(): Get an appropriate buffer size to convert the string. And using [] when deleting arrays.
- Fixed a few memory leaks.
- It's now possible to send the !BANG command when all windows are "On Desktop". (Rainmeter.exe and WebParser)
2009-09-12 11:11:40 +00:00
Kimmo Pekkola
ffdec7be65 Some of the plugins don't work with the dynamic variables so the feature is now disabled for them. 2009-08-26 19:29:49 +00:00
Kimmo Pekkola
dc3c767efa It's now possible to use the measures as if they were variables (use [MeasureName] instead #VariableName#). Set DynamicVariables=1 for all meters and measures which refer to other measures.
New bang !RainmeterSetVariable can be used to change the value of a variable (DynamicVariables must be 1 in places where the variable is used).
2009-08-26 17:37:15 +00:00
Kimmo Pekkola
29e1dfba5b Removed duplicated code. 2009-08-12 18:02:24 +00:00
Kimmo Pekkola
1d1290e3fa Added Themes submenu to the Rainmeter's context and tray menus. 2009-08-12 17:11:52 +00:00
Kimmo Pekkola
e73d35e220 New !bang: !RainmeterQuit 2009-08-04 09:48:03 +00:00
Kimmo Pekkola
9654dc21ae #PROGRAMPATH# and #ADDONSPATH# returned incorrect value if the ini file was given as a command line argument. Fixed. 2009-08-03 22:21:56 +00:00
Kimmo Pekkola
3c0923f862 The themes are now copied to the %APPDATA% on first run.
Few changes to the Enigma skin to make it work better in different resolutions.
2009-08-01 16:40:04 +00:00
Kimmo Pekkola
1dbfc85b01 The stats are now written once per minute to the settings file. 2009-07-27 12:30:28 +00:00
Kimmo Pekkola
bded6e6fc7 New build in variables: #PROGRAMPATH#, #SETTINGSPATH#, #SKINSPATH#, #PLUGINSPATH#, #ADDONSPATH# and #CURRENTPATH# (this is the path where the ini file that is currently read is located).
If there is a file called Default.ini in the program folder it will be used as the default settings file for new users.
The location of the settings file (rainmeter.ini) can be defined as a command line argument.
2009-07-26 21:08:46 +00:00
Kimmo Pekkola
a7c6c939ac Skins are now read from the My Documents by default.
Added the revision number to the about dialog (use UpdateRevision.py to update it).
Added a check to the startup which verifies that the rainmeter.ini is writable.
The skin folder can be opened from the context menu.
2009-07-24 07:56:37 +00:00
Kimmo Pekkola
e2448f42b1 Added 64-bit compilation configuration.
The bitmap meter supports transition frames now.
Few Vista/Win7 fixes (the rainmeter.ini is now in %APPDATA%).
2009-07-21 12:26:50 +00:00
Brian Todoroff
8a66cc73c0 Positioning from right/bottom, as a percentage of screen, and multi-monitor selection implemented. Updated context menu Position sub-menu and help files. Dragging should work for all options.
Removed dependencies from Library on plug-in .DLL's.
2009-03-24 04:29:48 +00:00