![]() ![]() * Windows sees monitor names as \\.\DISPLAY1, \\.\DISPLAY2, \\.\DISPLAY3, etc. * Checks if snip was completed on another monitor besides the main one ", "Random Mouse Clicker ") ĬlickUntilAutomaticallyEnded( duration, stopwatch) "or when your user defined hotkeys are pressed. Text ", when CTRL WIN ESC is pressed, " ShowBalloonMessage( "Program will end after " numericDuration. Checked)ĭecimal duration = checkClickDuration( comboBoxDuration, numericDuration. Minimized Įlse if ( radioEndAutomatically. ShowBalloonMessage( "Press CTRL WIN ESC or your user defined hotkeys to exit/stop the program. * The checkClickDuration method will return 0 if being automatically ended by a certain number of clicks, rather than a numeric amount of time * If the duration is not zero, will begin clicking * Starts a stopwatch to keep track of time * For automatic, checks the duration from the combo box * Minimizes form so window it's not in the way * For manual, program will only stop when the user presses a exit hotkey * Returns the function that should be ran Text = "millisecond(s) ")Įlse if ( comboBox. Private void checkClickInterval( ComboBox comboBox, decimal min, decimal max) ![]() * Stores minimum and maximum value in an array called minMax * Checks combo box text field to set the time getRectangleHeight() ĬheckClickInterval( comboBoxClickEvery, numericClickEveryMin. Private void startButton_Click( object sender, EventArgs e) * runManualOrAutomatic runs to see how the program will end * Checks mouse speed function needed and stores the method to a variable * checkClickInterval runs to see the time between clicks * x2 and y2 represents the bottom right coordinate * x1 and y1 represents the upper left coordinate * When the start button is clicked, stores the area's rectangle coordinates Private void drawAreaButton_Click( object sender, EventArgs e) ![]() * Starts snipping when draw area is clicked SetUserHotKey( userStartStopHotkey, ( String) Settings. SetUserHotKey( userExitHotkey, ( String) Settings. Private void Form1_Load( object sender, EventArgs e) * Once form is loaded, registers all hot keys * Sets default indices of combo boxes so that they aren't blank * Initializes the MainForm and stores width and height information Public Hotkey userStartStopHotkey = new Hotkey() Public Hotkey userExitHotkey = new Hotkey() Private readonly Hotkey defaultHotkey = new Hotkey() Random_Mouse_Clicker Module MainForm Class Form1_Load Method drawAreaButton_Click Method startButton_Click Method checkClickInterval Method checkMouseSpeed Method runManualOrAutomatic Method checkMultiMonitor Method checkClickDuration Method clickUntilManuallyEnded Method clickUntilAutomaticallyEnded Method randomizeLocationAndClick Method randomizeLocationAndClickEachArea Method clickAndWait Method checkForDividedAreas Method clickUntilFinished Method clickAllAreas Method endManuallyRadio_CheckedChanged Method endAutomaticallyRadio_CheckedChanged Method setAutomaticDuration Method tabControl1_SelectedIndexChanged Method resizeFormToDefault Method divideIntoEqualAreasCheckbox_CheckedChanged Method enableDividedAreas Method forceAutomaticEnd Method setBackToManualEnd Method numericDivideIntoEqualAreas_ValueChanged Method divideIntoEqualAreasDisplay Method numericClickEachArea_ValueChanged Method updateTotalClicksDisplay Method ShowBalloonMessage Method linkLabelCustomize_LinkClicked Method setDefaultHotkey Method setUserHotKey Method registerHotkey Method unregisterHotkey Method Hk_Start_Stop_OnPressed Method Hk_Exit_OnPressed Method menuExit_Click_1 Method Exit Method ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |