This is a tool to automatically cover a rectangle on the screen with repetitive clicking. First intentional use was against rollcall facility of wxb programs. Just a little junk, actually. Uses WinAPI's SendInput() as the core of things.
How to build:
What each file does: "jumpstart""rollcall" are quite similar. They are the core programs of the toolset. They cover a screen rectangle with mouse clickings by moving the mouse with SetCursorPos, and simulates clicking with SendInput(). The configuration variables are in click.h. The actual clicking function is there, too. Note that these two executables share the same source and differs in compilation by a preprocessor switch. "Rollcall" waits for 18s before starting the work. "Jumpstart" waits for 13s. Each have a functionality called "development run", where the clicking will be done once. "Jumpstart" is more suitable for serious use.
report.exe reports the current mouse position. This is used to gather information and configure the program.
killclass.exe kills iMeeting.exe forcefully, in case it misbehaves.
term.exe terminates the core programs. It should be on the taskbar during class, so you can use Win+
How to configure: The code assumes that the rectangle is (190, 250) to (1070, 720). This should work for a wxb session on a 1366768 screen with chatting bar visible and toolbars hidden. Assumed size for the "confirm" button is 20020 (horizontal * vertical). Assumed time for a rollcall confirmation to time out is 20s. But we use 10s to make sure that we don't miss the clicking when program first starts. Assumed minimum time between clicks is 100ms. Otherwise, it might make the system overloaded. You can make changes to those variables easily, except for 100ms. Adjust the variables in click.h to suit your needs.
How to use:
Thanks to these wonderful people around me, who helped me come up with this idea. Thanks to the developers of the winapi, who provides me with such a rich set of functionality to use. Thanks to helpful people on CSDN, who helped me out with the mouse event simulation.
This is free software, licensed under GPL-3.0.