我可以在 iPhone 上记录时间戳而不通过锁屏吗?

发布于 2024-09-16 11:42:54 字数 581 浏览 0 评论 0原文

我想使用我的 iPhone 在特定事件发生时(例如每次我咳嗽时)轻松创建时间戳。目标是建立一个日志文件,以便稍后分析趋势。

由于我的 Exchange 策略,我的 iPhone 被密码锁定,因此如果我要创建传统应用程序,执行此操作的步骤如下:

  1. 按主页按钮
  2. 滑动解锁
  3. 输入密码
  4. (如果适用) 关闭已打开的任何应用程序
  5. 导航到我的应用 程序应用程序在主屏幕和启动它。当应用程序启动时,它会记录一个时间戳。

这将一个非常简单的只写操作变成了一项有点烦人的任务,我可能会放弃,因为它可能每天发生数十次。有办法绕过这些步骤吗?

这是我想出的一个技巧:

  1. 按主页按钮
  2. 同时按主页按钮和睡眠/唤醒按钮,截取屏幕截图

每次执行此操作时,都会在我的照片库中创建一张图像。几周后,我将(数百张)图片传输到我的电脑,并运行脚本从屏幕截图的元数据中提取时间戳并构建日志。

还有其他方法可以做到这一点,可能使用语音命令、硬件按钮、日志文件或其他我可能不知道的东西?

编辑:iPhone 3GS、iOS 4。

I want to use my iPhone to very easily create a timestamp whenever a certain event occurs (e.g. every time I cough). The goal is to build up a log file that can be analyzed later for trends.

My iPhone is passcode locked because of my Exchange policy, so the steps to do this if I were to create a conventional app are as follows:

  1. Press home buttom
  2. Slide to unlock
  3. Enter passcode
  4. (If applicable) Close whatever app is already open
  5. Navigate to my app in the home screen & launch it. When the app is launched, it records a timestamp.

This turns a very simple write-only action into a somewhat annoying task I will probably abandon, given that it may occur dozens of times a day. Is there a way around these steps?

Here's a hack I've come up with:

  1. Press the home button
  2. Press the home button and sleep/wake button simultaneously, taking a screenshot

Each time I do this, an image is created in my photo library. After a couple of weeks, I transfer the (hundreds of) pictures to my PC, and run a script to extract the timestamps from the screenshots' metadata and build the log.

Any other ways of doing this, possibly using Voice Commands, hardware buttons, log files, or something else I might not be aware of?

Edit: iPhone 3GS, iOS 4.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欲拥i 2024-09-23 11:42:54

iOS4.0?这是一个需要在后台运行媒体播放器应用程序的想法。制作一个像 Pandora 这样的应用程序,或者一个更简单的音频播放器应用程序,它会持续播放静音(不断用零填充音频队列缓冲区等),并且将继续在后台播放这种“音乐”。让它注册音量变化通知。当您按下任一音量按钮时记录时间戳(必须小心交替,以免达到最大或零音量)。

iOS4.0? Here's one idea requiring a media player app running in the background. Make an app like Pandora, or a simpler audio player app that continually plays silence (keeps filling audio queue buffers with zeros, etc.), and that will continue to play this "music" in the background. Have it register for volume change notifications. Record a timestamp when you press one of the volume buttons (have to be careful to alternate so you don't hit the max or zero volume).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文