Skip to content

Commit

Permalink
Finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinujaya-Sandaruwan committed Nov 28, 2022
1 parent d426483 commit 3549a75
Show file tree
Hide file tree
Showing 1,087 changed files with 123,848 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
Binary file added 214580.ico
Binary file not shown.
Binary file added 214580.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Notes/after.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thanks for installing :)
1 change: 1 addition & 0 deletions Notes/before.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This software has been created to take and save screenshots automatically during DP Education videos
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# DP Auto Notes
This software automatically takes a screenshot of the note and stores it when the teacher leaves the screen.

| | |
|:----------:|:-------------:|
| ![Screenshot (6701)](https://user-images.githubusercontent.com/88492493/204164382-6bbf1ce4-d9e6-47a7-8f5e-b7fe32b7987f.png) | ![Screenshot (6702)](https://user-images.githubusercontent.com/88492493/204164385-4d89ee79-bfa2-4161-99dc-8540fb1f34a8.png) |
| Will take a Screensot | Will not Take a screenshot |


![image](https://user-images.githubusercontent.com/88492493/204164626-ee6c0439-f352-44d2-98d4-2a73edf35245.png)


## Download For Windows

<a href="https://github.com/Dinujaya-Sandaruwan/Auto-screenshots-for-DP-Education/releases/download/v1.0.0/DP.Auto.Notes.exe" rel="Download Software">![](https://user-images.githubusercontent.com/88492493/204165128-35c42e4e-11d9-45c1-afc0-4b82d8e26517.png)</a>



### Let's test the Software :-
https://www.youtube.com/watch?v=A4HjQ6viV0w&list=PLmLnnsAHQpTZi_k28hnX0L1Jbp1tSQc17&index=1&t=2784s


### Youtube Channel :-
https://www.youtube.com/@DPEducationALSubjects
31 changes: 31 additions & 0 deletions Screenshot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import pyautogui
from pynput.keyboard import Key, Controller
import time

keyboard = Controller()
taken = True
# print(taken)

# print(res)

while True:
res = pyautogui.locateOnScreen("image.png")
if res != None:
# print(taken)
if taken == True:
print("Screenshot Taken")

# Press and release -> Win + Print_Screen
keyboard.press(Key.cmd)
keyboard.press(Key.print_screen)
keyboard.release(Key.print_screen)
keyboard.release(Key.cmd)

taken = False
# print(taken)

# time.sleep(3)
else:
taken = True
# print(taken)
# time.sleep(0.100)
62 changes: 62 additions & 0 deletions Setup Compile Script.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "DP Auto Notes"
#define MyAppVersion "1.0"
#define MyAppPublisher "Dinujaya Sandaruwan"
#define MyAppURL "https://www.dinujaya.com/"
#define MyAppExeName "Screenshot.exe"
#define MyAppAssocName MyAppName + " File"
#define MyAppAssocExt ".dinu"
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{948A785A-F38F-4347-91CC-B6697FCCD99F}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
ChangesAssociations=yes
DisableProgramGroupPage=yes
InfoBeforeFile=I:\python\Auto screenshot Python\Notes\before.txt
InfoAfterFile=I:\python\Auto screenshot Python\Notes\after.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=I:\python\Auto screenshot Python\exe
OutputBaseFilename=DP Auto Notes
SetupIconFile=I:\python\Auto screenshot Python\214580.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "I:\python\Auto screenshot Python\Screenshot\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "I:\python\Auto screenshot Python\Screenshot\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Registry]
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: ""

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

Binary file added __pycache__/Screenshot.cpython-310.pyc
Binary file not shown.
Binary file added compiled code/MSVCP140.dll
Binary file not shown.
Binary file added compiled code/MSVCP140_1.dll
Binary file not shown.
Binary file added compiled code/PIL/_imaging.cp310-win_amd64.pyd
Binary file not shown.
Binary file added compiled code/PIL/_imagingft.cp310-win_amd64.pyd
Binary file not shown.
Binary file not shown.
Binary file added compiled code/PIL/_webp.cp310-win_amd64.pyd
Binary file not shown.
2 changes: 2 additions & 0 deletions compiled code/PyQt5/Qt5/bin/qt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Paths]
Prefix = ..
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions compiled code/PyQt5/Qt5/translations/qtbase_en.qm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<�d��!�`���
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added compiled code/PyQt5/QtCore.pyd
Binary file not shown.
Binary file added compiled code/PyQt5/QtGui.pyd
Binary file not shown.
Binary file added compiled code/PyQt5/QtWidgets.pyd
Binary file not shown.
Binary file added compiled code/PyQt5/sip.cp310-win_amd64.pyd
Binary file not shown.
Binary file added compiled code/Qt5Core.dll
Binary file not shown.
Binary file added compiled code/Qt5DBus.dll
Binary file not shown.
Binary file added compiled code/Qt5Gui.dll
Binary file not shown.
Binary file added compiled code/Qt5Network.dll
Binary file not shown.
Binary file added compiled code/Qt5Qml.dll
Binary file not shown.
Binary file added compiled code/Qt5QmlModels.dll
Binary file not shown.
Binary file added compiled code/Qt5Quick.dll
Binary file not shown.
Binary file added compiled code/Qt5Svg.dll
Binary file not shown.
Binary file added compiled code/Qt5WebSockets.dll
Binary file not shown.
Binary file added compiled code/Qt5Widgets.dll
Binary file not shown.
Binary file added compiled code/Screenshot.exe
Binary file not shown.
Binary file added compiled code/VCRUNTIME140.dll
Binary file not shown.
Binary file added compiled code/VCRUNTIME140_1.dll
Binary file not shown.
Binary file added compiled code/_asyncio.pyd
Binary file not shown.
Binary file added compiled code/_bz2.pyd
Binary file not shown.
Binary file added compiled code/_cffi_backend.cp310-win_amd64.pyd
Binary file not shown.
Binary file added compiled code/_ctypes.pyd
Binary file not shown.
Binary file added compiled code/_decimal.pyd
Binary file not shown.
Binary file added compiled code/_hashlib.pyd
Binary file not shown.
Binary file added compiled code/_lzma.pyd
Binary file not shown.
Binary file added compiled code/_multiprocessing.pyd
Binary file not shown.
Binary file added compiled code/_overlapped.pyd
Binary file not shown.
Binary file added compiled code/_queue.pyd
Binary file not shown.
Binary file added compiled code/_socket.pyd
Binary file not shown.
Binary file added compiled code/_ssl.pyd
Binary file not shown.
Binary file added compiled code/_tkinter.pyd
Binary file not shown.
Binary file added compiled code/_uuid.pyd
Binary file not shown.
Binary file added compiled code/_win32sysloader.pyd
Binary file not shown.
1 change: 1 addition & 0 deletions compiled code/altgraph-0.17.2.dist-info/INSTALLER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
18 changes: 18 additions & 0 deletions compiled code/altgraph-0.17.2.dist-info/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright (c) 2004 Istvan Albert unless otherwise noted.
Copyright (c) 2006-2010 Bob Ippolito
Copyright (2) 2010-2020 Ronald Oussoren, et. al.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
Loading

0 comments on commit 3549a75

Please sign in to comment.