-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsaveStoreTime.js
More file actions
24 lines (19 loc) · 880 Bytes
/
saveStoreTime.js
File metadata and controls
24 lines (19 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// https://akelpad.sourceforge.net/forum/viewtopic.php?p=10403#p10403
// https://infocatcher.ucoz.net/js/akelpad_scripts/saveStoreTime.js
// https://github.com/Infocatcher/AkelPad_scripts/blob/master/saveStoreTime.js
// (c) Infocatcher 2010-2011, 2014
// Version: 0.1.4 - 2014-03-03
// Author: Infocatcher
//// Save file and don't update modification time
// Based on Instructor's code: https://akelpad.sourceforge.net/forum/viewtopic.php?p=4222#p4222
// Usage:
// Call("Scripts::Main", 1, "saveStoreTime.js")
var hMainWnd = AkelPad.GetMainWnd();
if(hMainWnd) {
var saveTime = AkelPad.SendMessage(hMainWnd, 1222 /*AKD_GETMAININFO*/, 148 /*MI_SAVETIME*/, 0);
if(!saveTime)
AkelPad.Command(4252 /*IDM_OPTIONS_SAVETIME*/);
AkelPad.Command(4105 /*IDM_FILE_SAVE*/);
if(!saveTime)
AkelPad.SendMessage(hMainWnd, 1219 /*AKD_SETMAININFO*/, 148 /*MIS_SAVETIME*/, saveTime);
}