 				WinSet, Transparent, % (abs(100-TransparencyPercent)/100)*255 , %con%
 				;Winset, AlwaysOnTop, On, %con%
 			cmd_w_fix:=cw_w
-			CMD_Height-=10
+			xC_height-=10
 		} else if (InStr(Console_Mode,"mintty")) {
 			con=ahk_class mintty
 			if (!FileExist(mintty_path))

			
			;when qonsole is at the bottom, the action to hide it is the same as to show it when we're at the top, which is to slide it upward
			if (BottomPlaced)
				WinSlideUpExp(Con,Delay,speed,A_ScreenHeight-CMD_Height,dx)
			else
				WinSlideDownExp(Con,Delay,speed, (0+(Console_2_Mode) ? 0 : -2),dx)
		}

			__wwwwvar:=(__wwwwvar)-(__wwzh)
			;winfade("ahk_id " hGuiBGDarken,GuiBGDarken_Max,GuiBGDarken_Increment) ;fade in
			if (BottomPlaced)
				WinSlideUpExp(Con,Delay,speed,A_ScreenHeight-xC_height,dx)
			else
				WinSlideDownExp(Con,Delay,speed, __wwwwvar,dx)
		}
