Fixed bug from issue #40

This commit is contained in:
joten 2015-03-21 11:34:15 +01:00
parent 0480e1924d
commit 8a728fc785
4 changed files with 6 additions and 1 deletions

BIN
bugn.exe

Binary file not shown.

View file

@ -254,6 +254,7 @@ Config_redirectHotkey(key)
{
If (key = Config_hotkey_#%A_index%_key)
{
Debug_logMessage("DEBUG[1] Config_redirectHotkey: Found " Config_hotkey_#%A_index%_key " -> " Config_hotkey_#%A_index%_command, 1)
Main_evalCommand(Config_hotkey_#%A_index%_command)
Break
}

View file

@ -103,7 +103,10 @@ Main_evalCommand(command)
functionArguments := SubStr(command, i + 1, j - (i + 1))
StringReplace, functionArguments, functionArguments, %A_SPACE%, , All
StringSplit, functionArgument, functionArguments, `,
If (functionArgument0 < 2)
Debug_logMessage("DEBUG[1] Main_evalCommand: " functionName "(" functionArguments ")", 1)
If (functionArgument0 = 0)
%functionName%()
Else If (functionArgument0 = 1)
%functionName%(functionArguments)
Else If (functionArgument0 = 2)
%functionName%(functionArgument1, functionArgument2)

View file

@ -325,6 +325,7 @@ View_toggleFloatingWindow(wndId = 0) {
WinGet, wndId, ID, A
v := Monitor_#%Manager_aMonitor%_aView_#1
l := View_#%Manager_aMonitor%_#%v%_layout_#1
Debug_logMessage("DEBUG[2] View_toggleFloatingWindow; wndId: " . wndId, 2)
If (Config_layoutFunction_#%l% And InStr(Manager_managedWndIds, wndId ";")) {
Window_#%wndId%_isFloating := Not Window_#%wndId%_isFloating
View_arrange(Manager_aMonitor, v)