This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#If MouseIsInvolumecontrolarea() and not WinActive("ahk_class TscShellContainerClass") | |
WheelUp::Send {LControl down}#{Right}{LControl up} | |
WheelDown::Send {LControl down}#{Left}{LControl up} | |
#If | |
MouseIsInvolumecontrolarea() | |
{ | |
CoordMode, Mouse, Screen | |
MouseGetPos, xpos, ypos | |
if (ypos > A_ScreenHeight-60 and xpos <= A_ScreenWidth-500) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq.Expressions; | |
public static class QueryableExtensions | |
{ | |
public static IQueryable<T> WhereIf<T>(this IQueryable<T> queryable, bool condition, Expression<Func<T, bool>> predicate) | |
{ | |
return condition ? queryable.Where(predicate) : queryable; | |
} | |
} |
OlderNewer