diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index 57b23c56..3fdf9117 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -3937,6 +3937,7 @@ void CMeterWindow::SetSnapEdges(bool b) m_SnapEdges = b; WriteConfig(SETTING_SNAPEDGES); } + /* ** SetWindowHide ** diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 1ecfa233..46e1ad92 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -1202,7 +1202,18 @@ void RainmeterLsHook(HWND, const char* arg) */ void RainmeterAbout(HWND, const char* arg) { - RainmeterAboutWide(); + RainmeterAboutWide(ConvertToWide(arg).c_str()); +} + +/* +** RainmeterManage +** +** Callback for the !RainmeterManage bang +** +*/ +void RainmeterManage(HWND, const char* arg) +{ + RainmeterManageWide(ConvertToWide(arg).c_str()); } /* @@ -1455,9 +1466,9 @@ void RainmeterAboutWide(const WCHAR* arg) } /* -** RainmeterManagerWide +** RainmeterManageWide ** -** Callback for the !RainmeterAbout bang +** Callback for the !RainmeterManage bang ** */ void RainmeterManageWide(const WCHAR* arg) @@ -2131,6 +2142,7 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath) AddBangCommand("!RainmeterRefreshApp", RainmeterRefreshApp); AddBangCommand("!RainmeterLsBoxHook", RainmeterLsHook); AddBangCommand("!RainmeterAbout", RainmeterAbout); + AddBangCommand("!RainmeterManage", RainmeterManage); AddBangCommand("!RainmeterSkinMenu", RainmeterSkinMenu); AddBangCommand("!RainmeterTrayMenu", RainmeterTrayMenu); AddBangCommand("!RainmeterResetStats", RainmeterResetStats); @@ -2554,6 +2566,7 @@ void CRainmeter::Quit(HINSTANCE dllInst) RemoveBangCommand("!RainmeterRefreshApp"); RemoveBangCommand("!RainmeterLsBoxHook"); RemoveBangCommand("!RainmeterAbout"); + RemoveBangCommand("!RainmeterManage"); RemoveBangCommand("!RainmeterSkinMenu"); RemoveBangCommand("!RainmeterTrayMenu"); RemoveBangCommand("!RainmeterResetStats"); diff --git a/Library/Rainmeter.h b/Library/Rainmeter.h index 529b47b6..d6e17f4f 100644 --- a/Library/Rainmeter.h +++ b/Library/Rainmeter.h @@ -107,6 +107,7 @@ void RainmeterSetOptionGroup(HWND, const char* arg); void RainmeterLsHook(HWND, const char* arg); void RainmeterAbout(HWND, const char* arg); +void RainmeterManage(HWND, const char* arg); void RainmeterSkinMenu(HWND, const char* arg); void RainmeterTrayMenu(HWND, const char* arg); void RainmeterResetStats(HWND, const char* arg);