diff --git a/plugin.c b/plugin.c index f374e5c..7a8ada0 100644 --- a/plugin.c +++ b/plugin.c @@ -608,13 +608,11 @@ __declspec(dllexport) void WINAPI Command(const char* Cmd, const char* Param) { RECT rect; // get rect if (GetWindowRect(hWnd, &rect)) SetWindowPos(hWnd, NULL, rect.left+atoi(Param), rect.top, 0, 0, SWP_NOSIZE); } - lua_call_command(Cmd, Param); } else if(_stricmp(Cmd, "MOVEY") == 0) { if(sticky != 0) { RECT rect; // get rect if (GetWindowRect(hWnd, &rect)) SetWindowPos(hWnd, NULL, rect.left, rect.top+atoi(Param), 0, 0, SWP_NOSIZE); } - lua_call_command(Cmd, Param); } else lua_call_command(Cmd, Param); } diff --git a/plugin.lua b/plugin.lua index 8c94db8..c311728 100644 --- a/plugin.lua +++ b/plugin.lua @@ -4,7 +4,7 @@ event_count = 0 ---This function should be defined by the user in the script ----EXIT, CONFIGURE, SHOW, MINIMIZE, RESTORE commands are not sent to the script +---EXIT, CONFIGURE, SHOW, MINIMIZE, RESTORE, MOVEX, MOVEY commands are not sent to the script ---@param cmd string ---@param param string function command(cmd, param) end