mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- 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"]
This commit is contained in:
@ -588,15 +588,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
|
||||
if (!bang.empty())
|
||||
{
|
||||
std::wstring arg;
|
||||
size_t pos = bang.find(L' ');
|
||||
if (pos != std::wstring::npos)
|
||||
{
|
||||
arg = bang;
|
||||
arg.erase(0, pos + 1);
|
||||
bang = bang.substr(0, pos);
|
||||
}
|
||||
Rainmeter->ExecuteBang(bang, arg, NULL);
|
||||
Rainmeter->ExecuteCommand(bang.c_str(), NULL);
|
||||
}
|
||||
else if (uMouseMsg == WM_RBUTTONDOWN)
|
||||
{
|
||||
|
Reference in New Issue
Block a user