Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
artem78 committed Jan 6, 2021
2 parents 63f0116 + 14d081d commit 8184daf
Show file tree
Hide file tree
Showing 10 changed files with 566 additions and 186 deletions.
3 changes: 2 additions & 1 deletion docs/README-ru.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Auto Screenshot
Auto Screenshot
===============

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/artem78/AutoScreenshot?style=plastic)](https://github.com/artem78/AutoScreenshot/releases/latest)   [![GitHub license](https://img.shields.io/github/license/artem78/AutoScreenshot?style=plastic)](https://github.com/artem78/AutoScreenshot/blob/master/LICENSE.txt)
Expand All @@ -14,6 +14,7 @@
* Возможность приостановки захвата при бездействии пользователя (определяется по движениям мыши и нажатиям клавиш)
* Настраиваемые имена выходных файлов с использованием переменных (дата, время, название компьютера/пользователя) и возможностью группировки по папкам (например, по дням или месяцам)
* Возможность автоматического запуска вместе с Windows
* Захват с нескольких экранов

## Снимки экрана
![Основное окно программы](images/main_window_ru.png "Основное окно программы")
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Russian](images/russian_icon.png) RU](README-ru.md "Russian")
[![Russian](images/russian_icon.png) RU](README-ru.md "Russian")

-------------------------

Expand All @@ -16,6 +16,7 @@ Auto Screenshot
* Pause capture when user is inactive (depending on mouse moves and keyboard events)
* Customizable output filenames with variables (date, time, user, computer name) and ability of grouping by folders (for example: by day or month)
* Automatic capture can be started on Windows startup
* Multiple screens support

## Screenshots
![Main program window](images/main_window.png "Main program window")
Expand Down
Binary file modified lang/en.ini
Binary file not shown.
Binary file modified lang/ru.ini
Binary file not shown.
15 changes: 11 additions & 4 deletions uAbout.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ object AboutForm: TAboutForm
Top = 124
BorderStyle = bsDialog
Caption = 'About'
ClientHeight = 191
ClientHeight = 209
ClientWidth = 481
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Expand All @@ -16,7 +16,7 @@ object AboutForm: TAboutForm
OnCreate = FormCreate
DesignSize = (
481
191)
209)
PixelsPerInch = 96
TextHeight = 15
object ProgramNameLabel: TTntLabel
Expand Down Expand Up @@ -48,7 +48,7 @@ object AboutForm: TAboutForm
end
object LinkLabel: TTntLabel
Left = 104
Top = 112
Top = 136
Width = 25
Height = 15
Cursor = crHandPoint
Expand All @@ -74,9 +74,16 @@ object AboutForm: TAboutForm
Height = 15
Caption = 'Build date: XX.XX.XXXX'
end
object LocalizationAuthorLabel: TTntLabel
Left = 104
Top = 112
Width = 80
Height = 15
Caption = 'Localization: ...'
end
object CloseButton: TTntButton
Left = 192
Top = 152
Top = 170
Width = 97
Height = 25
Anchors = [akLeft, akBottom]
Expand Down
21 changes: 16 additions & 5 deletions uAbout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ TAboutForm = class(TTntForm)
LinkLabel: TTntLabel;
Logo: TTntImage;
BuildDateLabel: TTntLabel;
LocalizationAuthorLabel: TTntLabel;
procedure CloseButtonClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure LinkLabelClick(Sender: TObject);
Expand Down Expand Up @@ -46,14 +47,24 @@ procedure TAboutForm.FormCreate(Sender: TObject);
BuildDate: TDateTime;
BuildDateStr: WideString;
begin
Caption := I18N('About');
Caption := Localizer.I18N('About');

Logo.Picture.Icon.Handle := LoadImage(HInstance, 'MAINICON', IMAGE_ICON,
64, 64, LR_DEFAULTCOLOR);

ProgramNameLabel.Caption := TntApplication.Title;
VersionLabel.Caption := I18N('Version') + ': ' + GetProgramVersionStr(True);
AuthorLabel.Caption := I18N('Author') + ': ' + 'Artem Demin (artem78) <[email protected]>';
VersionLabel.Caption := Localizer.I18N('Version') + ': ' + GetProgramVersionStr(True);
AuthorLabel.Caption := Localizer.I18N('Author') + ': ' + 'Artem Demin (artem78) <[email protected]>';
with Localizer.LanguageInfo do
begin
if (Code <> 'en') and (Author <> '') then
begin
LocalizationAuthorLabel.Caption := Localizer.I18N('LocalizationAuthor') + ': ' + Author;
LocalizationAuthorLabel.Show;
end
else
LocalizationAuthorLabel.Hide;
end;
LinkLabel.Caption := ProjectGitHubURL;

BuildDate := GetLinkerTimeStamp;
Expand All @@ -64,9 +75,9 @@ procedure TAboutForm.FormCreate(Sender: TObject);
BuildDateStr := 'unknown'
else
BuildDateStr := FormatDateTime({'dddddd tt'} 'dddddd', BuildDate);
BuildDateLabel.Caption := I18N('BuildDate') + ': ' + BuildDateStr;
BuildDateLabel.Caption := Localizer.I18N('BuildDate') + ': ' + BuildDateStr;

CloseButton.Caption := I18N('Close');
CloseButton.Caption := Localizer.I18N('Close');
end;

procedure TAboutForm.LinkLabelClick(Sender: TObject);
Expand Down
77 changes: 50 additions & 27 deletions uAutoScreen.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ object MainForm: TMainForm
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = 'Auto Screenshot'
ClientHeight = 328
ClientHeight = 363
ClientWidth = 633
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
Menu = MainMenu
OldCreateOrder = False
Position = poScreenCenter
OnCreate = FormCreate
OnDestroy = FormDestroy
DesignSize = (
633
363)
PixelsPerInch = 96
TextHeight = 15
object OutputDirLabel: TTntLabel
Expand Down Expand Up @@ -73,6 +77,14 @@ object MainForm: TMainForm
Alignment = taRightJustify
Caption = 'Color depth:'
end
object MonitorLabel: TTntLabel
Left = 123
Top = 236
Width = 78
Height = 15
Alignment = taRightJustify
Caption = 'Used monitor:'
end
object OutputDirEdit: TTntEdit
Left = 208
Top = 20
Expand All @@ -92,11 +104,12 @@ object MainForm: TMainForm
end
object TakeScreenshotButton: TTntButton
Left = 32
Top = 276
Top = 311
Width = 121
Height = 25
Anchors = [akLeft, akBottom]
Caption = 'Take screenshot'
TabOrder = 14
TabOrder = 15
OnClick = TakeScreenshotButtonClick
end
object JPEGQualitySpinEdit: TSpinEdit
Expand Down Expand Up @@ -132,18 +145,6 @@ object MainForm: TMainForm
TabOrder = 10
OnClick = StopWhenInactiveCheckBoxClick
end
object LanguageRadioGroup: TTntRadioGroup
Left = 520
Top = 160
Width = 97
Height = 57
Caption = 'Language'
Items.Strings = (
'English'
#1056#1091#1089#1089#1082#1080#1081)
TabOrder = 13
OnClick = LanguageRadioGroupClick
end
object ImageFormatComboBox: TTntComboBox
Left = 208
Top = 104
Expand All @@ -158,11 +159,12 @@ object MainForm: TMainForm
end
object AutoCaptureControlGroup: TTntGroupBox
Left = 208
Top = 248
Top = 283
Width = 281
Height = 65
Anchors = [akLeft, akBottom]
Caption = 'Automatic capture'
TabOrder = 17
TabOrder = 16
object StartAutoCaptureButton: TTntBitBtn
Left = 24
Top = 24
Expand All @@ -186,15 +188,6 @@ object MainForm: TMainForm
Spacing = 8
end
end
object AboutButton: TTntButton
Left = 520
Top = 272
Width = 97
Height = 25
Caption = 'About'
TabOrder = 16
OnClick = AboutButtonClick
end
object StartCaptureOnStartUpCheckBox: TTntCheckBox
Left = 208
Top = 160
Expand Down Expand Up @@ -275,9 +268,22 @@ object MainForm: TMainForm
Width = 265
Height = 17
Caption = 'Run application at system startup'
TabOrder = 15
TabOrder = 13
OnClick = AutoRunCheckBoxClick
end
object MonitorComboBox: TTntComboBox
Left = 208
Top = 232
Width = 265
Height = 23
Style = csDropDownList
ItemHeight = 15
TabOrder = 14
OnChange = MonitorComboBoxChange
Items.Strings = (
''
'')
end
object Timer: TTimer
Enabled = False
OnTimer = TimerTimer
Expand Down Expand Up @@ -330,4 +336,21 @@ object MainForm: TMainForm
Left = 16
Top = 168
end
object MainMenu: TTntMainMenu
Left = 40
Top = 40
object OptionsSubMenu: TTntMenuItem
Caption = 'Options'
object LanguageSubMenu: TTntMenuItem
Caption = 'Language'
end
end
object HelpSubMenu: TTntMenuItem
Caption = 'Help'
object AboutMenuItem: TTntMenuItem
Caption = 'About...'
OnClick = AboutMenuItemClick
end
end
end
end
Loading

0 comments on commit 8184daf

Please sign in to comment.