private void DisplayMouseClick(MouseButtons mouseButton, int xPos, int yPos) { int xOut = xPos; int yOut = yPos; if (NormalizeMouseCoords) { xOut = ActionMouse.NormalizeX(xPos); yOut = ActionMouse.NormalizeY(yPos); } string message; if (RawKeyNames) { message = String.Format("-click({0}, {1})", xOut, yOut); } else { message = String.Format("-click({0:n0} {1:n0})", xOut, yOut); } AppendText(" " + mouseButton.ToString() + message); toolStripMousePosLastClick.Text = String.Format("Last click: ({0:n0}, {1:n0})", xOut, yOut); }
private void DisplayMouseMove(int xPos, int yPos) { int xOut = xPos; int yOut = yPos; if (NormalizeMouseCoords) { xOut = ActionMouse.NormalizeX(xPos); yOut = ActionMouse.NormalizeY(yPos); } toolStripMousePos.Text = String.Format("Mouse: ({0:n0}, {1:n0})", xOut, yOut); }