Scripts discussion (1)
- Author
- Message
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
se7h
Уфф, вроде, всё: viewtopic.php?p=9924#p9924.
Но кое-что и правда не совсем дописано, кое-что можно улучшить, а что-то – и вовсе переписать, но пока нет особой необходимости.
Ну вот, ограничение на длину. Придется делить на части.
Уфф, вроде, всё: viewtopic.php?p=9924#p9924.
Но кое-что и правда не совсем дописано, кое-что можно улучшить, а что-то – и вовсе переписать, но пока нет особой необходимости.
Ну вот, ограничение на длину. Придется делить на части.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
I changed the name of the script from SelectRange.js to SelectRangeText.js.
I had not noticed before, the script SelectRange.js was placed by Instructor.
Both scripts have different functionality.
I'm sorry everyone for the confusion.
I had not noticed before, the script SelectRange.js was placed by Instructor.
Both scripts have different functionality.
I'm sorry everyone for the confusion.
-
Offline
- Posts: 2248
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
FeyFre, thank you for the book ECMA (readings for several months
).
But I do not see the JS function, that returns a short date.
I have such settings in the system:
short date format: "dd-MM-yyyy",
long date format: "dd MMMM yyyy".
Date.toLocaleDateString() method returns a long date. You can convert to using the functions getDate(), getMonth(), getFullYear(). But I do not know, how to read from the system short date format.

But I do not see the JS function, that returns a short date.
I have such settings in the system:
short date format: "dd-MM-yyyy",
long date format: "dd MMMM yyyy".
Date.toLocaleDateString() method returns a long date. You can convert to using the functions getDate(), getMonth(), getFullYear(). But I do not know, how to read from the system short date format.
-
Offline
- Posts: 2248
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
convertEscapes.js 0.1.1 - 2010-11-16
Добавил восстановление обратных слешей внутри строковых литералов.
Добавил восстановление обратных слешей внутри строковых литералов.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
The following code crashes AkelPad.
This happens when executing the function:
AkelPad.MemCopy(lpBuffer + 6, 0, 4);
But not always. That is why I gave the count to 1000. This gives confidence that the error occurs.
I checked on two computers with Windows XP.
And where is the bug?
Code: Select all
var nBufferSize = 8;
var lpBuffer;
var i;
for (i = 0; i < 1000; ++i)
{
lpBuffer = AkelPad.MemAlloc(nBufferSize);
AkelPad.MemCopy(lpBuffer, 0, 4); //DT_WORD
AkelPad.MemCopy(lpBuffer + 2, 0, 4);
AkelPad.MemCopy(lpBuffer + 4, 0, 4);
AkelPad.MemCopy(lpBuffer + 6, 0, 4);
AkelPad.MemFree(lpBuffer);
}
AkelPad.MemCopy(lpBuffer + 6, 0, 4);
But not always. That is why I gave the count to 1000. This gives confidence that the error occurs.
I checked on two computers with Windows XP.
And where is the bug?
-
Offline
- Posts: 2248
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
-
Offline
- Posts: 767
- Joined: Mon Sep 28, 2009 10:03 am
- Location: Minsk, Belarus
Instructor
реально доработать ChmKeyword.js так, чтобы можно было одновременно открывать несколько окон справки, то есть, фактически, была возможность выполнения других скриптов при открытом CHM-файле?
реально доработать ChmKeyword.js так, чтобы можно было одновременно открывать несколько окон справки, то есть, фактически, была возможность выполнения других скриптов при открытом CHM-файле?