Ejemplo n.º 1
0
 private void StopButton_Click(object sender, EventArgs e)
 {
     timer1.Stop();
     timer2.Stop();
     LogOffTimer.Stop();
     SchoolIDTimer.Stop();
 }
Ejemplo n.º 2
0
        private void LogOffTimer_Tick(object sender, EventArgs e)
        {
            Win32.POINT p3 = new Win32.POINT();
            p3.x = Convert.ToInt16(LogOffX.Text); //x coordinate taken from the txtbox
            p3.y = Convert.ToInt16(LogOffY.Text); //y coordinate taken from the txtbox

            Win32.ClientToScreen(this.Handle, ref p3);
            Win32.SetCursorPos(p3.x, p3.y);

            DoMouseClick(p3.x, p3.y);
            LogOffTimer.Stop();
            var userSetDelay4 = SIDValue.Value;

            SchoolIDTimer.Interval = Convert.ToInt32(userSetDelay4) * 1000;
            SchoolIDTimer.Start();
        }