src/VirtualAutoClicker/AutoClicker.cs
/// <summary>
/// If all neccsary AutoClicker properties are set, send click message to the set process
/// </summary>
If all neccsary AutoClicker properties are set, send click message to the set process
If all neccsary AutoClicker properties are set send click message to the set process
private void Click()
        {
            if (string.IsNullOrWhiteSpace(ProcessName) || !Active || Coordinates is null || CurrentProcess is null)
            {
                return;
            }
            var lParam = (Coordinates.Y << 16) + Coordinates.X;
            SendMessage(
                CurrentProcess.MainWindowHandle,
                Buttons.WmLbuttondown,
                0,
                lParam
            );
            SendMessage(
                CurrentProcess.MainWindowHandle,
                Buttons.WmLbuttonup,
                0,
                lParam
            );
        }
private void Click ( ) { if ( string . IsNullOrWhiteSpace ( ProcessName ) || ! Active || Coordinates is null || CurrentProcess is null ) { return ; } var lParam = ( Coordinates . Y << 16 ) + Coordinates . X ; SendMessage ( CurrentProcess . MainWindowHandle , Buttons . WmLbuttondown , 0 , lParam ) ; SendMessage ( CurrentProcess . MainWindowHandle , Buttons . WmLbuttonup , 0 , lParam ) ; }
If all neccsary AutoClicker properties are set, send click message to the set process
If all neccsary AutoClicker properties are set send click message to the set process