QE 3.5c minor modification with added Date and Time.

Started by hutch--, May 23, 2008, 04:22:49 AM

Previous topic - Next topic

hutch--

I have just added to QE the capacity to run a QE script from the command line. It is currently an unpublished capacity while it is experimental and if it proves reliable, it will be documented.

It uses the notation drv:\> qeditor /script:yourscript.qsc

It requires the normal path considerations so that if you have a script in the \masm32 directory you would specify the correct path to it after the /script: option.

Any feedback would be welcome on this capacity.

*******************************
Later version with date and time on Edit menu below.

*******************************
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

herge


Hi hutch-:

Could we add Tedd's Today's Date plug in to a
later release.

Thanks.
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

herge


Hi hutch-:

I can't find the Project button
for qeditor(3.5c).
I think we are going need it.

Thanks.
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

hutch--

Try this slight mod, I had the code for both date and time in another editor so I just pinched it and added it to QE.

RE the project menu and so on, its contained in the qeditor.ini file in masm32. QE has programmable menus that are explained in the help file. Either overwrite the version of QE in masm32 with the new version or if you want to start from scratch create a new ini file with all of your own settings.

Let me know if the dual date time format is what you were after and works correctly.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

herge


Hi hutch-:

We have got the time okay,
but we don't have the date.

Regards: herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

hutch--

#5
herge,

what OS version are you using ? On my win2000 sp4 I get this,


Sunday, June 01, 2008
8:21:44 AM


This is the code I am using to provide the date and time.


          Case 1111
            invoke GetDateFormat,LOCALE_USER_DEFAULT,DATE_LONGDATE,NULL,NULL,ADDR buffer1,260
            invoke SendMessage,hEdit,EM_REPLACESEL,TRUE,ADDR buffer1

          Case 1112
            invoke GetTimeFormat,LOCALE_USER_DEFAULT,NULL,NULL,NULL,ADDR buffer1,260
            invoke SendMessage,hEdit,EM_REPLACESEL,TRUE,ADDR buffer1


LATER: I have just tested this QE version on XP sp2 and it works correctly with both date and time. Would you let me know what OS version you are running and if applicable what languae it run in.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

herge


Hi hutch-:


Microsoft Windows XP [Version 5.1.2600]


Regards herge.
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

herge

 Hi Hutch-:

I've figured out what's wrong.
Press F6 you get date Sunday, June 01, 2008
Press F7 you get time 10:53:41 AM

I was not pressing F7.

Can we put a space before
the time.

ie F6,F7

Sunday, June 01, 2008 10:53:41 AM


Regards herge.

// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

hutch--

herge,

Thanks for that, I thought I had run into a version compatibility problem. RE the space, I did not want to mess up the formatting as I have usually seen these time date stamps used on seperate lines. I will probably use it with a leading assembler comment so it would probably be best to leave it unformatted.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php