-
C#自动更新服务(本地服务安装)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Common.WinService;using Common.Log;using System.Threading;using Common.Net;using System.Text.RegularExpressions;namespace Collection.AutoRunner{ //获取学生信息 public class Service_Update_Data : IWindowsService { private ILogWriter _logWriter = null; private const string logCategory = "Services.Info"; private string logInfoSource = "Update_Data"; private const string logErrorCategory = "Services.Error"; private const string logErrorSource = "Update_Data_Error"; private bool BeStop = true; private System.Timers.Timer timer = null; public void Start(Common.Log.ILogWriter logWriter, string gameCode) { gameCode = gameCode.ToUpper(); logInfoSource = gameCode; _logWriter = logWriter; BeStop = false; StartRequestData(); } int stata = 0; private void StartRequestData() { try { #region 配置 //时间频率 var UpdateStudentSpan = ServiceHelper.GetInterval("UpdateData"); //更新学生开始时间 var studentbegintime = ServiceHelper.GetInterval("StudentBeginTime"); //更新学生结束时间 var studentendtime = ServiceHelper.GetInterval("StudentEndTime"); //是否更新学生基本信息:true为更新 false为不更新 var IsUpdateStudnet =Convert.ToBoolean(ServiceHelper.GetSystemConfig("IsUpdateStudnet")); #endregion timer = ServiceHelper.ExcuteByTimer(UpdateStudentSpan, () => { int timeHour = DateTime.Now.Hour; if (timeHour == 3) stata = 0; #region 更新学生基本信息 if (studentbegintime
- 2015-03-11下载
- 积分:1
-
MainWindow
main window for finger print
- 2009-10-08 13:39:33下载
- 积分:1
-
57408
获取系统进程信息源码,程序结合易语言应用接口支持库,调用API函数实现屏幕上找图。(Get system processes information source , combined with easy language application program interface support library , call the API function to find a diagram on the screen.)
- 2016-11-02 14:48:12下载
- 积分:1
-
Demo
相当实用的windows设备管理程序,windows注册表相关信息(Very useful windows device manager, windows registry information)
- 2012-08-07 20:15:08下载
- 积分:1
-
lua与c++互相调用的封装
【实例简介】
方便lua调用c 类及绑定类引用的封装
- 2021-08-06 00:31:07下载
- 积分:1
-
Snow
调用API 桌面飘雪,圣诞雪花、、、、、、、、、、、、、、、、、、、、、、、
- 2013-11-09 20:27:40下载
- 积分:1
-
tqe
根据图片格式定义,实现快速读取图的分辨率大小(According to the image format definition, achieve rapid read figure resolution size)
- 2017-07-13 00:45:46下载
- 积分:1
-
Virtual-Desktop
多虚拟桌面的实现!包括了多个虚拟桌面的管理,添加新的虚拟桌面等功能(Implementation of multiple virtual desktops! Including a number of virtual desktop management, adding new features such as virtual desktops)
- 2011-09-28 23:52:43下载
- 积分:1
-
speech
说明: 语音识别系统,是在vc平台编写的,仅供参考(Speech recognition system, for reference only)
- 2009-08-19 19:27:39下载
- 积分:1
-
条码扫描器接口编程
目前的条形码扫描器有点类似外接键盘(其实从消息传送上它就相当于一个键盘),把输入焦点定位到可输入的控件上,一扫描相应的条形码信息就输入到文本框中去了,但是如果没有输入焦点,或另一个不相干的程序获得输入焦点,那就有点乱套了。我想实现的是,不管什么情况,只要扫描器一工作,我的程序就能自动激活,并能获得当前输入的条形码信息。 实现思路:我用的是litele牌的USB口的红外条形码扫描器,仔细分析了一下,扫描成功后,以键盘按键消息的形式把条形码输入信息通知给系统。这样通过键盘钩子就可以方便的获得该信息了。但是,怎样区分信息是键盘还是条形码输入的哪?很简单,条形码扫描器在很短的时间内输入了至少3个字符以上信息,并且以“回车”作为结束字符,在这种思想指引下,很完美的实现了预定功能。
- 2014-03-27下载
- 积分:1