Skip to content

Commit

Permalink
修改错误
Browse files Browse the repository at this point in the history
  • Loading branch information
KanaHayama committed Nov 16, 2018
1 parent df8e3bd commit 6c8d825
Show file tree
Hide file tree
Showing 6 changed files with 746 additions and 657 deletions.
1,318 changes: 661 additions & 657 deletions 肝帝模拟 改/文档/使用说明 [备份] [181117-1].rtf

Large diffs are not rendered by default.

Binary file not shown.
26 changes: 26 additions & 0 deletions 肝帝模拟 改/辅助工具/延迟截图png/DelayCapturer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /usr/bin/env python3
# -*- coding:utf-8 -*-

from sys import argv, stderr
import os
from urllib import request
import time

def main():
port = argv[1] if len(argv) > 1 else None
delay = argv[2] if len(argv) > 2 else None
if port is None or delay is None:
port = input("Port:")
delay = input("Delay(s):")
for i in range(int(delay), 0 , -1):
print("count down: %i" % i)
time.sleep(1)

response = request.urlopen("http://localhost:%s/capture?format=png" % port)
filename = "Capture_" + time.strftime("%Y-%m-%d-%H_%M_%S",time.localtime(time.time())) + ".png"
with open(filename, "wb") as f:
f.write(response.read())
print("Save captured picture as %s" % filename)

if __name__ == "__main__":
main()
35 changes: 35 additions & 0 deletions 肝帝模拟 改/辅助工具/延迟截图png/DelayCapturer.pyproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>2243ebfa-0dec-4486-a4c6-d8f6009c8791</ProjectGuid>
<ProjectHome>.</ProjectHome>
<StartupFile>DelayCapturer.py</StartupFile>
<SearchPath>
</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>DelayCapturer</Name>
<RootNamespace>DelayCapturer</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<ItemGroup>
<Compile Include="DelayCapturer.py" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in
Visual Studio and specify your pre- and post-build commands in
the BeforeBuild and AfterBuild targets below. -->
<!--<Target Name="CoreCompile" />-->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
</Project>
23 changes: 23 additions & 0 deletions 肝帝模拟 改/辅助工具/延迟截图png/DelayCapturer.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2019
MinimumVisualStudioVersion = 10.0.40219.1
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "DelayCapturer", "DelayCapturer.pyproj", "{2243EBFA-0DEC-4486-A4C6-D8F6009C8791}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2243EBFA-0DEC-4486-A4C6-D8F6009C8791}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2243EBFA-0DEC-4486-A4C6-D8F6009C8791}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2EE26606-BF3D-4844-84F5-1FEC7F584FC0}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\DelayCapturer.py 5277 3

0 comments on commit 6c8d825

Please sign in to comment.