Coder Social home page Coder Social logo

apptime's Introduction

时间去哪儿了?

忙碌的一天匆匆而过,时间是如何分配的?是否需要管控?

试试这个吧

功能:记录使用时间

每个应用和窗口的使用时间精确到秒。

功能:回溯桌面

查看过往的桌面图像(可通过配置关闭)

功能:分类管理

为应用或窗口加上标签,按类别统计。

=>

使用方法

1、下载Release.zip,解压到任意目录;

2、打开AppTime.exe;

3、注意右下角托盘图标。

升级注意

如需升级老版本的AppTime,请解压覆盖到老版本目录,但请不要覆盖data.db文件。

二次开发参考

开发环境Visual Studio 2019,.NET Framework 4.8。(其实不必须这么高版本,可以自行尝试降低)

发布时请把源码里的webui目录复制到exe所在目录。

TODO List(欢迎朋友们一起完善)

1、支持多屏;

2、打开界面需要密码,截图、图标以及数据库用密码加密;

3、记录离开、屏保、锁屏等特殊情况的时间;

4、使用更现代的方式重构Web UI;

5、允许用户调整时间比例的分母为总时间或开机时间;

6、改进截图存取性能,延迟Windows关机直到截图保存完成;

7、预置常用标签,常见程序默认标签。

apptime's People

Contributors

dependabot[bot] avatar jimenezli avatar mixterjim avatar newdraw avatar weingxing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apptime's Issues

增加退出密码功能

用于未成年人电脑软件使用时长管控,需要退出密码的功能,同样有这个需求的请☝

启动程序后一会就闪退

电脑环境: Windows 11, version 22H2
我希望设置一下程序开机自启, 动了下任务计划程序库(按照https://zhuanlan.zhihu.com/p/113767050的方法), 但是之后发现程序出现闪退的问题:
我运行程序之后, 右下角出现图标, 但是我无法点击这个图标出现客户端, 并且几秒后图标消失.
计算机管理-日志中有两个报错
报错1: 事件1026 .NET runtime
应用程序: AppTime.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.Data.SQLite.SQLiteException
在 System.Data.SQLite.SQLite3.Prepare(System.Data.SQLite.SQLiteConnection, System.String, System.Data.SQLite.SQLiteStatement, UInt32, System.String ByRef)
在 System.Data.SQLite.SQLiteCommand.BuildNextCommand()
在 System.Data.SQLite.SQLiteDataReader.NextResult()
在 System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand, System.Data.CommandBehavior)
在 System.Data.SQLite.SQLiteCommand.ExecuteReader(System.Data.CommandBehavior)
在 System.Data.Common.DbDataAdapter.FillInternal(System.Data.DataSet, System.Data.DataTable[], Int32, Int32, System.String, System.Data.IDbCommand, System.Data.CommandBehavior)
在 System.Data.Common.DbDataAdapter.Fill(System.Data.DataTable[], Int32, Int32, System.Data.IDbCommand, System.Data.CommandBehavior)
在 System.Data.Common.DbDataAdapter.Fill(System.Data.DataTable)
在 AppTime.DB.b__9_0(System.Data.Common.DbCommand)
在 AppTime.DB.execute[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`2<System.Data.Common.DbCommand,System.__Canon>, System.String, System.Object[])
在 AppTime.DB.ExecuteTable(System.String, System.Object[])
在 AppTime.DB.ExecuteDynamic(System.String, System.Object[])
在 AppTime.Recorder.GetApp(System.Diagnostics.Process)
在 AppTime.Recorder.GetWin(System.Diagnostics.Process, System.String)
在 AppTime.Recorder.RecorderThreadProc()
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Threading.ThreadHelper.ThreadStart()

报错2: 事件1000 程序崩溃
错误应用程序名称: AppTime.exe,版本: 1.0.0.0,时间戳: 0x5f62d348
错误模块名称: KERNELBASE.dll,版本: 10.0.22621.2715,时间戳: 0x10f6a783
异常代码: 0xe0434352
错误偏移量: 0x000000000006565c
错误进程 ID: 0x0x1FFC
错误应用程序启动时间: 0x0x1DA1AFFBB514984
错误应用程序路径: xxxxxxxx\AppTime.exe (xxxxx为应用根目录位置)
错误模块路径: C:\WINDOWS\System32\KERNELBASE.dll
报告 ID: a84964df-ddcc-4a9f-9dbf-91e402e9a476
错误程序包全名:
错误程序包相对应用程序 ID:

连续开启的第二天,会崩溃,需要手动删除images才会恢复

System.IO.IOException
HResult=0x80070091
Message=目录不是空的。

Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at AppTime.Recorder.Screenshot(DateTime now, App lastApp)
at AppTime.Recorder.RecorderThreadProc()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.